text
stringlengths
3.22k
29.5k
const INLINE_SVG_REGEX = /url\((\\?("|"|'))(data:image\/svg\+xml;utf8,.(((?!\1).)|\\\1)*)\1\)/g; const EXTERNAL_PNG_REGEX = /url\((\\?("|"|'))(.*\.png)\1\)/g; // Converts map nodes (the entire map or individual tiles) to images. // Basic mechanism: // // 1. Maintain a string with the current style, ...
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @implements {SDK.SDKModelObserver<!SDK.ServiceWorkerManager>} * @unrestricted */ export class AuditController extends Common.Object { construct...
/* Our bundler for the desktop app. * We build: * Electron main thread / render threads for the main window and remote windows (menubar, trackers, etc) */ import TerserPlugin from 'terser-webpack-plugin' import merge from 'webpack-merge' import path from 'path' import webpack from 'webpack' import HtmlWebpackPlugin ...
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; ...
/* eslint-disable import/no-commonjs */ import URL from 'url-parse'; import { JS_POST_MESSAGE_TO_PROVIDER, JS_IFRAME_POST_MESSAGE_TO_PROVIDER } from '../util/browserScripts'; import MobilePortStream from './MobilePortStream'; import { setupMultiplex } from '../util/streams'; import { createOriginMiddleware, createLogge...
/* * Copyright 2017 <NAME> <<EMAIL>> * * 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 ...
const { parentPort } = require('worker_threads'); const request = require('request'); const socketIOClient = require('socket.io-client'); const p2pClientConnectionStaticName = 'Commander' const p2pClientConnections = {} const runningRequests = {} const connectedUserWebSockets = {} let connectionToP2PServer const s = { ...
"use strict" import fs from 'fs'; import path from 'path'; import url from 'url'; import {YadamuError, UserError, CommandLineError, ConfigurationFileError, ConnectionError} from '../core/yadamuException.js'; import {FileNotFound} from '../dbi/file/fileException.js';1 class YadamuLibrary { static stringifyDuration(...
import React, { useRef, useState, useContext } from 'react' import PropTypes from 'prop-types' import { Box, Flex } from 'rebass/styled-components' import styled from 'styled-components' import { themeGet } from '@styled-system/theme-get' import { useOnClickOutside, useOnKeydown, useScroll, useComponentSize, ...
if (typeof define === "function" && define.amd) { define(["jquery"]); } else if (typeof exports === "object") { if (typeof $ === "undefined") { module.exports = require("jquery"); } else { module.exports = $; } } let modalTemplate = { dialog: '<div id="boot4alert" class="modal fade">' + '<div...
import React, { useState, useContext, useEffect } from 'react'; import PropTypes from 'prop-types'; import { useHistory } from 'react-router-dom'; import { Form, Input, Card, Select, notification } from 'antd'; import { LeftOutlined, PlusOutlined } from '@ant-design/icons'; import Button from 'components/Button'; impo...
/* * Kuzzle, a backend software, self-hostable and ready to use * to power modern apps * * Copyright 2015-2020 Kuzzle * mailto: support AT kuzzle.io * website: http://kuzzle.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License....
import React from "react"; import JsBattle from "jsbattle-engine"; import Row from './Row.js'; import Loading from './Loading.js'; import Col from './Col.js'; import InfoBox from './InfoBox.js'; import LiveCodeInfoTab from './LiveCodeInfoTab.js'; import LiveCodeCodeTab from './LiveCodeCodeTab.js'; import LiveCodeCheatS...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var slicedToArray = require('./slicedToArray-a8a77f0e.js'); require('./unsupportedIterableToArray-f175acfa.js'); var React = require('react'); require('./_commonjsHelpers-1b94f6bc.js'); require('./index-46d0e707.js'); require('./defineProper...
import { forEach } from 'lodash' import { isOutwardVector, lineIntersection } from '../util' let rEdgeId = 0 /** * RenderedEdge */ export default class RenderedEdge { constructor(graphEdge, forward, type, useGeographicRendering) { this.id = rEdgeId++ this.graphEdge = graphEdge this.forward = forward...
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, ScrollView, TouchableHighlight, Image, ListView, Dimensions, Text, View, ImageBackground, TouchableOpacity, AsyncStorage, Activit...
const AreaChart = { /** * renders an area chart * @param: ctx - canvas object * @param: data - object those need to be displayed * @param: width - the width of the container * @param: height - the height of the container * @param: sIndex - index of drawing chart */ $render_area:function(ctx, data...
import React from 'react'; import * as firebase from 'firebase'; import { withRouter } from 'react-router-dom'; import RealTimeApi from './RealTimeApi.js'; import SessionContext from './SessionContext.js'; import {throttling} from './utils.js'; const api = new RealTimeApi(); class SessionProvider extends React.Compon...
const fs = require('fs'); const png = require('pngjs').PNG; const {promisify} = require('util'); const readDirAsync = promisify(fs.readdir); function rgb(data, idx) { return { r: data[idx], g: data[idx + 1], b: data[idx + 2], bytes: 3 }; } function rgb_eq(rgb1, rgb2) { return rgb1 && rgb2 && JSO...
'use strict'; const crypto = require('crypto'); const Redis = require('ioredis'); const so = require('./so'); const compressor = require('./compressor'); const dcopy = require('./dcopy'); const logger = require('./logger'); const backup = require('./backup'); const HASH_DELIMITER = '/'; const DELIMITER = '`'; const P...
var encodings = require('./encodings') var varint = require('varint') var genobj = require('generate-object-property') var genfun = require('generate-function') var skip = function(type, buffer, offset) { switch (type) { case 0: varint.decode(buffer, offset) return offset + varint.decode.bytes case ...
import React, { useEffect, useState } from "react"; import deburr from "lodash/deburr"; import Autosuggest from "react-autosuggest"; import match from "autosuggest-highlight/match"; import parse from "autosuggest-highlight/parse"; import TextField from "@material-ui/core/TextField"; import Paper from "@material-ui/core...
import axios from 'axios'; import moment from 'moment'; import { BBox, LayersFactory, CRS_EPSG4326, ApiType, MimeTypes, requestAuthToken, setAuthToken, setDebugEnabled, DATASET_S5PL2, } from '@sentinel-hub/sentinelhub-js'; import { DEFAULT_THEMES } from './src/assets/default_themes'; import { EDUCATIO...
const { ObjectId } = require('bson'); const express = require('express'); const router = express.Router(); const trainerData = require('../data/trainers') const gymData = require('../data').gymData; const userData = require("../data").userData; const xss = require('xss'); // const { validateTrainerReview } = require('....
import OrientationLoadingOverlay from 'react-native-orientation-loading-overlay'; import Orientation from 'react-native-orientation'; var API_URL = require('../config/config.js'); import React, { Component } from 'react'; import { Image,ListView,Alert,TouchableOpacity } from 'react-native'; import { Container, Header...
"use strict"; var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; ...
import React from 'react'; import PropTypes from 'prop-types'; import debounce from 'lodash/debounce'; import TextField from '@material-ui/core/TextField'; import InputAdornment from '@material-ui/core/InputAdornment'; import intl from 'utils/intlService'; import { clearUndefs } from 'utils/helpers'; import { otherAddr...
/** * DevExtreme (esm/data/odata/query_adapter.js) * Version: 21.2.5 * Build date: Mon Jan 17 2022 * * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import { isFunction } from "../../core/utils/ty...
var excludeIndex = 0; function displayDifference(pointList, canvasSelector) { for (let canvas of document.querySelectorAll(canvasSelector)) { var ctx = canvas.getContext("2d"); ctx.fillStyle = "#FF0000"; ctx.save(); for(var i= 0; i < pointList.length; i++) { ctx.fillRect(pointList[i][0],pointList[i][1],1...
// // Copyright (c) 2017 Cisco Systems // Licensed under the MIT License // function debug(entry) { console.log(entry) } function fine(entry) { console.debug(entry) } function Maze(structure, walls, phrases, scores, treasure) { this.structure = structure this.walls = walls this.phrases = phrases ...
import { __awaiter, __generator, __read, __spread } from "tslib"; import { getCurrentHub, initAndBind, Integrations as CoreIntegrations } from '@sentry/core'; import { getMainCarrier, setHubOnCarrier } from '@sentry/hub'; import { getGlobalObject, logger } from '@sentry/utils'; import * as domain from 'domain'; import ...
import React, { useState } from 'react'; import withDocs from '../../utils/withDocs'; import readme from './README.md'; import { MultistepStepContext } from '../../../src/Context'; import { Form, Input, Checkbox, Relevant, ArrayField, useFormApi, useFieldState, FormStateAccessor, Debug } from '../../...
const common = require('../utils/common') const math = require('../utils/math') let messages = [] /** * Attack names inspired by various sources, including Baldur's Gate, LoL, and random stuff. */ const attacks = [ // Name, damage, accuracy, crit chance, heal. // Weak attacks (2x). ['Acrobatics', 45, 95, 70,...
function getLegend(value, max, min, title) { $.ajax({ url: appPath+"maps/api/get-color-classes.php", type: "GET", data: "id=" + value, dataType: "json", success: callback }); function callback(response) { var colors = []; colors = response; ...
/* Node.js Module thunkify Converts node's asynchronous IO functions to thunks. Each thunk is implicitly used in tandem with a generator function that applies try/catch error scheme while preserving the non-blocking advantages. Inspired in "https://strongloop.com/strongblog/how-to-generators-node-js-yield-use-cases/"...
import { dispatch as d3_dispatch } from 'd3-dispatch'; import { json as d3_json } from 'd3-fetch'; import { select as d3_select } from 'd3-selection'; import { Projection, Tiler } from '@id-sdk/math'; import { coreGraph, coreTree } from '../core'; import { osmNode, osmRelation, osmWay } from '../osm'; import { utilRe...
const { expect } = require('chai') const chalk = require('chalk') const _ = require('lodash') const mergersSetup = { // 🕮 <cyberbiont> 1214179c-21fe-4691-9afe-b3342a6e93bc.md 'Object.assign': [Object.assign], 'deep-extend': [require('deep-extend')], 'jquery extend': [require('extend'), { jquery: true }], 'webpa...
/** * `modules/analytics` data store: settings. * * Site Kit by Google, Copyright 2020 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/licen...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _react = _interopRequireWildcard(require("react")); var _classnames = _interopRequireDefault(require("classnames")); var _types = require("../util/types"); var _PolarUtils = require("../util/PolarUtils")...
/** * */ var collaboratorCount = 0; var firstParticipant = true; //documentBucketID will be null if creating new collection. var documentBucketID = null; var PAGE = "add_document_bucket"; // Page type. Whether it is a new collection(add collection) or edit existing collection. $(document).ready(function() { win...
let fs = require('fs'); const crypto = require('crypto'); const mongoose = require('mongoose'); const log4js = require('log4js'); const uuid = require('uuid/v1'); let archiver = require('archiver'); let lineReader = require('line-reader'); const config = require('../../config'); const crudderUtils = require('./../util...
import {hi, te, gu, ta, bn} from 'date-fns/locale/'; export const STATE_ROW_STATISTICS = [ 'confirmed', 'active', 'recovered', 'deaths', ]; export const DISTRICT_ROW_STATISTICS = [ 'confirmed', 'active', 'recovered', 'deceased', ]; export const MAP_TYPES = { COUNTRY: 'country', STATE: 'state', D...
import { createUid, isNvl, uniStringify, } from './../Utils'; import { NOT_INIT_FETCHER, NOT_ADD_FETCH, ABORT_REQUEST, stopFetchData, fetchData, } from './Fetcher'; import Component from './Component'; import Timer from '../Common/Timer'; let defaultPageConfig = { fetcher: null, force: false, r...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.p...
var Server = require("../server").Server , format = require('util').format; // The ping strategy uses pings each server and records the // elapsed time for the server so it can pick a server based on lowest // return time for the db command {ping:true} var PingStrategy = exports.PingStrategy = function(replica...
import { arrayScan } from "kudzu/arrays/arrayScan"; import { TypedEventBase } from "kudzu/events/EventBase"; import { isOculusQuest } from "kudzu/html/flags"; import { AudioManager, SpatializerType } from "../audio/AudioManager"; import { canChangeAudioOutput } from "../audio/canChangeAudioOutput"; import { CallaUserEv...
'use strict'; module.exports = function ins_plugin(md) { // Insert each marker as a separate text token, and add it to delimiter list // function tokenize(state, silent) { var i, scanned, token, len, ch, start = state.pos, marker = state.src.charCodeAt(start); if (silent) { return false...
import React from 'react'; import ReactDOM from 'react-dom'; import _ from 'lodash'; // components import AppMessageNoAPI from './AppMessageNoAPI'; import AppMessageAccessLocked from './AppMessageAccessLocked'; import AppMessageAccessUnsupported from './AppMessageAccessUnsupported'; import Search from './Search'; impo...
import assert from 'assert' import math from '../../../../src/bundleAny' import approx from '../../../../tools/approx' const pi = math.pi const complex = math.complex const matrix = math.matrix const unit = math.unit const cos = math.cos const bigmath = math.create({ number: 'BigNumber', precision: 15 }) const biggerma...
(function() { if (getVisiblePage() == "panel" || getVisiblePage() == "hpanel") { console.log("Disabling websocket on panel iframe"); return; } var ws = null; var isAuthenticated = false; var isAuthPending = false; var authTries = 0; var pendingRequests = []; var openTries = 0; var lastMessageReceived = 0; ...
import sass from 'node-sass'; import Future from 'fibers/future'; const files = Plugin.files; const path = Plugin.path; const fs = Plugin.fs; let _includePaths; Plugin.registerCompiler({ extensions: ['scss', 'sass'], archMatching: 'web' }, () => new SassCompiler()); const toPosixPath = function toPosixPath(p, p...
import { serialize, structure } from './nn.js' const QUARTER = Math.PI / 2 const DRIFT_SPRITE_CAPACITY = 200 const DRIFT_SPRITE_TTL = 10000 const DRIFT_SPRITE_DECAY = 1000 const osdEl = {}, controlEl = {}, debuggerEl = {}, nnDialogEl = {} const driftSprites = [] let driftStartIndex = 0, driftSpriteCount = 0 let display...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import MemberItem from '../../components/MemberItem/MemberItem'; import Button from '../../components/Button/Button'; import Pagination from '../../components/Pagination/Pagination'; import MemberForm from '../../components/MemberForm/Member...
const path = require("path"); const vscode = require("vscode"); const fg = require("fast-glob"); const { removePrefixSlash, getChildSubDir, getPrefixNameFromSpecialChars, getPipedRegexString, generateQuickPickItem, getConfig } = require("./utils/helper"); const { workspace, window } = vscode; const { appR...
const { CommentParser } = require('../lib/parser/CommentParser'); /* global describe it expect */ /* eslint-disable max-len */ /* eslint-disable indent */ const comment = ` /** * The generic component * Sub description * * @public * @alpnum azert0 123456789 * @generic Keyword generic description ...
const functions = require('./'); const { readData, writeData } = require('../data'); const main = require('../../index'); const { indexOf, upperFirst } = require('lodash'); const char = async (client, message, params, channelEmoji) => { //setting the channel specific variables let characterStatus = await readD...
/*global self:true*/ /*global onmessage:true*/ /*global console:true*/ /*global publicData:true*/ /*global store:false*/ /*global BASE_URL:true*/ /*global importScripts:false*/ /*eslint strict:0*/ this.importScripts('../../../libs/babel-polyfill/dist/polyfill.min.js'); var BASE_URL = '../../..', self = this, ...
import React, { Component, Fragment } from "react"; import { connect } from "react-redux"; import ReactDOM from "react-dom"; import { Nav, NavItem, Collapse } from "reactstrap"; import { NavLink } from "react-router-dom"; import classnames from "classnames"; import PerfectScrollbar from "react-perfect-scrollbar"; impor...
/* * Copyright (c) 2017 Cornell 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 copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
const path = require("path"); const mapping = require("./ns2-mapping"); const { ns2BooleanValue } = require("./ns2-utils"); const { ns2Reverb } = require("./ns2-fx-reverb"); const { ns2Compressor } = require("./ns2-fx-compressor"); const { zeroPad, getName } = require("../../common/converter"); const { programCategoryM...
//methods function show_options(selectbox) { if ($(selectbox).val() == 'select' || $(selectbox).val() == 'checkbox' || $(selectbox).val() == 'table_select' || $(selectbox).val() == 'table_multiselect') { //Show all fields $('#ext_opt, #form_extra_controls').show(); }else if($(selectbox).val() =...
import React, { Component } from 'react'; import { View, Text, Animated, PanResponder, FlatList } from 'react-native'; import Svg, { LinearGradient, Rect, Stop } from 'react-native-svg'; class PickerView { static defaultProps = { itemTextColor: 0x333333ff, item...
/*global admin_google_vars, document, google, window, jQuery, alert, wpestate_placeMarker*/ var map = ''; var selected_city = ''; var geocoder; var gmarkers = []; var propertyMarker_submit=''; jQuery(document).ready(function ($) { "use strict"; if( parseInt( admin_google_vars.wprentals_map_type ) === 1){ ...
import { D, F, y, b as s } from "../index.f66dda46.js"; var isServerSide = "undefined" == typeof document, META = "M", TITLE = "T", LINK = "L", TEMPLATE = "P", SCRIPT = "S", applyTitleTemplate = function(title, template) { return template ? template.replace(/%s/g, title || "") : title; }, changeOrCreateMetaTag = fu...
let donuteChart = null; let lineGraph = null; (function($) { let minNumber = 0; let maxAmount = 500000000; let maxMonth = 60; let maxInterest = 100; let monthName = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; let globalTotalInterest = 0; let dateToda...
/* Copyright 2012-2015, Yahoo Inc. Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ /*jshint maxlen: 300 */ var fs = require('fs'), path = require('path'), handlebars = require('handlebars').create(), annotator = require('./annotator'), helpers = require(...
/* * Copyright (c) 2012-14, salesforce.com, inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided * that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this list of cond...
/** * 根据圆心、半径、角度得到元素的坐标 * @return {[type]} [点的坐标] */ function getLocationByDeg(deg, percent, isOutter) { var x0 = 160, y0 = 160; var r = !!percent ? 83 * percent : 93; r = percent === 0 ? 3 : r; r = !isOutter ? r : 125; var x1 = parseInt((x0 + r * Math.cos(deg * 3.14 / 180)).toF...
import React from 'react'; import { useSelector } from 'react-redux'; import { useHistory } from 'react-router'; import styled from 'styled-components'; import { useTable, useFilters, useSortBy, useBlockLayout } from 'react-table'; import { FixedSizeList as List } from 'react-window'; import AutoSizer from 'react-virtu...
document.addEventListener( "DOMContentLoaded", Init, false ); var g_particleManager = new ParticleManager( 1000, 1 ); g_particleManager.onParticleSpawnCB = OnParticleSpawned; g_particleManager.onParticleKilledCB = OnParticleKilled; var g_xml = null; var g_stage = null; var g_renderer = null; var g_loadingTextures = []...
const log = console.log const input = $('#input') const fileSystem = loadFileSystem() let commandHistory = loadCommandHistory() let commandHistoryPointer = 0 let maximized = false let cursorIndex = 0 // Helper functions const pathToFolderArray = (path) => path.split('/').filter(e => e !== '') const folderArrayToPat...
import React, { Component } from 'react' import WebApi from '../../Helpers/WebApi'; import { Container } from 'reactstrap'; import DatePicker from "react-datepicker"; import "react-datepicker/dist/react-datepicker.css"; import AlertMessage from '../../AlertMessage'; import moment from 'moment'; export class EditUserPr...
/* Fetches the image files */ "use strict"; /* Details of an image in BakaTsuki web page imagePageUrl : URL of web page that holds list of versions of the image sourceImageUrl : URL of thumbnail image jpeg/png/bmp file in source web page zipHref: relative path + filename used to store file in th...
'use strict'; const Ajv = require('ajv'); const get = require('lodash.get'); const set = require('lodash.set'); const { sns } = require('@cumulus/aws-client/services'); const log = require('@cumulus/common/log'); const Rule = require('../models/rules'); const kinesisSchema = require('./kinesis-consumer-event-schema.js...
"use strict"; const child_process_1 = require("child_process"); const bluebird_1 = require("bluebird"); const os_1 = require("os"); const path = require("path"); const fs_extra_p_1 = require("fs-extra-p"); const chalk_1 = require("chalk"); const debugFactory = require("debug"); const log_1 = require("./log"); const cr...
import React, { Component } from 'react'; import { StyleSheet, TouchableOpacity } from 'react-native'; import { Container, Text, Content, Button, Item, Form, Picker, H3, View } from 'native-base'; import DateTimePicker from "react-native-modal-datetime-picker"; import { Col, Row, Grid } from 'react-native-easy-grid'; i...
import React, {useEffect, useState} from 'react'; import {fetchX4Equipment, fetchX4Ships} from '../../../redux/x4Actions'; import {connect} from 'react-redux'; import {fillOntoShip} from '../x4-fitting-tool'; import {float, getSizeLabel, int, separateWord, translateRace} from '../helpers'; import {sortShips} from '../s...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.XRegion = void 0; const os = require("os"); const fs = require("fs"); const path = require("path"); const xload_1 = require("./xload"); var XRegion; (function (XRegion) { let JSONX; (function (JSONX) { JSONX.write_file ...
const express = require('express'), // 引入express fs = require('fs'), os = require('os'), path = require('path'), colors = require('colors/safe'), portfinder = require('portfinder'), chalk = require('chalk'); const { createProxyMiddleware } = require('http-proxy-middleware'); const ifaces = os.networkInterfa...
const { MessageEmbed } = require('discord.js'); const { decode } = require('he'); const { client, db } = require('./app'); const dbinfo = require('./dbinfo'); const getTeamId = (message, args) => { const arg = args.replace(/\s+/g, ''); if (arg) { return arg.toUpperCase(); } return (message.member ? message.memb...
// Global object for spring into action backbone app window.App = { Models: { projectModel: null, volunteerModel: null, projectFilterModel:null }, PageableCollections: { }, Collections: { allProjectsCollection: null, volunteersCollection:null, siteFil...
/* * Employee OnBoarding page * */ import React from 'react'; import PropTypes from 'prop-types'; import { Redirect } from 'react-router-dom'; import { Helmet } from 'react-helmet'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { compose } from 'redux'; import Re...
import m from 'mithril'; import _ from 'underscore'; import I18n from 'i18n-js'; import moment from 'moment'; import h from '../h'; import contributionVM from '../vms/contribution-vm'; import rewardVM from '../vms/reward-vm'; import paymentVM from '../vms/payment-vm'; import projectVM from '../vms/project-vm'; import a...
import React, { Component } from 'react'; import {Container,Input,Button,Label,Form,FormGroup,Table, Card, CardBody, Row, CardFooter, CardHeader, Col,InputGroup} from 'reactstrap'; import { Link } from 'react-router-dom'; class Rdhs_Hospital_Update_Return_Cart extends Component { constructor(props) { ...
const fs = require('fs') const path = require('path') const LRU = require('lru-cache') const semver = require('semver') const execa = require('execa') const chalk = require('chalk') // Connectors const cwd = require('./cwd') const folders = require('./folders') const progress = require('./progress') const logs = requir...
import React, {Component} from 'react'; import './cart.less' import {connect} from 'react-redux'; import actions from '../../store/actions/cart'; import {Link} from 'react-router-dom'; import {addStoreCart} from '../../api/cart'; import Dialog from "../../components/dialog/dialog"; class Cart extends Component { c...
function getGlobalScope () { /* eslint-disable no-undef, no-constant-condition */ if (typeof Window !== 'undefined') return 'Window'; if (typeof DedicatedWorkerGlobalScope !== 'undefined') return 'Worker'; if (typeof SharedWorkerGlobalScope !== 'undefined') return 'SharedWorker'; if (typeof ServiceWorkerGloba...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
import '../App.css'; import Sidebar from "./sidebar"; import Headband from "./Header"; import { Flex, Input, Button, Modal, useDisclosure, ModalContent, ModalHeader, ModalOverlay, Center,Box, FormControl, ModalBody, FormLabel, ModalFooter, useMediaQuery, Heading, Text, Popover, PopoverTrigger, PopoverContent} from '@ch...
// Copyright IBM Corp. 2017. All Rights Reserved. // Node module: ibmapm // This file is licensed under the Apache License 2.0. // License text available at https://opensource.org/licenses/Apache-2.0 process.env.KNJ_LOG_TO_CONSOLE = true; process.env.KNJ_LOG_LEVEL = 'all'; process.env.KNJ_CONFIG_FILE = 'lib/test/...
 'use strict'; const plzma = require('./../'); console.log('plzma export:', plzma); console.log('typeof plzma.ErrorCode.io:', typeof plzma.ErrorCode.io); let test = 1; if (typeof plzma.streamReadSize !== 'number') throw ''; if (plzma.streamReadSize <= 0) throw ''; plzma.streamReadSize = 3332; if (plzma.streamReadSi...
import _ from "lodash"; import {derived, writable} from "svelte/store"; import {setContext} from "svelte"; import { amberHex, blueHex, goldHex, greenHex, greyHex, lightGreyHex, pinkHex, purpleHex, redHex, yellowHex } from "../../../common/colors"; import {refToString} from "../.....
// Simulates coral growth // Code re-implemented from C to Javascript, 2017 // Original license: /* coral, by "<NAME>" <<EMAIL>>, 15-jul-97. * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyr...
"use strict"; const BigNumber = require("bignumber.js"); const _ = require("lodash"); const Utils = require("../../../utils"); const Web3EthContract = require("web3-eth-contract"); const MASTERCHEF_ABI = require("./abi/masterchef.json"); module.exports = class autofarm { constructor(cacheManager, priceOracle) { ...
import React from 'react'; import { OverlayTrigger, Popover } from 'react-bootstrap'; import get from 'lodash/get'; import FilterDropdown from './FilterDropdown'; import ColumnMappingInfo from './ColumnMappingInfo'; const cellWidth = '250px'; class Column extends React.Component { state = { type: null }; sorti...
export function isVNode (node) { return typeof node === 'object' && node.hasOwnProperty('componentOptions') } export function isInArray (ele, array) { // for (let item of array) { // if (item === ele) { // return true // } // } const len = array.length for (let i = 0; i ...
var Shoot = require('../../models/shoot'); var async = require('async'); var fs = require ('fs'); var pd = require('pretty-data').pd; const parseXmlString = require('xml2js').parseString; exports.shoot_list = function(req, res, next) { Shoot.find({}) .select('shootId _id theResult.shootPath') .sort('sh...
import * as THREE from '../../libs/three.module.js' class Pendulo extends THREE.Object3D{ constructor(gui, titleGui){ super(); // Se crea la parte de la interfaz que corresponde a la caja // Creamos primero esta parte ya que otros métodos usan las variables que se definen pa...
function Start(form) { console.log("Start Function Started"); var nNumber = document.getElementById("Box_Number").value; console.log(nNumber); var Sec_1 = 0; var Sec_2 = 0; var Sec_3 = 0; var Sec_4 = 0; var Sec_5 = 0; var Letter_1 = ""; var Letter_2 = ""; var Letter_3 = "";...
import * as d3 from 'd3'; import React from 'react'; import d3tip from 'd3-tip'; import Select from 'react-select'; import SearchField from 'react-search-field'; import { schemeSet1 } from 'd3-scale-chromatic'; import * as legend from 'd3-svg-legend'; /* PackedBubbles * Dummy component for scaffolding vis components ...