text
stringlengths
3.08k
15.5k
<filename>packages/template-runtime/src/injector.ts import { listInsertValueAfter, listPrependValue, listMoveFragmentAfter, listMoveFragmentFirst, listDetachFragment, LinkedList, LinkedListItem } from './linked-list'; import { animatingKey } from './utils'; import { domInsert, domRemove } from './dom'; import { Scope, ...
import ClearIcon from '@mui/icons-material/Clear'; import { Box, Button, Dialog, DialogActions, DialogContent, DialogTitle, IconButton, InputAdornment, Stack, Typography, } from '@mui/material'; import { Recipe } from '../../data/recipes'; import { Action, CraftingRecipeMap, ItemMap, Item, ...
<reponame>mobeigi/mobeigi.com<gh_stars>1-10 import fs from 'fs'; import cron from 'node-cron'; import { StatusCodes } from 'http-status-codes'; import { knex } from 'knex'; import { getPrivatePath } from '@shared/utils/GetPrivatePath'; import { getKnexConfig } from '@shared/utils/GetKnexConfig'; import { Request, Respo...
/// <reference path="../typings/vendor.d.ts"/> /// <reference path="./interfaces.d.ts"/> import fs = require('fs'); import path = require('path'); import yaml = require('js-yaml'); import expand = require('glob-expand'); var projectFileName = 'tsproj.yml' /** Given an src (source file or directory) goes up the direc...
/* * Copyright 2018 <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/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React, {PureComponent} from 'react'; import {intlShape} from 'react-intl'; import { FlatList, Platform, } from 'react-native'; import {Client4} from '@client/rest'; import AtMentionItem from ...
import * as React from 'react'; import './App.css'; import { buildGraph, HierarchyGraphNodeInfo, HierarchyGraphDef, HierarchyBaseEdgeInfo, HierarchyBaseNodeInfo } from 'dagre-compound'; import * as d3 from 'd3'; interface SvgContainerProps { source: HierarchyGraphDef; } interface SvgContainerState { ren...
import { keyBy, mapKeys } from 'lodash' import { Kind, UnionStrict, Config, Lookup, Readers, Writers, BufferWrapper, TypeDefinition, TypeDefinitionStrict, VariantGetter, Encoder, Decoder, } from './types' import { genWrapFunction, genWrapFunction2, // function get/set genReadFunction, g...
import http from 'http'; import https from 'https'; import net from 'net'; import once from '@tootallnate/once'; import createDebug from 'debug'; import { Readable } from 'stream'; import { format, parse } from 'url'; import { HttpProxyAgent, HttpProxyAgentOptions } from 'http-proxy-agent'; import { HttpsProxyAgent, Ht...
<gh_stars>0 import { Ability, Initiate, Dormant } from "./definitions/ability"; import { Cache, attachAnimation, attachExplWindowAnimation, clearExplWindowAnimation } from "../app/main"; import { GameState } from "./state"; import { Anim, TweenTo, mkAccessTarget, Par, mkEff, Noop } from "../app/animation"; import { IPo...
<filename>src/index.ts<gh_stars>10-100 import { commands, Disposable, ExtensionContext, LanguageClient, LanguageClientOptions, NotificationType, RequestType, ServerOptions, TransportKind, window, workspace, languages, } from 'coc.nvim'; import { existsSync } from 'fs'; import { IntelephenseCode...
import * as React from 'react' import styled, { ThemeProvider } from 'styled-components' import niceTime from 'src/util/nice-time' import { AnnotationMode } from 'src/sidebar/annotations-sidebar/types' // import { CrowdfundingBox } from 'src/common-ui/crowdfunding' import AnnotationView from 'src/annotations/component...
import {Command, flags} from '@heroku-cli/command' import * as Heroku from '@heroku-cli/schema' import {HTTP} from 'http-call' const cli: any = require('heroku-cli-util') import ux from 'cli-ux' import color from '@heroku-cli/color' import * as moment from 'moment-timezone' import * as parser from 'cron-parser' import...
<filename>types/html.d.ts export type CSSStylePartial = Partial<Record<keyof CSSStyleDeclaration, unknown>>; export type HTMLProperties<T> = Partial<{ [K in keyof T]: K extends 'style' ? CSSStylePartial : K extends 'children' ? (string | Node)[] : K extends 'class' ? string : T[K]; }>; export type HTML...
import * as cdk from 'aws-cdk-lib'; // import * as certificatemanager from 'aws-cdk-lib/aws-certificatemanager'; // import * as cloudwatch from 'aws-cdk-lib/aws-cloudwatch'; // import * as actions from 'aws-cdk-lib/aws-cloudwatch-actions'; import * as ec2 from 'aws-cdk-lib/aws-ec2'; import * as ecs from 'aws-cdk-lib/aw...
<gh_stars>0 import { Claim } from "./claim"; import { InvalidOperationException } from "@nivinjoseph/n-exception"; import { given } from "@nivinjoseph/n-defensive"; import "@nivinjoseph/n-ext"; import { InvalidTokenException } from "./invalid-token-exception"; import { AlgType } from "./alg-type"; import { Hmac } from ...
<reponame>DilupaSampath/CDAP_BeforeLastDate import { Component, OnInit } from '@angular/core'; import { HttpClient } from '@angular/common/http'; // import { $ } from '../../../../../node_modules/jquery/dist/jquery'; interface Doctor { NIC:string; id:string; name: string; ward: string; assingDate: string; d...
// External Dependencies import { Helmet } from 'react-helmet'; import React, { FC, useEffect, useReducer } from 'react'; // Internal Dependencies import AuthUserContext from '../../components/session/AuthUserContext'; import Container from '../../components/shared/container'; import Layout from '../../components/la...
import { Modal, Button, Divider, Form, Input, Select, Card, Row, Col, Icon } from 'antd'; import React, { Fragment, useState } from 'react'; import { getAccessToken } from '@/utils/authority'; import { randomString, wrapAPI } from '@/utils/utils'; import { EventSourcePolyfill } from 'event-source-polyfill'; interface...
<reponame>pocesar/punchcard import AWS = require('aws-sdk'); import iam = require('@aws-cdk/aws-iam'); import sns = require('@aws-cdk/aws-sns'); import snsSubs = require('@aws-cdk/aws-sns-subscriptions'); import core = require('@aws-cdk/core'); import { Namespace } from '../core/assembly'; import { Build } from '../c...
export enum Locale { AF = 'af', AF_ZA = 'af_ZA', AR = 'ar', AR_AE = 'ar_AE', AR_BH = 'ar_BH', AR_DZ = 'ar_DZ', AR_EG = 'ar_EG', AR_IQ = 'ar_IQ', AR_JO = 'ar_JO', AR_KW = 'ar_KW', AR_LB = 'ar_LB', AR_LY = 'ar_LY', AR_MA = 'ar_MA', AR_OM = 'ar_OM', AR_QA = 'ar_Q...
import { Commit, Dict, Repository, Counts, StatsData, WeekDayStats, CommitStats, RepositoryStats, } from './types'; import Storage from './Storage'; import Crawler from './Crawler'; export class Stats { crawler: Crawler; storage: Storage; stats: StatsData = { total: { closed: Stats.empt...
<filename>src/bot.ts<gh_stars>0 import { Probot, run } from 'probot'; import { ApiPromise, WsProvider, Keyring } from '@polkadot/api'; import { cryptoWaitReady } from '@polkadot/util-crypto'; import { postComment } from './helpers/github'; // TODO add some kind of timeout then return an error // TODO Unit tests expor...
<reponame>nikolaymatrosov/yc-ts-sdk /// <reference types="node" /> import { Zone } from '../../../../yandex/cloud/compute/v1/zone'; import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js'; import _m0 ...
<reponame>livraria-papelaria-espaco/lpe-order-management import { Knex } from 'knex'; import { ipcMain, IpcMainEvent, dialog } from 'electron'; import log from 'electron-log'; import xlsx from 'xlsx'; import { BookWithQuantity } from '../../types/database'; import db from '../database'; import { registerListener } from...
<reponame>luisfontes19/vscode-swissknife import { IScript, ISwissKnifeContext } from '../Interfaces'; export const toBase64 = async (str: string): Promise<string> => { return Buffer.from(str, 'utf-8').toString("base64"); }; export const fromBase64 = async (str: string): Promise<string> => { return Buffer.from(str...
<reponame>SanderRonde/sanderrondewebsite<filename>app/client/src/shared/html.ts<gh_stars>0 import { LANGUAGES } from '../../../i18n/i18n.js'; import { Theme } from '../../../shared/theme.js'; import { html } from '../../../shared/util.js'; function getAnalyticsIndex(hostname: string) { if (hostname.includes('sanderro...
<reponame>FathimaP/jazz import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core'; import { DatePickerOptions, DateModel } from './ng2-datepicker'; import * as $ from 'jquery'; import * as moment from 'moment'; const Moment: any = (<any>moment).default || moment; export interface IDateModel { d...
import { Reader, Writer } from 'protobufjs/minimal'; export declare const protobufPackage = "supsidacdisaac.tsdb.tsdb"; export interface MsgCreateTimeseries { creator: string; location: string; signal: string; } export interface MsgCreateTimeseriesResponse { id: number; } export interface MsgUpdateTimes...
const puppeteer = require('puppeteer'); let browser: any; const fetch = require('node-fetch'); const stacks = require('../secrets/auth.json').stacks; const { MediaStream } = require('wrtc'); const RTCAudioSourceSineWave = require('../testUtilities/rtcAudioSourceSineWave'); import { tokenTypes, generateJWT, setStackDat...
<reponame>askirmas/env_file<gh_stars>0 import { join } from "../research/utils" import { parse } from "./parse" describe(parse.name, () => { describe("Complex input", () => { it(...p(Buffer.from("SPEC_DIRECT=direct"), {"SPEC_DIRECT": "direct"})) it(...p(["A=1", "B=2"], {"A": "1", "B": "2"})) }) describe...
<reponame>wentout/typeomatica 'use strict'; const ErrorsNames = { TYPE_MISMATCH: 'Type Mismatch', ACCESS_DENIED: 'Value Access Denied', MISSING_PROP: 'Attempt to Access to Undefined Prop', RIP_FUNCTIONS: 'Functions are Restricted' }; const PRIMITIVE_TYPES = [ 'string', 'number', 'boolean', ]; const isPrimitiv...
<filename>src/app/app.module.ts /** * Chatie APP for Android & Ios & Web * Your ChatBot Pocket Manager * * https://github.com/chatie/app * <NAME> <<EMAIL>> * License Apache-2.0 */ import { BrowserModule } from '@angular/platform-browser' import { APP_INITIALIZER, ErrorHandler, Injectable, Injector, NgM...
import { BS, IAnimation, IPoint, ISize, TS, } from "./common"; import { clerp, flatten } from "./helpers"; import Buddy from "./buddy"; import Camera from "./camera"; import Convo from "./levels/convo"; import Level from "./levels/level"; import StartScreen from "./levels/start-screen"; import World from "....
import { JSONLD_TYPE } from "sambal-jsonld"; import { IResolver, Collection, PartitionKey, URI, PAGE_FILE } from "../helpers/constant"; import { isObjectLiteral, normalizeUri } from "../helpers/util"; import { searchFiles, inferUrl } from "../helpers/data"; import UriResolver from "../UriResolver"; ...
<filename>src/lib/file-storage.ts import { Readable, PassThrough } from 'stream'; import { ensureDir, pathExists } from 'fs-extra'; import { join as dirJoin } from 'path'; import { FancyFile } from './fancy-file'; import { promisify } from 'util'; import * as fs from 'fs'; import { randomBytes } from 'crypto'; cons...
/// <reference path="../../common/exline.service.ts" /> import {ICategory, IProductResult, NAME as Repository_NAME, default as Repository, IProduct, IProductResultData} from './../repository.service'; import {NAME as Cart_NAME, default as Cart, ICart, ICartProduct, IOrderModel, IProductCart} from './../../cart/cart.ser...
import React from 'react'; import { useTranslation } from 'react-i18next'; import { useSelector } from 'react-redux'; import { useParams } from 'react-router-dom'; import { useMutation, useQuery } from '@apollo/client'; import { Button } from '@trussworks/react-uswds'; import { Field, Form, Formik, FormikHelpers, Formi...
<reponame>adrianvincent91/ForProgress<gh_stars>1-10 import css from './ForProgress.scss'; import type { Settings } from './types'; class ForProgress { private settings: Required<Settings>; private currentPercent: number; private currentAutoIncrementInterval: number | boolean; private isRunning: boolea...
<gh_stars>100-1000 import { _support, validateOption, logger, isBrowserEnv, isWxMiniEnv, variableTypeDetection, Queue, isEmpty } from '@zyf2e/monitor-utils' import { createErrorId } from './errorId' import { SDK_NAME, SDK_VERSION } from '@zyf2e/monitor-shared' import { breadcrumb } from './breadcrumb' import { AuthInfo...
import { flatMap, ensureArray, Primitive, isNullOrUndefined, isNot } from '../' /** * Generates cookie string * * @example * ``` * // Create a cookie, valid across the entire site: * document.cookie = generateCookie('name', 'value') * * // Create a cookie that expires 7 days from now, valid across the entire s...
// Icons re-exported from here will show up in the "AllIcons" story in Storybook. // NOTE: until we enable tree-shaking, Icons should be imported directly from their file, i.e. // import CheckCircleIcon from "Icons/CheckCircle" // and not from the Icons folder. export { default as AccountCircleRoundedIcon } from "....
/** * Copyright 2018 The AMP HTML Authors. 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 require...
<gh_stars>0 import Vinyl from 'vinyl'; import Sharp from 'sharp'; import Imagemin from 'imagemin'; import ISrsetVinyl from './ISrcsetVinyl'; import { processing as defaultProcessing, optimization as defaultOptimization, postfix as defaultPostfix } from './defaults'; import { SupportedExtension, extensions, isSupp...
import {logger} from '../../../utils/logger'; import {Collection, Reference} from '../../orm'; import {Orm} from '../services/orm.service'; const log = logger('Validator'); export class Validator { private static async validateCollection(objID: string, collection: Collection<any>, property: string, object: string):...
import type { GridSortModel } from '@material-ui/data-grid'; import { isPlainObject, isString } from 'lodash'; import { Status } from '../enums'; import type { Content, Metadata, Query, Range, } from 'js/types'; /** * Maps frontend content field names to backend content field names */ export const CONTENT_F...
<gh_stars>0 /* * Copyright 2019 <NAME> <<EMAIL>> * Copyright 2019 Institute of the Czech National Corpus, * Faculty of Arts, Charles University * * 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 ...
<reponame>RomainLanz/anchor-web-app import { AUD, CAD, CHF, CNY, DKK, EUR, Gas, GBP, HKD, HumanAddr, IDR, INR, JPY, KRW, Luna, MNT, NOK, PHP, Rate, SDR, SEK, SGD, TerraContractAddress, THB, u, UST, } from '@libs/types'; import { NetworkInfo } from '@terra-dev/wallet-t...
<gh_stars>1-10 export type GestureEventHandler<T extends GestureEventDetail> = (evt: PointerOrTouchEvent, detail: T) => void; export type Point = [ number, number ]; // Detail about a gesture event export interface GestureEventDetail { x: number; y: number; } export interface StartDetail extends GestureEventDeta...
import { GetStaticProps } from "next"; import Image from "next/image"; import Head from "next/head"; import Link from "next/link"; import { api } from "../services/api"; import Highcharts from "highcharts"; import HighchartsReact from "highcharts-react-official"; import { FiAlertCircle, FiAlertTriangle, FiActivity }...
import React from 'react'; import querystring from 'querystring'; import { useRouter } from 'next/router'; import { useFormikContext } from 'formik'; import { gql, useQuery } from '@apollo/client'; import Button from '@components/Button/Button'; import { Paragraph } from './styled'; import { Paths } from './Paths/Path...
import { FC, useState, useEffect, memo } from 'react' import { InputGroup, Input, Whisper, Popover, Button, toaster, Message } from 'rsuite' import { Search, CheckRound } from '@rsuite/icons' import { clearApps, selectApps, getAllApps, startDownload, handleDownloadFail, handledownloadSuccess, removeApp, ...
<reponame>mertcanaltin/nestjs-api-mongoose import { Test, TestingModule } from '@nestjs/testing'; import { CustomersService } from './customers.service'; import { PaginationQueryDto } from '../common/dto/pagination-query.dto'; import { CreateCustomerDto } from './dto/create-customer.dto'; import { UpdateCustomerDto } f...
<gh_stars>0 import {max_days_to_book_ahead} from "../../config/config"; export function getPrettyHour(hour: number, showAmPm: boolean = false): string { let amOrPm = showAmPm ? (hour >= 12 ? ' PM' : ' AM') : ''; if (hour > 12) { return (hour - 12).toString() + ':30' + amOrPm; } if (hour === 12) ...
import { useEffect, useRef, useCallback, useState } from 'react'; import { AbortErrorName } from '../requests/utils'; import { Fetcher, RequestOptions, CacheMode } from '../types'; import { forEachResponse } from '../utils'; import { useDeepEqualMemo, useHookStateRef, isDeepEqual, useShallowEqualMemo } from './utils'; ...
import delve from 'dlv'; import { dset } from 'dset'; import { CONF_EVENT_VIEWER_AUTOPLAY_CLIP, CONF_EVENT_VIEWER_CONTROLS_NEXT_PREVIOUS_SIZE, CONF_EVENT_VIEWER_CONTROLS_NEXT_PREVIOUS_STYLE, CONF_FRIGATE_CAMERA_NAME, CONF_FRIGATE_CLIENT_ID, CONF_FRIGATE_LABEL, CONF_FRIGATE_URL, CONF_FRIGATE_ZONE, CONF...
import { Component, TypeDefs, createVNode as h, VNode, VNodeComponentClass, directClone, provide, inject, findDomFromVNode, createVNode, nextTick, } from 'intact'; import {bind, isTextChildren} from '../utils'; import {EMPTY_OBJ, isFunction, noop} from 'intact-shared'; import...
<reponame>garronej/ts-sip import { Evt } from "evt"; import * as types from "./types"; /** * Wrapper aiming to provide a unique API to manipulate net.Socket tls.Socket and * WebSocket */ export interface IConnection { localPort: number; remotePort: number; localAddress: string; remot...
import React, { useEffect } from 'react'; import { Provider } from 'react-redux'; import { Route, Switch, Redirect } from 'react-router-dom'; import { DWKitForm } from '@assets/vendor/dwkit/optimajet-form.js'; import { ApplicationRouter, NotificationComponent, FormContent, FlowContent, Thunks, Store, Acti...
import React from 'react'; import { connect } from 'react-redux'; import { Link, RouteComponentProps } from 'react-router-dom'; import { Button, Row, Col, Label } from 'reactstrap'; import { AvForm, AvGroup, AvInput, AvField } from 'availity-reactstrap-validation'; // tslint:disable-next-line:no-unused-variable import ...
import { createSlice, PayloadAction } from '@reduxjs/toolkit'; import type { AppThunkAction } from '../configureStore'; import { generateCellKey, isAllowToMove, moveCells } from '@/utils/data'; import { randomArrayElement } from '@/utils/random'; import { BoardCell, Direction } from '@/types'; type DataState = { boa...
<reponame>tkesgar/lamy import { Knex } from "knex"; import { Connection, ConnectionOpts } from "."; type RowValue = unknown | number | boolean | string | Date | Knex.Raw; type IdType = number | string; type QueryFunction = (this: Knex.QueryBuilder) => Knex.QueryBuilder | void; interface SelectOpts extends Connectio...
/** * AWS Terraform with S3 backend config generator * * @packageDocumentation */ import * as fs from "fs"; import * as path from "path"; import { generateGitIgnore, generateTsconfig } from "../"; import { logGreen, pathExists } from "../../util"; export async function writeS3BackendCfnTemplate(): Promise<void> {...
import type { Graph, headings, LcshInterface, SkolemGraphNode, uriToHeading, } from '../interfaces'; export function parseJsonHeading( obj: LcshInterface, jsonPrefLabel: headings[], subdivisions: headings[], jsonUriToPrefLabel: uriToHeading ) { //@ts-expect-error, it needs to be...
<reponame>SamueleDelMoro/ACTAM.Project2122-TraningGame<gh_stars>1-10 import { Frequency, NormalRange, Time } from "../core/type/Units"; import { RecursivePartial } from "../core/util/Interface"; import { Instrument, InstrumentOptions } from "./Instrument"; import { MembraneSynth, MembraneSynthOptions } from "./Membrane...
import React, { useState } from 'react'; import { StyleSheet, View, ScrollView, Platform } from 'react-native'; import { Title, TextInput, Subheading, Button, HelperText, IconButton, Text } from 'react-native-paper'; import { connect, ConnectedProps } from 'react-redux'; import EmailValidator from 'email-validator'; im...
import ResultsStore from '../Results/ResultsStore'; import { action, computed, observable } from 'mobx'; import { IDetailsComp } from './Details'; import { accordionGroups, getObjectLabelFromFact, graphQueryDialog } from '../../../core/domain'; import { ActFact, ActObject, isDone, PredefinedObjectQuery, Search, TConfi...
<gh_stars>0 import * as h from 'mithril/hyperscript' import { fixCrazySan } from '../../../utils/chessFormat' import * as gameApi from '../../../lichess/game' import { Glyph, CommentAuthor } from '../../../lichess/interfaces/analyse' import { ops as treeOps, path as treePath, Tree } from '../../shared/tree' import * as...
/********************************************************************** * * @模块名称: css * * @模块用途: css * * @date: 2022/1/27 17:23 * * @版权所有: pgli * **********************************************************************/ import {getSize} from "./utils"; import {delIcon, uploadIcon} from "./assets"; export type...
import FormatDate from "../../utils/FormatDate"; import knex from "../../database/connection"; import SimpleCRUD from "../SimpleCRUD"; import { QueryBuilder } from "knex"; class ConteudoModel extends SimpleCRUD { constructor() { super("conteudos"); } private _tags: Array<string> = []; publi...
import * as express from "express"; import * as RestContracts from "rest-contracts"; import {BODY_PARAMS, PATH_PARAMS, QUERY_PARAMS} from "rest-contracts"; /** * An express request enhanced so that the query, params, and body * attributes are correctly typed to match an specified API. */ export interface TypedExpre...
const bitcoin = require('bitcoinjs-lib') const ElectrumClient = require('@codewarriorr/electrum-client-js') import {isOurAddress} from "./isOurAddress.js"; import {isOurChangeAddress} from "./isOurChangeAddress.js"; import {getAddressOfInput} from "./getAddressOfInput.js" function hex2a(hexx: any) { var hex = hexx.t...
<gh_stars>0 import { Component, OnInit } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { LeaveEntitlementPayload, LeaveEntitlementServiceProxy, LeaveEntitlementResource, Grade, GetLeaveTypesServiceProxy, AddUpdateHolidayServiceProxy, GetLeaveYearsServiceProxy, HolidayDatesServiceProxy, Le...
<gh_stars>0 import { BuildConfig, BuildContext, BuildResults, Diagnostic } from '../../util/interfaces'; import { bundle } from '../bundle/bundle'; import { catchError, getBuildContext, hasError, resetBuildContext } from '../util'; import { cleanDiagnostics } from '../../util/logger/logger-util'; import { compileSrcDir...
<gh_stars>0 import type { Message } from 'discord.js'; import { MessageEmbed } from 'discord.js'; import moment from 'moment'; import 'moment-duration-format'; import type KiwiiClient from '../../struct/Client'; import Command from '../../struct/Command'; import { trimArray } from '../../util/string'; export default cl...
/* eslint-disable */ import { wkApproveGroupCreate, wkApproveGroupDelete, wkApproveGroupModify, } from '@/services/auditing'; import { Button, Icon, Input, Modal, notification, Popconfirm, List } from 'antd'; import React, { PureComponent } from 'react'; import styles from './AuditGourpLists.less'; import _ from ...
<filename>ern-local-cli/src/commands/create-container.ts import { generateMiniAppsComposite } from 'ern-container-gen' import { PackagePath, NativeApplicationDescriptor, utils as coreUtils, Platform, log, NativePlatform, kax, } from 'ern-core' import { getActiveCauldron } from 'ern-cauldron-api' import { ...
import React, { forwardRef, ReactNode, RefObject, SyntheticEvent, useRef } from 'react'; import classNames from 'classnames'; import { Dropdown, IconButtonProps, Offset, Placement, TextField, Theme } from '@lumx/react'; import { Comp, GenericProps, getRootClassName, handleBasicClasses } from '@lumx/react/utils'; im...
import React, { useState, useEffect } from 'react'; import { makeStyles } from '@material-ui/core/styles'; import clsx from 'clsx'; import Card from '@material-ui/core/Card'; import CardHeader from '@material-ui/core/CardHeader'; import CardMedia from '@material-ui/core/CardMedia'; import CardContent from '@material-ui...
import {Scene, ISceneEventListener} from "../core/Scene"; import {GameObject} from "../core/GameObject"; import {Body} from "../core/component/Body"; import {Cannon} from "../core/PhysicService"; import {Model} from "../core/component/Model"; import {Promise} from "es6-promise"; import {Camera} from "./Camera"; (<any>...
import { Build } from "../build.ts"; import { XmlElement } from "../../xml.ts"; import { BaseBuildTrigger, BaseBuildTriggerProps, } from "./base_build_trigger.ts"; export interface VcsBuildTriggerProps extends BaseBuildTriggerProps { /** * If you have a build chain (that is a number of builds interconnected b...
<filename>src/app/users/user-edit/user-edit.component.ts import { Component, OnInit, AfterViewInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { UsersModel } from '../../shared/model/users.model'; import { UsersService } from '../users.service'; var App =require('../../../a...
import * as core from '@actions/core'; import * as http from '@actions/http-client'; import * as auth from '@actions/http-client/auth'; import * as io from '@actions/io'; import fileUrl from 'file-url'; import * as fs from 'fs'; import * as path from 'path'; import zlib from 'zlib'; import * as fingerprints from './fi...
import { Pool } from 'pg'; import { migrate } from 'postgres-migrations'; /** * Single global pool to be used for all queries * Grabs connection info out of environment variables: * PGUSER default=?? * PGHOST default=localhost * PGPASSWORD default=?? * PGDATABASE default=postgres * PGPORT ...
<gh_stars>10-100 import { initializeSetting } from './publicSettings' import { isServer, isDevelopment, isAnyTest, getInstanceSettings, getAbsoluteUrl } from './executionEnvironment'; import { pluralize } from './vulcan-lib/pluralize'; import startCase from 'lodash/startCase' const getNestedProperty = function (obj, d...
import { ThunkAction } from 'redux-thunk'; import { Action } from 'redux'; export interface DefaultState { showMenu: boolean; toast: string | null; theme: string; loading: boolean; loadingOverlay: boolean; settings: Settings; auth: AuthState; home: HomeState; quote: QuoteState; ...
import { ZraError } from '../../errors'; import { getElementFromDocument, RootElement } from './elements'; import { RequiredBy } from '@/utils'; /** * Gets error message from page if it exists */ export function getZraError(document: HTMLDocument): ZraError | null { // eslint-disable-next-line max-len const erro...
import * as React from "react"; import PoliklinikPage from "../../../stories/screens/resepsionis/PoliklinikPage"; import { // Form, Picker, Card, Text, CardItem, Content, View, Button, DatePicker, } from "native-base"; import { Platform } from "react-native"; import { db } from "../../../fi...
<filename>src/halia.ts /** * Copyright (C) Oranda - All Rights Reserved (January 2019 - January 2021) */ import { Register } from "./register"; import { HaliaPlugin } from "./core-plugin"; export interface Node<T> { id: string; parents: Node<T>[]; children: Node<T>[]; original: T; exports?: any; isInsta...
"use strict"; declare let require:any; let Raven = require("raven-js"); Raven.config( "#SENTRY_JS#", { logger: "#PACKAGE_NAME#", release: "#PACKAGE_VERSION#", environment: process.env.NODE_ENV } ).install(); import AnimationFrame from "AnimationFrame"; import Utils from "Utils"; impo...
import Vue from 'vue'; import Vuex from 'vuex'; import * as VuexAction from '@/store/action-types'; import * as VuexMutation from '@/store/mutation-types'; import State from '@/models/state'; import {library} from '@/models/library'; import {Track} from '@/models/track'; import {Playlist} from '@/models/playlist'; impo...
<filename>components/Editor/typetools.ts<gh_stars>1-10 import { load, Font } from "opentype.js"; import VariableTools from "components/Editor/VariableTools"; type FileReaderOutput = { fileName: string; fileSize: number; fileType: string; fileUrl: string; fileDestination: string; }; type Metrics = ...
import { Election } from '@votingworks/ballot-encoder' import { ElectionGuardConfig, ElectionMap, Tally, ElectionGuardStatus, } from '../electionguard' import { EncryptedBallot } from '../electionguard/models/EncryptedBallot' // ElectionGuard export enum CompletionStatus { Warning = -2, Error = -1, Inco...
 /// <reference path="../lib/types.d.ts" /> import url = require('url'); import net = require('net'); import http = require('http'); import Project = require('./project'); import ServiceSocket = require('./ServiceSocket'); import file = require('../lib/FileUtil'); import childProcess = require('child_process'); impo...
<filename>2019/CVE-2019-1020010/vultarget/web/source/src/remote/activitypub/renderer/note.ts import renderDocument from './document'; import renderHashtag from './hashtag'; import renderMention from './mention'; import renderEmoji from './emoji'; import config from '../../../config'; import toHtml from '../misc/get-not...
import {loadDefaultConfig} from './utils'; import { CNAB_EOL} from "./config"; import { CnabConfig, GenericKeyedObject, LayoutCNAB240, LayoutCNAB400, Lote, CNAB240, CNAB400 } from "./interfaces"; const parseDataToLayout = (layout: any,header: string) =>{ const headerObj: GenericKeyedObject...
<gh_stars>1-10 import { Terminal as Xterm, ITerminalOptions } from 'xterm'; import { DOMWidgetView, DOMWidgetModel } from '@jupyter-widgets/base'; import $ from 'jquery'; import { NAME, VERSION } from '..'; import { TerminalPhosphorWidget } from './_terminal'; import { fit } from 'xterm/lib/addons/fit/fit'; const...
<filename>src/binary.ts /* * 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, Version 2.0 (t...
import {lastOfSplit} from "./type-utils"; type CreateData = {[key: string]: string|undefined}; interface CreateOptions { classes?: string[], data?: CreateData, direction?: "ltr"|"rtl"|"auto", editable?: boolean|"true"|"false"|"inherit", id?: string, popupText?: string, spellcheck?: boolean, text?: str...
<gh_stars>1-10 import { isNotNullorUnDefined, isNullOrUndefined, Nullable } from "nullable-ts"; import { MySqlClient } from "../clients/mysql-client"; import { RssFeed, RssItem, RssItemBase } from "../models/rss"; import { getUnixtimeFromDate, isBlank } from "../utils/helpers"; import { logger } from "../utils/logger";...