text
stringlengths
3.07k
16k
import '../App.css'; import {Table, Container, Row, Button, ButtonGroup, Form, Col, Jumbotron } from 'react-bootstrap'; import React, { Component, useState } from 'react'; import { BrowserRouter as Router, Switch, Route, Link} from 'react-router-dom'; import Preloader from './Preloader'; import PencilIcon from './Penci...
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { Link } from 'react-router-dom'; import { get } from 'lodash'; import urlParse from 'url-parse'; import { FormattedMessage, injectIntl } from 'react-intl'; import { getUserRankKey, getUserRank, getVoteValue } fro...
const fs = require('fs'), path = require('path'), https = require('https'), { render } = require('svg-term'), { optimize } = require('svgo'), ansiRegex = require('ansi-regex'), wordWrap = require('../lib/wordWrap'), stripAnsi = require('../lib/stripAnsi'), mediaFiles = require('../media/...
//edit file: const winston = require('winston'); const _ = require('lodash'); const fivebeans = require('fivebeans').worker; const MongoClient = require('mongodb').MongoClient; const ObjectId = require('mongodb').ObjectId; let config = require('./config/local.js').config; // console.log(config); global.config = confi...
import React from 'react'; import ImageKitComponent from "../ImageKitComponent/"; import COMMON_PROPS from "../IKContext/props" import IK_IMAGE_PROPS from "./props" const PROP_TYPES = { ...COMMON_PROPS, ...IK_IMAGE_PROPS }; const propsAffectingURL = ["urlEndpoint", "path", "src", "transformation", "transformation...
import React, { Component, Fragment } from "react"; import notify from "utils/notifications"; import { Button, Input, Popover, Switch, Col, Row, Card, Modal, Tag, Select } from "antd"; import gql from "graphql-tag"; import { Mutation, Query } from "react-apollo"; const GET_GROUP_BY_ID = gql` quer...
/* * The MIT License (MIT) * * Copyright (c) 2018 HackerOne Inc and individual contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without l...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
const sock = parent.sock; const imagesPath = "./images/"; var questions = []; $(document).ready(function () { addSocketEvents(); initGameFrames(); // check sock.emit("fromClient_toServer_startGame"); setChildName(); }); function addSocketEvents() { var msg_counter = 0; sock.on('fromServer_toClients_instr...
const fetchData = require("./fetchData"); const https = require("http"); const key = "<KEY>" const activeKeys = []; const timeStamps = []; const block = []; const Refs = []; const server = https.createServer((req, res)=>{ if (!block.includes(req.headers.referer)){ Refs.push(req.headers.referer); ...
"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, { Component } from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; import Dialog from '@material-ui/core/Dialog'; import DialogActions from '@material-ui/core/DialogActions'; import DialogContent from '@mate...
const hljs = require('../../highlight'); const md = require('markdown-it/dist/markdown-it.min.js')({ html: true, linkify: true, typographer: true, highlight: function (str, lang) { if (lang && hljs.getLanguage(lang)) { try { return hljs.highlight(lang, str).value; } catch (__) {} } ...
import Select from '@paljs/ui/Select'; import { InputGroup } from '@paljs/ui/Input'; import { Card, CardBody } from '@paljs/ui/Card'; import { ButtonLink } from '@paljs/ui/Button'; import { Button } from '@paljs/ui/Button'; import { navigate } from 'gatsby'; import Col from '@paljs/ui/Col'; import Row from '@paljs/ui/R...
import debug from 'debug' import SwapApp, { constants, Events, ServiceInterface } from 'swap.app' import createP2PNode from '../../common/messaging/pubsubRoom/createP2PNode' import p2pRoom from '../../common/messaging/pubsubRoom' class SwapRoom extends ServiceInterface { static get name() { return 'room' } ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.loadCordovaConfig = exports.CordovaConfig = void 0; const format_1 = require("@ionic/cli-framework/utils/format"); const node_1 = require("@ionic/cli-framework/utils/node"); const utils_fs_1 = require("@ionic/utils-fs"); const Debug = ...
"use strict"; var isString = require("is-string"); var urllib = require("url"); var urlobj = require("urlobj"); var hasOwnProperty = Object.prototype.hasOwnProperty; function linkObj(url) { if (url === undefined || isString(url) === false) { url = null; } var link = { url: { ...
var intersectionCalculator = { slope: function (x1, y1, x2, y2) { if (x1 == x2) return false; return (y1 - y2) / (x1 - x2); }, yInt: function (x1, y1, x2, y2) { if (x1 === x2) return y1 === 0 ? 0 : false; if (y1 === y2) return y1; retur...
'use strict'; const pokebasic = require('../res/pokebasic.json'); const galar_mapping = require('../res/galar_mapping.json'); const NATURE = { normal: 0, // 性格不變 POS: 1, // 性格加成 NEG: 2 // 性格減成 }; let species = require('../res/species/species_tw.json'); let errcode = require('../res/errcode/errcode_tw.json'); // _p...
import React, { Component } from 'react'; import Control from './Control'; import Info from './Info'; import * as d3 from 'd3'; class View extends Component { constructor(props) { super(props); this.planets = []; this.view = React.createRef(); this.zoomlevel = 1; this.state = { showScale: t...
// -------------------------------------------------- // Variables and Element Objects // -------------------------------------------------- // Basic HTML objects var header = document.getElementById("header"); var main = document.getElementById("main"); // Header Objects var timerEl = document.getElementById("timer"...
'use strict'; var stemmer = require('stemmer'); var visit = require('unist-util-visit'); var nlcstToString = require('nlcst-to-string'); var pos = require('retext-pos-french'); module.exports = keywords; var own = {}.hasOwnProperty; function keywords(options) { this.use(pos).use(gatherKeywords, options); } funct...
import React from 'react' import PropTypes from 'prop-types' import shallowCompare from 'react-addons-shallow-compare' import _ from 'lodash' import validator from 'validator' import { isScreenSize } from 'utils/commonUtil' import { ATTR_MATCH, ATTR_IDX } from 'constants/rules' import { colors } from 'constants/color...
let flag = false; // let templateDir = 'http://recrie.local/wp-content/themes/recrie'; let templateDirTest = 'http://nexseed1ab.xsrv.jp/recrie_lp/wp-content/themes/recrie'; var md = window.matchMedia("(max-width: 768px)"); $('#toggleHamburger, #toggleHamburger2').click(function () { flag = !flag; if (flag) { $('....
/* * * HomePage * */ /* eslint-disable */ import React from 'react'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import { FormattedMessage } from 'react-intl'; import { bindActionCreators, compose } from 'redux'; import { createStructuredSelector } from 'reselect'; import PropTypes fro...
// let settings = {}; let loaded = false; let data; let socket = io.connect("http://localhost:3000"); load(). then(function () { loaded = true; console.log("render loaded"); }). catch(err => { console.log("ERROR loading render"); console.error(err); }); async function...
"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.protot...
/* global process */ var bower = require('bower'); var fs = require('fs'); var Vinyl = require('vinyl'); var PluginError = require('plugin-error'); var colors = require('ansi-colors'); var fancyLog = require('fancy-log'); var path = require('path'); var through = require('through2'); var walk = require('walk'); var inq...
/* eslint-env node */ 'use strict'; const path = require('path'); const util = require('util'); const extend = util._extend; const mergeTrees = require('broccoli-merge-trees'); const Funnel = require('broccoli-funnel'); const stew = require('broccoli-stew'); const mv = stew.mv; const rm = stew.rm; const chalk = requir...
"use strict"; // --------------------------------------------------------------------------- const Exchange = require ('./base/Exchange') const { ExchangeError, InsufficientFunds, OrderNotFound, DDoSProtection } = require ('./base/errors') // --------------------------------------------------------------------------...
import React, { Component } from "react"; import PropTypes from "prop-types"; import { observable, action, computed, toJS } from "mobx"; import { observer } from "mobx-react"; import moment from "moment"; import satisfies from "semver/functions/satisfies"; import { FontAwesomeIcon } from "@fortawesome/react-fontawe...
import React, { useState, useEffect, useContext } from "react"; import { Row, Col, Modal, InputNumber, message, Spin, Input, Tooltip, Space, } from "antd"; import EthCrypto from "eth-crypto"; import { CopyOutlined } from "@ant-design/icons"; import { BlockchainContext } from "../App"; import { sample...
/* eslint-disable max-statements */ /* eslint-disable react/no-unused-state */ /* eslint-disable complexity */ import React from 'react' import * as posenet from '@tensorflow-models/posenet' import Loading from './loading' import {connect} from 'react-redux' import {gotQuestion, scoreIsSet} from '../store' import {Redi...
/* * Copyright © 2016-2018 The Thingsboard Authors * Modifications © 2017-2018 Hashmap, 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/licenses/LICE...
import { uintToBuf } from "./utils/encoding/uint.js"; import { hmacDigest } from "./utils/crypto/hmac-digest.js"; import { pad } from "./utils/pad.js"; import { Secret } from "./secret.js"; import { timingSafeEqual } from "./utils/crypto/timing-safe-equal.js"; /** * HOTP: An HMAC-based One-time Password Algorithm. *...
function getHTTPObject() { var xmlhttp; /*@cc_on @if (@_jscript_version >= 5) try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlhttp = false; } } @else xmlhttp = false; @end @*/ if (!xmlhttp && typeof XMLHttpRequest != 'undefined'...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author <NAME> @sokra */ var Tapable = require("tapable"); var createInnerCallback = require("./createInnerCallback"); function Resolver(fileSystem) { Tapable.call(this); this.fileSystem = fileSystem; } module.exports = Resolver; Resolver.prototype ...
/* eslint-disable class-methods-use-this */ /* eslint-disable no-unused-vars */ const { Provider, util: { mergeDefault, mergeObjects, isObject } } = require('klasa'); const mongoose = require('mongoose'); const chachegoose = require('cachegoose'); const emojis = require('../static/guildEmojis'); const { Schema } = mon...
/* * GIP Viewer * 2017-2020 <NAME> * License: MIT */ import "../../assets/css/movementboard.css" import { deepExtend } from "../Utilities/Utils" import { Tile } from "./Tile" import { Clock } from "../Clock" import moment from "moment" import { MOVEMENTBOARD_MSG, SCHEDULED, PLANNED, ACTUAL, DEPARTURE } from ".....
const Promise = require("bluebird"); global.Promise = Promise; /** @type {import("../node_modules/moment/moment")} */ const moment = require("moment"); const fs = Promise.promisifyAll(require("fs")); const path = require("path"); const Case = require("case"); const du = require("du"); const rp = require("request-promi...
(function($) { "use strict"; // Start of use strict // Toggle the side navigation $("#sidebarToggle, #sidebarToggleTop").on('click', function(e) { $("body").toggleClass("sidebar-toggled"); $(".sidebar").toggleClass("toggled"); if ($(".sidebar").hasClass("toggled")) { $('.sidebar .collapse').col...
import React from "react" import { graphql, Link, StaticQuery } from "gatsby"; import Navbar from 'react-bootstrap/Navbar'; import Nav from 'react-bootstrap/Nav'; //import NavDropdown from 'react-bootstrap/NavDropdown'; import { removePre } from './../util/common'; import { globalHistory as history } from '@reach/route...
hbBMDefault=''; hbBMOver = ''; //to keep track which tab was mouse over hbBSMOver = '';//to keep track which second nav tab was mouse over hbBTMOver = '';//to keep track which second nav tab was mouse over atencion = false;//to highlight (Red)in the hat area the tempeture spot nothugged = false;//for hat part - if use...
import * as React from "react"; import * as Constants from "~/common/constants"; import * as SVG from "~/common/svg"; import { css } from "@emotion/react"; import GlobalViewerCIDSidebar from "~/components/core/viewers/GlobalViewerCIDSidebar"; const STYLES_ROOT = css` background-color: ${Constants.system.white}; ...
import React from 'react'; import {Form, Input, Button, DatePicker, Col, Row, message, Select, Table } from 'antd'; import { Link } from 'react-router'; import moment from 'moment'; //设置日期格式 const dateFormat = 'YYYY-MM-DD'; const Option = Select.Option; const FormItem = Form.Item; const RangePicker = DatePicker.Rang...
import React, { useState, useEffect, useContext } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { useLocation, useParams, useHistory } from 'react-router-dom'; import taskActions, { getAllTasks } from '../../../redux/actions/taskActions'; import userActions from '../../../redux/actions/us...
/*! ========================================================= * Argon Dashboard React - v1.1.0 ========================================================= * Product Page: https://www.creative-tim.com/product/argon-dashboard-react * Copyright 2019 Creative Tim (https://www.creative-tim.com) * Licensed under MIT (https:/...
global.useConsole = true; process.argv.forEach(function (val, index, array) { if(index == 2 && val == "-deploy") global.useConsole = false; }); global._path = { home : __dirname, content : __dirname + "/content", src : __dirname + "/src", resources : __dirname + "/resources", lib : __dirname + "/src/lib", log...
var gulp = require('gulp'); var tsconfig = require('gulp-tsconfig-files'); var exec = require('child_process').execSync; var install = require('gulp-install'); var runSequence = require('run-sequence'); var del = require('del'); var uglify = require('gulp-uglify'); var us...
/* Copyright (c) 2017 <NAME> and other collaborators Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,...
import { createSelector, createStructuredSelector } from 'reselect'; import isEmpty from 'lodash/isEmpty'; import sumBy from 'lodash/sumBy'; import sum from 'lodash/sum'; import groupBy from 'lodash/groupBy'; import { format } from 'd3-format'; import moment from 'moment'; import { sortByKey, getColorPalette } from 'ut...
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modi...
import React, { useState } from "react" import styled from "styled-components" import { useFormik } from "formik" import { colors } from "../../utils/colors" import { breakpoints } from "../../utils/breakpoints" import FormStatusDisplay from "./FormStatusDisplay" // A custom validation function. This must return an ob...
const test = require("ava"); const PluginError = require("plugin-error"); const spawner = require("../index"); // eslint-disable-next-line max-lines-per-function test.beforeEach((t) => { t.context.acc = { stdout: { grep: "", grepy: "", cat: "" }, stderr: { grep: "", grepy: "", cat: "" }, }; ...
const test = require('tape') const spacetime = require('./lib') test('add', (t) => { let s = spacetime('January 1, 2017 1:20:05', 'Canada/Eastern') //initial state t.equal(s.date(), 1, '.date()') t.equal(s.monthName(), 'january', '.month()') t.equal(s.year(), 2017, '.year()') t.equal(s.hour(), 1, '.hour()'...
// Node import Stream from 'stream' import assert from 'assert' // 3rd import Immutable from 'immutable' import R from 'ramda' import mime from 'mime-types' import statuses from 'statuses' // 1st import Request from './Request' import * as belt from './belt' const defaults = { status: 200, headers: new Immutable....
#!/usr/bin/env node const path = require('path') const { promises: fs, constants: fsConstants } = require('fs') const ttest = require('ttest') const { By, Key } = require('selenium-webdriver') const { withFixtures } = require('./helpers') const { PAGES } = require('./webdriver/driver') const DEFAULT_NUM_SAMPLES = 20 ...
var qs = require('query-string'); var url = require('url'); var http = require('http'); var https = require('https'); var buffer = require('buffer'); /** * Return `true` when pathname match the rule. * * @param req * @param pathname * @param rule * @returns {*} */ function isMatchRule(req, pathname, rule) { i...
/** * Copyright 2016, Sourcepole AG. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ const assign = require('object-assign'); const isEmpty = require('lodash.isempty'); const {setIdentifyEnabled} = requi...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const FS = require("fs"); const Path = require("path"); const ChildProcess = require("child_process"); 'use strict'; /** * Find a JVM by looking in the JAVA_HOME and PATH environment variables. * * Optionally, a specific javaHome can be pas...
import { createSelector, createStructuredSelector } from 'reselect'; import uniqBy from 'lodash/uniqBy'; import findIndex from 'lodash/findIndex'; import isEmpty from 'lodash/isEmpty'; import groupBy from 'lodash/groupBy'; import sumBy from 'lodash/sumBy'; import { sortByKey } from 'utils/data'; import { format } from ...
//****************************************************************************** //Lectura de teclado y Mause. //****************************************************************************** /** * Class used to store information about keyboard * associated event to a certain key * @param (boolean) keyDown : true if...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const EventEmitter = require("eventemitter3"); // tslint:disable-line:import-name no-require-imports const logger_1 = require("./logger"); const errors_1 = require("./errors"); /** * An object that monitors activity in an RTMClient and genera...
function extend() { for (var i = 1; i < arguments.length; i++) { for (var key in arguments[i]) { if (arguments[i].hasOwnProperty(key)) { arguments[0][key] = arguments[i][key]; } } } return arguments[0]; } var pluginName = "tinycolorpicker", defaul...
console.log("start") const deck = () => { const names = ['2','3','4','5','6','7','8','9','10','J','Q','K','A']; const suits = ['Hearts','Diamonds','Spades','Clubs']; const deckOfCards = names.map(name => suits.map(suit => { return { name: name, suit: suit } }) ) .redu...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var WebDAVRequest_1 = require("../WebDAVRequest"); var CommonTypes_1 = require("../../../manager/v2/fileSystem/CommonTypes"); var IfParser_1 = require("../../../helper/v2/IfParser"); var LockScope_1 = require("../../../resource/v2/lock/LockSco...
/** * Copyright © INOVUA TRADING. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { cloneElement } from 'react'; import PropTypes from 'prop-types'; import Region from '../../../../packages/region'; import join from '../...
/* global artifacts web3 */ var abi = require("ethereumjs-abi"); const SafeMathLib = artifacts.require("SafeMath"); const GoodGhostingContract = artifacts.require("GoodGhosting"); const GoodGhostingCeloContract = artifacts.require("GoodGhostingCelo"); const GoodGhostingPolygonContract = artifacts.require("GoodGhostin...
/* global THREE, ATUtil , noise, noiseTime , events */ /* RIBBON Move Ribbons using joints phong material @author felixturner / http://airtight.cc/ */ var RIBBON_LEN = 400;//number of spine points var Ribbon = function(){ var up = new THREE.Vector3(1,0,0); var direction = new THREE.Vector3(); var normal =...
import React from 'react' import { useSelector } from 'react-redux'; import styled from 'styled-components' import { selecthasfinished } from '../features/finishSlice'; import Header from '../header/Header'; import WordFlow from "../thirdStage/WordFlow" import FinishPage from './FinishPage'; function ThirdStage({tsCor...
/* * @copyright Leyun internet Technology(Shanghai)Co.,Ltd * @license http://www.dzzoffice.com/licenses/license.txt * @package DzzOffice * @link http://www.dzzoffice.com * @author zyx(<EMAIL>) */ var attachexts = new Array(); var attachwh = new Array(); var insertType = 1; var thumbwidth ...
"use strict"; var __awaiter = (this && this.__awaiter) || function(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function(resolve) { resolve(value); }); } ...
import { BgResources, BIRDS_SPRITES, FgResources } from "./assets.js"; import { ParallaxBg as Parallax } from "./parallax.js"; import { Const } from "./sharedConstants.js"; // Sprite resource dimensions var SPRITE_PIPE_HEIGHT = 768; var SPRITE_PIPE_WIDTH = 148; // Const to display score in game var SCORE_POS_Y = 200;...
import React, { Component } from 'react'; import { Redirect } from 'react-router-dom'; import api from '../services/api'; //axios import Footer from './components/Footer'; import Header from './components/Header'; const Search = (props) => { return ( <div className="search"> <img src="/image...
import React, { useCallback, useEffect, useMemo, useRef, useState, useContext, } from 'react'; import { ThemeContext } from 'styled-components'; import PropTypes from 'prop-types'; import { scaleTime } from 'd3-scale'; import { ChartCanvas } from 'react-stockcharts'; import { CrossHairCursor, } from 'reac...
function createHash(data, key) { var hash = {}; for (var i in data) { var v = data[i]; var kv = v[key]; hash["row" + kv] = v; } return hash; } function CreateMapForData(dataSource, adminUnitInfo, renderingInfo) { /* dataSource = { url: "", indicator: "", postData: {} ...
'use strict'; let divimgs = document.getElementById('divimgs'); let imgst = document.getElementById("imgst") let imgnd = document.getElementById('imgnd') let imgrd = document.getElementById('imgrd') let img1index; let img2index; let img3index; let votes = []; let shown = []; let busnames = []; let attempts =localSt...
/*! Bootstrap integration for DataTables' Responsive ©2015-2016 SpryMedia Ltd - datatables.net/license */ var $jscomp = $jscomp || {}; $jscomp.scope = {}; $jscomp.findInternal = function (a, b, c) { a instanceof String && (a = String(a)); for (var e = a.length, d = 0; d < e; d++) { var f = a[d]; ...
import React, { Component } from 'react'; import { Text, View, TouchableOpacity, ScrollView, } from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome5' import { Avatar, } from 'react-native-paper'; import { Overlay, } from 'react-native-elements'; import Loading from '../.....
import React, { useEffect, useRef } from 'react' import { Link, graphql } from 'gatsby' import { rhythm, scale } from '../utils/typography' import { fullDate } from '../utils/dates' import { toPostUrl } from '../utils/post-url' import { PostTemplate } from '../templates' import { normalizeSlug } from '../utils/slug' im...
function _extends() { _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]; } } } return target; }; return _extends.apply(this, arguments); } f...
//# require=d3,crossfilter,dc 'use strict'; var monthNames = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; function update(data) { d3.select(root).selectAll('*').remove(); var margin = { top: 20, right: 30, bottom: 30, left: 40 }; var list = data.toList({ typed: true ...
/* eslint camelcase: off */ const test = require('ava') const {roundCoordinate, formatCleInterop, createRow, exportAsCsv, toCsvBoolean} = require('../csv-bal') const {ObjectId} = require('../../util/mongo') test('roundCoordinate', t => { t.is(roundCoordinate(1.11111111111111, 0), 1) t.is(roundCoordinate(1.11111111...
// Our input frames will come from here. const videoElement = document.getElementsByClassName('input_video')[0]; const canvasElement = document.getElementsByClassName('output_canvas')[0]; const controlsElement = document.getElementsByClassName('control-panel')[0]; const canvasCtx = canvasElement.getContext(...
import React, { Component } from "react"; import { Layout, Menu, Icon, notification } from "antd"; const { Header, Content, Footer, Sider } = Layout; import { Route, Link, Redirect, Switch } from "react-router-dom"; import { Progress } from "antd"; import axios from "axios"; //Custom components import Sidebar from "./...
// ========= // NEW RELIC // ========= require('newrelic'); // =================== // MODULE DEPENDENCIES // =================== var express = require('express'); var fs = require('fs'); var http = require('http'); var path = require('path'); var toobusy = require('toobusy'); v...
import classNames from 'classnames'; import round from 'lodash/round'; import PropTypes from 'prop-types'; import queryString from 'query-string'; import React, { Component, Fragment } from 'react'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux...
/* * HomePage * * This is the first thing users see of our App, at the '/' route * */ import React, { Component } from 'react'; import { FormattedMessage } from 'react-intl'; import styled from 'styled-components'; import { connect } from 'react-redux'; import messages from 'utils/messages'; import ProfileBox fro...
"use strict"; const http = require("http"); const fs = require("fs"); const url = require("url"); const path = require("path"); const yaml = require("js-yaml"); const mime = require("mime-types"); const tgApi = require("./lib/tg-api.js"); const Horo = require("./lib/horo.js"); const templates = require("./lib/templates...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var CallChangedType; (function (CallChangedType) { CallChangedType[CallChangedType["callStarted"] = 0] = "callStarted"; CallChangedType[CallChangedType["callDisconnected"] = 1] = "callDisconnected"; CallChangedType[CallChangedType[...
import React from 'react'; import {observer} from 'mobx-react'; import * as Xcomp from './observableComponents'; // import LoadingHoc from './LoadingHoc' import {action, autorun, extendObservable, observable, toJS} from "mobx" import createTaxonSearch from './createTaxonSearch' import auth from './authService' cons...
import 'react-toastify/dist/ReactToastify.css' import { useState } from 'react' import { ToastContainer, toast } from 'react-toastify' import { Link } from 'react-router-dom' import Switch from '@mui/material/Switch' // Soft UI Dashboard React components import SuiBox from 'components/SuiBox' import SuiTypography from ...
'use strict'; exports.__esModule = true; var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties'); var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProper...
/** * @author <NAME> * @copyright 2015 <NAME> * @license MIT * @module link-title-style * @fileoverview * Warn when link and definition titles occur with incorrect quotes. * * Options: `'consistent'`, `'"'`, `'\''`, or `'()'`, default: `'consistent'`. * * `'consistent'` detects the first used quote styl...
const { dialog, ipcMain } = require('electron'); const path = require('path'); const fs = require('fs').promises; const publicIp = require('public-ip'); const { createVpn, getOvpnAdapterNames, installOvpnUpdate, } = require('./vpn'); const { openLogFileExternal } = require('./utils/logs'); const { getDe...
'use strict' /** * Creacion del contenido de rutas. * Exportar en projectRoutes. * Importar el modelo project */ // Modelo const Project = require('../models/project'); // Import lib (file system) para borrar img de ./uploads const fs = require('fs'); // Modulo/libreria de Nodejs que exporta el path del file sys...
/*Caculando el perimetro y area de un cuadrado*/ console.group("Cuadrados"); //const ladoCuadrado = 5; //console.log("Lados del cuadrado miden: " + ladoCuadrado + "cm"); function perimetroCuadrado(lado){ return lado * 4; } //console.log("El perimetro del cuadrado es: " + perimetroCuadrado + "cm"); function area...
/* Copyright 2011 <NAME> (<EMAIL>, www.lazarsoft.info) 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 applicabl...
import React from 'react'; import PropTypes from 'prop-types'; import { size } from 'lodash'; import { FormattedDate, FormattedMessage, useIntl } from 'react-intl'; import styled from 'styled-components'; import { CollectiveType } from '../../lib/constants/collectives'; import formatMemberRole from '../../lib/i18n/mem...
/* eslint-disable no-plusplus */ const assert = require('assert'); const async = require('async'); const { scheduleJob } = require('node-schedule'); const werelogs = require('werelogs'); const UtapiClient = require('./UtapiClient'); const Datastore = require('./Datastore'); const safeJsonParse = require('../utils/safeJ...