text stringlengths 3.08k 15.5k |
|---|
import 'bootstrap.css';
import '@grapecity/wijmo.styles/wijmo.css';
import './styles.css';
//
import { Component, enableProdMode, NgModule } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { BrowserModule } from '@angular/platform-browser';
import * as wjcGrid fr... |
import PersonCard from 'applications/OpprettSak/PersonCard/PersonCard'
import classNames from 'classnames'
import { AlertstripeDiv } from 'components/StyledComponents'
import { Kodeverk, OldFamilieRelasjon, Person } from 'declarations/types'
import { KodeverkPropType } from 'declarations/types.pt'
import _ from 'lodash... |
<gh_stars>0
/*
* The methods here are refugees that had been encamped with DecodableReader
* (which becaues DecodableReaderToolboxTool), but which are used just as much for the
* leveled reader.
* Note that that these methods just get the dialog created and in the right home and able
* to respond to Help, OK, and ... |
/* eslint-disable no-param-reassign */
import { AtRule, Rule, Node, Declaration } from "postcss";
import { TransitionPart, AnimationPart } from "../../runtime/animationTypes";
import { StyleTuple } from "../../runtime/cssUtil";
import { varRegExp, varRegExpNonGlobal } from "../../runtime/cssRegExp";
import getRoot from... |
<gh_stars>0
import * as electron from 'electron';
import * as fs from 'fs';
import * as path from 'path';
import { generateCopyCpp, generateCopyJava } from './shared/generator';
const remote = electron.remote;
const dialog = remote.dialog;
const app = remote.app;
const shell = electron.shell;
const basepath = app.getA... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
/* eslint-disable */
import {
ASN1ConstructionError as _ConstructionError,
ASN1Element as _Element,
ASN1TagClass as _TagClass,
INTEGER,
OCTET_STRING,
} from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
/* START_OF_SYMBOL_DEFINITION PBEParameter */
/**
* @summary PBEPar... |
/**
* Copyright Zendesk, Inc.
*
* Use of this source code is governed under the Apache License, Version 2.0
* found at http://www.apache.org/licenses/LICENSE-2.0.
*/
import React, { useRef, useState, useEffect, useCallback, HTMLAttributes } from 'react';
import { composeEventHandlers, KEY_CODES } from '@zendeskga... |
<filename>src/utils/__tests__/email.utils.test.ts
import { GraphRbacManagementModels as AzureAdGraphModels } from "@azure/graph";
import * as MicrosoftGraph from "@microsoft/microsoft-graph-types";
import { mocked } from "ts-jest/utils";
import { TABLE_HEADER_KEYS } from "../../constants/email.constants";
import {
... |
<reponame>juho/svelte-preprocess<gh_stars>0
import type {
PreprocessorGroup,
Preprocessor,
Processed,
TransformerArgs,
TransformerOptions,
Transformers,
Options,
} from './types';
import { hasDepInstalled, concat, setProp } from './modules/utils';
import { getTagInfo } from './modules/tagInfo';
import {
... |
import { Injectable, EventEmitter } from '@angular/core';
import { ApiService } from "./api.service";
import { RequestService } from "./request.service";
import { DeclinationService } from "./declination.service";
import {
APIResponse,
Card, ICard, serializableCardItem,
declinationMap, IDeclinationMap, IDeclinati... |
<reponame>Datawheel/olap-client
import {Order} from "../enums";
import {QueryGrowth, QueryProperty, QueryRCA, QueryTopk} from "../interfaces";
import Level from "../level";
import Measure from "../measure";
import {Drillable, Query} from "../query";
import {undefinedHelpers} from "../utils";
import {TesseractLogicLayer... |
import { Neovim } from '@chemzqm/neovim'
import { Range } from '@chemzqm/neovim/lib/types'
import { exec } from 'child_process'
import { promisify } from 'util'
export type EvalKind = 'vim' | 'python' | 'shell'
const logger = require('../util/logger')('snippets-eval')
const isVim = process.env.VIM_NODE_RPC == '1'
expo... |
import { ArrowDownIcon, ArrowUpIcon } from '@chakra-ui/icons'
import { Box, Flex, useMediaQuery } from '@chakra-ui/react'
import { chainAdapters } from '@shapeshiftoss/types'
import { Fragment } from 'react'
import { FaExchangeAlt, FaStickyNote, FaThumbsUp } from 'react-icons/fa'
import { IoIosArrowRoundForward } from ... |
<gh_stars>1-10
import { LitsError } from '../../errors'
import { Context, ContextStack, EvaluateAstNode } from '../../evaluator/interface'
import { Any, Arr } from '../../interface'
import { AstNode, BindingNode, SpecialExpressionNode } from '../../parser/interface'
import { Token, SourceCodeInfo } from '../../tokenize... |
import * as os from "os";
import * as qs from "qs";
import * as path from "path";
import * as fs from "fs-extra";
import got from "got";
import { v4 as uuid } from "uuid";
// eslint-disable-next-line @typescript-eslint/no-var-requires
const pjson = require("../../../package.json");
// VERY IMPORTANT:
// The documenta... |
export enum EssentialNutrientNames {
Energy = 'Energy',
Water = 'Water',
'Chromium, Cr' = 'Chromium', // Missing
'Chloride, Cl' = 'Chloride', // Missing
'Molybdenum, Mo' = 'Molybdenum', // Missing
'Iodine, I' = 'Iodine', // Missing
'Calcium, Ca' = 'Calcium',
'Iron, Fe' = 'Iron',
'Magnesium, Mg' = 'Mag... |
<filename>src/app.ts
import type {Route} from './router/route.js';
import type {Server} from './server.js';
import type {
AnyArguments,
AppOptions,
UserAgentOptions,
MockRequestOptions,
MojoAction,
MojoContext,
RouteArguments,
ServerRequestOptions,
TestUserAgentOptions
} from './types.js';
import type... |
<gh_stars>0
/*!
* @license
* Copyright 2019 Alfresco Software, 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 req... |
import RequestHandler, {MissingMethodErrorCode} from "../../src/internal/request-handler";
import {waitMs} from "../test-support/time-support";
describe('@wranggle/rpc-core/request-handler', () => {
let requestHandler: RequestHandler;
const fixturedBuild = () => {
const handler = new RequestHandler();
h... |
<reponame>g-luca/desmosjs
/* eslint-disable */
import { util, configure, Writer, Reader } from 'protobufjs/minimal'
import * as Long from 'long'
import { Any } from '../../google/protobuf/any'
export const protobufPackage = 'google.api'
/**
* Message that represents an arbitrary HTTP body. It should only be used for... |
<filename>packages/fx-core/templates/plugins/resource/aad/auth/bot/ts/sso/ssoDialog.ts
import {
ComponentDialog,
WaterfallDialog,
Dialog,
DialogTurnResult,
DialogSet,
DialogTurnStatus,
} from "botbuilder-dialogs";
import { ActivityTypes, Storage, tokenExchangeOperationName, TurnContext } from "botbuilder";
... |
<filename>src/utils/generateCompleteQuestion.ts<gh_stars>10-100
import shortid from 'shortid';
import {
ILog,
IQuizDefaultSettings,
TQuestionFull,
TQuestionPartial,
TSelectionQuestionPartial
} from '../types';
import {
generateInputQuestionAnswers,
generateSelectionQuestionAnswers,
isPrimitive
} from '.... |
<gh_stars>0
import { unitToDecimals, SIMPLE_NUM_REGEX, convert, Big } from "./converter";
import { BigSource } from "big.js";
export default abstract class Args {
private types = {
"string": ArgsString,
"account": ArgsAccount,
"number": ArgsNumber,
"big": ArgsBig,
... |
import * as http from 'http';
import * as net from 'net';
import * as msgpack from 'notepack.io';
import * as parseURL from 'url-parse';
import * as WebSocket from 'ws';
import { ServerOptions as IServerOptions } from 'ws';
import { debugError } from './Debug';
import { MatchMaker } from './MatchMaker';
import { Regis... |
/*
* @Descripttion:
* @Author: xutao
* @Date: 2020-11-04 16:23:33
* @LastEditors: xutao
* @LastEditTime: 2020-12-31 09:58:56
* @FilePath: \webgl-practice\src\app.ts
*/
import './css/style.scss'
import { fragmentShaderSource, vertexShaderSource } from './shader'
import { createProgram, createShader, loadImage } ... |
<reponame>cbreuel/pipelines
/*
* Copyright 2018 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 appl... |
import Command from "../../structures/Command";
import CommandContext from "../../structures/CommandContext";
import { ButtonInteraction, Collection, Guild, GuildMember, Message, MessageActionRow, MessageButton, Snowflake, User } from "discord.js";
import { NonDigits } from "../../utils/Regex";
import InfractionsManage... |
import * as vscode from 'vscode';
import constants from './../models/constants';
import * as parsers from './../parsers';
import { codeCovViewService, fcConnection } from '../services';
import { FCFile } from '../services/codeCovView';
import diff from './diff';
import * as forceCode from './../forceCode';
// ========... |
<gh_stars>1-10
import TDNode, { TDNodeType } from '../TDNode';
import TDJSONParserOption from './TDJSONParserOption';
import CharSource from '../core/CharSource';
import StringCharSource from '../core/StringCharSource';
import StringBuilder from '../core/StringBuilder';
import TreeDoc from '../TreeDoc';
const EOF = '\... |
<filename>trainingapp/src/services/slidesHelper.ts
import {Component, EventEmitter} from '@angular/core';
import {Observable} from 'rxjs/Observable';
import {zipAll} from 'rxjs/operator/zipAll';
import {zipStatic} from 'rxjs/operator/zip';
import 'rxjs/add/observable/range';
import 'rxjs/add/observable/from';
import 'r... |
import assert from "assert";
import fetch from "node-fetch";
import { io } from "socket.io-client";
import { Message } from "../types/chat";
assert(process.env.SERVER_URL, "Missing SERVER_URL env var");
assert(
process.env.SERVER_URL.endsWith("/"),
`SERVER_URL env var should have a trailing slash: ${process.en... |
<filename>src/build/compilers/styles/compileStyles.ts
import 'css.escape';
import {deepStrictEqual} from 'assert';
import {stripIndent} from 'common-tags';
import {getAllButColors} from '@/build/helpers/getAllButColors';
import {getAllButSizes} from '@/build/helpers/getAllButSizes';
import {getOnlyColors} from '@/bui... |
import React from "react";
import {
BrowserRouter,
Link,
Route,
Switch,
} from "react-router-dom";
import { createTheme, ThemeProvider } from "@mui/material/styles";
import CssBaseline from "@mui/material/CssBaseline";
import {
Box,
Link as HyperLink,
Stack,
} from "@mui/material";
import "./App.css";
i... |
<filename>packages/next-ts-example/utils/index.ts
/** 获取标签样式
* @param {string} tab Tab分类
* @param {bool} good 是否是精华帖
* @param {bool} top 是否是置顶帖
*/
export function getTabClassName(tab: string, good: boolean, top: boolean): string {
let className = ''
if (top) {
className = 'top'
} else if (good) {
... |
<gh_stars>1-10
import {AfterContentInit, Component, ContentChildren, Input, QueryList, Output} from '@angular/core';
import {EventEmitter, TemplateRef} from '@angular/core';
import {TabComponent} from '../tab/tab.component';
import {ActivatedRoute, Router} from '@angular/router';
import {Subject} from 'rxjs';
import {t... |
import React, { useEffect, useState } from 'react';
import { AgGridReact } from '@ag-grid-community/react';
import { ClientSideRowModelModule } from '@ag-grid-community/client-side-row-model';
import { RangeSelectionModule } from '@ag-grid-enterprise/range-selection';
import '@ag-grid-community/core/dist/styles/ag-grid... |
import { useEffect } from 'react';
import { useParams, Link } from 'react-router-dom';
import { Row, Col, ListGroup, Image, Card } from 'react-bootstrap';
import { useDispatch, useSelector } from 'react-redux';
import { RootState, orderActions } from '../redux';
import Loader from '../components/Loader';
import Message... |
import express from 'express'
import fs from 'fs'
import { task, series } from 'gulp'
import _ from 'lodash'
import ProgressBar from 'progress'
import puppeteer from 'puppeteer'
import rimraf from 'rimraf'
import { argv } from 'yargs'
import {
MeasuredValues,
PerExamplePerfMeasures,
ProfilerMeasure,
ProfilerMe... |
import { useCallback, useEffect, useState } from "react";
import { useDispatch, useSelector } from "react-redux";
import {
Grid,
GridItem,
Card,
CardBody,
Button,
TextContent,
Text,
CardTitle,
Divider,
Label,
} from "@patternfly/react-core";
import { LoadingPage, Page } from "layout";
import teamsAc... |
import { Model, NodeModel } from '@patternfly/react-topology';
import { apiVersionForModel, K8sResourceKind } from '@console/internal/module/k8s';
import { SecretModel } from '@console/internal/models';
import { getImageForIconClass } from '@console/internal/components/catalog/catalog-item-icon';
import { createOvervie... |
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
<filename>src/client/websocket/WebSocketShard.ts
import { WebSocket } from 'ws'
import { EventEmitter } from 'events'
import {
Payload,
ReceiveOPCodes,
SendOPCodes,
WebSocketStatus,
} from './SocketTypes.js'
import { Awaited } from '../../structures/Types.js'
import DebugLogger from '../../util/DebugLogger.js'
... |
<filename>src/modules/search/components/search.ts
import {
Component,
ViewChild,
HostBinding,
Input,
AfterViewInit,
HostListener,
EventEmitter,
Output,
Directive,
ElementRef,
TemplateRef,
Renderer2
} from '@angular/core';
import { Util, ITemplateRefContext, IFocusEvent } ... |
import { spawnSync } from 'child_process';
import * as path from 'path';
import extract from 'extract-zip';
import * as fs from 'fs-extra';
import * as Axios from 'axios';
import { SemVer } from 'semver';
import * as tar from 'tar';
const AXIOS = Axios.default;
export class Fetch {
public static readonly YY_BOSS_... |
<gh_stars>0
import { ElementType } from "domelementtype";
import {
Node,
Element,
DataNode,
Text,
Comment,
NodeWithChildren,
ProcessingInstruction,
} from "./node";
export * from "./node";
const reWhitespace = /\s+/g;
export interface DomHandlerOptions {
/**
* Add a `startIndex` ... |
import {
take,
sum,
pick,
getCount,
objectToArray,
arrayToObject,
sortNumberDescending
} from '../helper/transformer'
import stopwords from '../helper/stopwords'
import { Repo } from '../repo-service/interface';
import { Profile, Language, Keyword, AnalyticModel, AnalyticStore, Matches } from './interfac... |
import { Driver } from "tgrid/components/Driver";
import { Factorial } from "number-of-cases";
import { IPair } from "tstl/utility/IPair";
import { IPoint } from "./IPoint";
import { IPointer } from "tstl/functional/IPointer";
import { Queue } from "tstl/container/Queue";
export class TspSolver
{
private branches... |
import React, { useCallback, useEffect, useState, useMemo } from "react";
import * as Styled from "./StyledComponents";
import { activePluginParamsByNameSelector } from "../../../recoil/modules";
import { useEventActionHandler } from "../../../hooks/useEventActionHandler";
import {
DeactivatePluginActionEvent,
... |
import { Oops } from 'oops-error'
const isMod11 = (kt: string): boolean => {
// Modulus-aðferð við að sannreyna kennitölu
// https://www.skra.is/einstaklingar/eg-og-fjolskyldan/eg-i-thjodskra/um-kennitolur/
const mod11 =
11 -
((3 * Number(kt.charAt(0)) +
2 * Number(kt.charAt(1)) +
7 * Number(... |
<reponame>uidu-org/guidu
import {
KeyValues,
utils as serviceUtils,
} from '@atlaskit/util-service-support';
import {
MentionDescription,
MentionsResult,
Team,
UserAccessLevel,
UserType,
} from '../types';
import debug from '../utils/logger';
import MentionResource, {
MentionContextIdentifier,
Mention... |
<filename>src/consent-manager-builder/index.tsx
import { Component } from 'react'
import { loadPreferences, savePreferences } from './preferences'
import fetchDestinations from './fetch-destinations'
import conditionallyLoadAnalytics from './analytics'
import { Destination, CategoryPreferences, CustomCategories } from ... |
<gh_stars>0
import { Build } from '@stencil/core';
import { createWindowRouter } from './router';
import { isPromise, normalizePathname, devDebug } from './utils/helpers';
import type {
MapParamData,
PageState,
RouterOptions,
RouteParams,
StateHistory,
} from './types';
import { setDocumentStaticData } from '... |
<filename>src/components/discussion/Discussion.ts
import { Panel, Widget } from '@lumino/widgets';
import { IComment, IThread } from '../../tokens';
import { generateNode, requestAPI } from '../../utils';
import { IRenderMimeRegistry } from '@jupyterlab/rendermime';
import { caretDownIcon, caretUpIcon } from '@jupyterl... |
<filename>packages/plugins/java/common/src/java-declaration-block.ts<gh_stars>0
import { transformComment, indentMultiline } from 'webql-codegen-visitor-plugin-common';
import { StringValueNode, NameNode } from 'graphql';
const stripIndent = require('strip-indent');
export type Access = 'private' | 'public' | 'protect... |
/**
* 该文件只允许在服务端引入
*/
import path from "path";
import fs from 'fs';
import { Blog, Result, UserInfo } from "../types";
import { Database } from "./database";
const DB = new Database(path.join(path.resolve("."), "db", "data.json"));
var userMap: {[token:string]: UserInfo} = {};
var adminID:number[] = [];
(async ()... |
import { Vue, Component, Watch, Prop } from 'vue-property-decorator';
import {
store,
bus,
client,
exec,
splitOnFirst,
defaultValue,
editValue,
deleteSiteInvoke,
postSiteInvoke, log, putSiteProxy, postSiteProxy, sanitizedModel, dtoAsArgs, initInlineModal
} from '../../shared';
import... |
<filename>firebaseFunctions/functions/src/impl/chatimpl.ts<gh_stars>1-10
/*
* Copyright 2021 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licen... |
<gh_stars>1-10
import { makeAutoObservable } from "mobx";
import { defaultMusic, MusicDetail, MusicID, MusicNUrl, PlayMode } from "../models/Music";
import { PlayList, PlayListID } from "../models/PlayList";
import { getMusicUrlReq } from "../network/music/getMusicUrl";
import { getPlayListReq } from "../network/playL... |
import { MessageConnection, ResponseError, Emitter, Event } from 'vscode-jsonrpc';
import { ApplicationError, Disposable, Logger, PipeManager, getTargetClass, getPropertyNames } from '@malagu/core';
import { ErrorConverter } from '../converter';
import { ConnectionHandler } from '../handler';
export type JsonRpcServer... |
import * as debug from "debug"
import * as Phaser from "phaser"
const log = debug("game:GameInput::UnifiedController")
interface IUnifiedController {
up?: VirtualKey
down?: VirtualKey
left?: VirtualKey
right?: VirtualKey
actionA?: VirtualKey
actionLB?: VirtualKey
actionRB?: VirtualKey
... |
<gh_stars>1-10
import { workspace } from 'vscode' ;
const request = require('request');
const Handlebars = require('handlebars');
const fs = require('fs');
const uuidV4 = require('uuid/v4');
class Gif {
private _url: object;
private _type: string;
private _settings: any;
private _rating: string;
c... |
import { ComponentPublicInstance } from 'vue';
import cloneDeep from 'lodash/cloneDeep';
import { TransferListOptionBase, TransferItemOption, TdTransferProps, TransferValue, DataOption } from './interface';
export { emitEvent } from '../utils/event';
export const TRANSFER_NAME = 'TTransfer';
interface TreeNode {
... |
import React, { useState, useEffect } from 'react';
import { bindActionCreators, Dispatch } from 'redux';
import { connect } from 'react-redux';
import styles from './InstanceChat.module.scss';
import {
Avatar,
Badge,
Button,
Card,
CardContent,
Fab,
ListItem,
ListItemAvatar,
ListItem... |
import { RepeatMode } from 'store/queue/types'
import { Queueable } from './types'
import { ID, UID } from 'models/common/Identifiers'
import { createSlice, PayloadAction } from '@reduxjs/toolkit'
type State = {
order: Queueable[]
// Maps track UIDs to the index
positions: { [uid: string]: number }
// Active... |
// Forked from https://github.com/kbajalc/parquets under MIT license (Copyright (c) 2017 ironSource Ltd.)
import {ParquetSchema} from '../schema/schema';
import {PARQUET_MAGIC, PARQUET_MAGIC_ENCRYPTED} from '../../constants';
import {ColumnChunk, CompressionCodec, FileMetaData, RowGroup, Type} from '../parquet-thrift';... |
<reponame>zoeygo/umi
import ejs from 'ejs';
import { existsSync, readFileSync } from 'fs';
import { join } from 'path';
import assert from 'assert';
import { cheerio } from '@umijs/utils';
import prettier from 'prettier';
import { IConfig } from '..';
import { IOpts, IGetContentArgs, IScript } from './types';
class Ht... |
import * as React from 'react'
import * as Constants from '../../constants/crypto'
import * as FsConstants from '../../constants/fs'
import * as Types from '../../constants/types/crypto'
import * as Kb from '../../common-adapters'
import * as Styles from '../../styles'
type TextProps = {
onChangeText: (text: string)... |
<gh_stars>10-100
import * as path from 'path'
import childProcess from 'child_process'
import os from 'os'
import { app } from 'electron'
import { initializeDynamicConfig } from '../configuration/initializeDynamicConfig';
import { CancellationToken } from '../../shared/system/createCancellationTokenSource';
import { Dy... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import { EuiFlexItem, EuiLoadingSpinner, EuiSpacer, EuiText, EuiTitle } from ... |
<reponame>feng-di/azure-sdk-for-js
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import {
env,
Recorder,
delay,
isPlaybackMode,... |
import { ISocketConfiguration } from "./servers";
import { IConfigurationOverride } from "./override";
import { IConfigurationRbac } from "./rbac";
export interface IConfigurationCustomModuleGraphqlMutation {
schema: string;
resolvers: Object;
}
export interface IConfigurationCustomModuleGraphqlQuery {
schema: ... |
<filename>shop/website-angular/src/app/app.module.ts
import { NgModule, APP_INITIALIZER } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { PreloadAllModules, RouterModule } from '@angular/router';
import {
MatButtonModule,
MatCardM... |
<reponame>Leemur89/robotframework-browser<gh_stars>0
// Copyright 2020- Robot Framework Foundation
//
// 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/lice... |
<reponame>product-os/jellyfish-worker
import type { LinkConstraint } from '@balena/jellyfish-client-sdk';
import { Jellyscript } from '@balena/jellyfish-jellyscript';
import type {
Contract,
TypeContract,
} from '@balena/jellyfish-types/build/core';
import type { Dictionary } from 'lodash';
import { reverseLink } fro... |
require('dotenv').config();
import { cleanEnv, num, port, str, ValidatorSpec, bool, CleanOptions } from 'envalid';
export type Environments = 'production' | 'development' | 'test';
export type Env = Readonly<{
isDev: boolean;
isTest: boolean;
isProd: boolean;
NODE_ENV: Environments;
WEB_CONCURRENCY: number;
... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... |
import * as React from 'react';
import styled from 'styled-components';
import { format } from 'date-fns';
import {
GldasIdentifyTaskResults,
GldasIdentifyTaskResultsByMonth
} from '../../services/GLDAS/gldas';
import {
TimeExtentItem
} from '../App/App';
import { UIConfig } from '../../AppConfig';
impor... |
<filename>src/pixelui/component/Dialog.ts
import * as PixelUI from "..";
import logger from "@/logger";
import { TextLabelFactory } from "./TextLabel";
import { ButtonFactory } from "./Button";
import { BackdropFactory } from "./Backdrop";
import { ComponentBase, ComponentBaseStyle } from "../ComponentBase";
export i... |
import { QueryResult } from 'pg';
import { PgDatabase } from './PgDatabase';
import {
IDatabase,
IFilterList,
IRepo,
IRepoFindOptions,
IScalar,
OP_EQ, OP_GT, OP_GTE, OP_IN,
OP_LT, OP_LTE, OP_NE, OP_NIN
} from '../../dataops';
function opsFun(op: string, f: string, v: IScalar[]): string {
switch (op) {
... |
<gh_stars>1-10
// Type definitions for html-minifier 4.0
// Project: https://github.com/kangax/html-minifier, https://kangax.github.io/html-minifier
// Definitions by: <NAME> <https://github.com/tkrotoff>
// Riku <https://github.com/rikuayanokozy>
// <NAME> <https://github.com/peterblaze... |
import Vue from 'vue';
import { ComponentRenderProxy } from '@vue/composition-api';
import {
PropType, CreateElement, VNode, VNodeChildren, RenderContext,
} from 'vue/types/umd';
import { ScopedSlotReturnValue } from 'vue/types/vnode';
import isObject from 'lodash/isObject';
import { TNode } from '../common';
// 组件r... |
/*
* Copyright 2018 IBM 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 agreed to ... |
import { ComputedRef, Ref, UnwrapRef, unref } from 'vue'
import { Form } from './Form'
import { FieldRule, RuleInformation } from './rules'
import { VALIDATION_CONFIG } from './ValidationConfig'
import * as nShared from '@/shared'
export const isField = <T>(x: unknown): x is Field<T> =>
nShared.isRecord(x) ? '$valu... |
<filename>src/messageresolver.ts
/*
* This file is part of wecco.
*
* Copyright (c) 2021 <NAME>.
*
* 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/lice... |
import P5 from "p5";
import { DustParticle } from "./DustParticle";
import { Protobyte } from "./ProtoByte";
let pb: Protobyte;
//dust vars
let dps: DustParticle[] = [];
const dustCount = 400;
// keep dust and bg aligned
const bgShim = 4.5;
const bgR = 10;
const bgG = 20;
const bgB = 30;
let bgColor: string
const ... |
/*
* Unless explicitly stated otherwise all files in this repository are licensed
* under the Apache 2.0 license (see LICENSE).
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2020 Datadog, Inc.
*/
import { globalErrorHandler, unrefTimer } from '@opentelemetry/core'... |
/*
* Copyright 2020 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
import { Component, OnInit, Input, Output, EventEmitter, Inject, OnChanges } from '@angular/core';
import * as moment from 'moment';
import { Subject, Observable, BehaviorSubject } from 'rxjs/Rx';
import { CONFIG_TOKEN } from '../../constants';
import { GtmHelperService } from '../../services/gtm-helper.service';
@Co... |
import BScroll from '@better-scroll/core'
import EventRegister from '@better-scroll/core/src/base/EventRegister'
import EventEmitter from '@better-scroll/core/src/base/EventEmitter'
import { Direction } from '@better-scroll/core/src/enums/direction'
import { EnforceOrder } from '@better-scroll/core/src/enums/enforce-or... |
<reponame>belugafm/beluga-v3-browser-client<filename>desktop/state/chat/store/domain_data/copy.ts
import {
ChannelGroupObjectT,
ChannelObjectT,
ChannelReadStateObjectT,
MessageEntityStyleNode,
MessageObjectT,
UserObjectT,
} from "../../../../api/object"
import {
ObjectMap,
UserIdSet,
... |
/// <reference path="../../../typings/main.d.ts" />
import log4js = require('log4js');
import commons = require('../../common/odata_common');
import constants = require('../../constants/odata_constants');
import {MetaAssociation} from "./metaAssociation";
var builder = require("xmlbuilder");
var logger = log4js.getL... |
<filename>src/smart-auth/index.ts
/**
* @module smart-auth
* @beta
*
* A Fastify plugin to support the SMART App Authorization response code authorization OAuth 2.0 flow and wrapping the simple-oauth2 library.
*/
import { randomBytes } from "crypto";
import { AccessToken, AuthorizationCode, ClientCredentials } f... |
/* eslint-disable react/jsx-props-no-spreading */
import React, { memo, useCallback, useEffect, useMemo, useState } from 'react'
import { BoxProps } from '@shopify/restyle'
import CarotDown from '@assets/images/carot-down.svg'
import Kabob from '@assets/images/kabob.svg'
import { useTranslation } from 'react-i18next'
i... |
<filename>src/app/card/card.sample.ts
import { Component, ViewChild } from '@angular/core';
import {
IgxCardComponent,
IgxCardActionsComponent,
IgxToggleDirective,
IgxExpansionPanelModule,
IgxExpansionPanelComponent
} from 'igniteui-angular';
export interface ICard {
title: string;
subtitle... |
import merge from 'lodash/merge';
import get from 'lodash/get';
import React, { Dispatch, Fragment, ReducerAction, useMemo, useState } from 'react';
import { ComponentType } from 'enzyme';
import {
areEqual,
JsonFormsDispatch,
JsonFormsStateContext,
withJsonFormsContext
} from '@jsonforms/react';
import {
com... |
<filename>src/app/settings/advanced/advanced.component.ts
import {Component, OnInit} from '@angular/core';
import {CookieService} from 'ngx-cookie-service';
import {Hotkey, HotkeysService} from 'angular2-hotkeys';
import {DomSanitizer} from '@angular/platform-browser';
import {ToastrService} from 'ngx-toastr';
import {... |
<reponame>mewani-raveena/TechTogether
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requi... |
/*
* 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 ... |
import { attachDeclaration, RuleSet, Declaration } from './elements';
export type Operation = (
value: Declaration['children'],
ruleSet: Readonly<RuleSet>,
ltrRuleSet: Readonly<RuleSet>,
rtlRuleSet: Readonly<RuleSet>
) => void;
export const compileOperations = ({
isPropertySupported,
isPropertyValueSuppor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.