text
stringlengths
3.07k
16k
const httpStatus = require('http-status'); const { User, Role, ModelHasRole } = require('@src/models').tenant; const ApiError = require('@src/utils/ApiError'); const tenantDatabase = require('@src/models').tenant; const factory = require('@root/tests/utils/factory'); const DeleteFormReject = require('./DeleteFormReject...
// server.js // BASE SETUP // ============================================================================= // call the packages we need var express = require('express'); // call express var app = express(); // define our app using express var bodyParser = require('body-parser'); var...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components/native'; import { Platform, Linking, Alert } from 'react-native'; import { Navigator } from 'react-native-navigation'; import Ionicons from 'react-native-vector-icons/Ionicons'; import FontAwesome from 'r...
document.getElementById("branson").onclick = function() { showGoogle() }; document.getElementById("ma").onclick = function() { showGoogle() }; document.getElementById("headlands").onclick = function() { showPassword() }; document.getElementById("tilden").onclick = function() { showPassword() }; document.getElem...
var express = require('express'); var router = express.Router(); var con = require('../MySQL-db'); router.use(express.json()); var review_result; var mean_review_result; var total_result = []; var univ_result; var credit_result; var email_result; var leadership_result=0; var sincerity_result=0; var sociability_resul...
import extend from 'extend'; import { testRectRect, testRectLine } from '../../math/narrow-phase-collision'; export function refLabelDefaultSettings() { return { fill: '#000', fontFamily: 'Arial', fontSize: '12px', opacity: 1, maxWidth: 1, maxWidthPx: 9999, padding: 5, background:...
/* jshint node: true */ 'use strict'; var detect = require('rtc-core/detect'); var extend = require('cog/extend'); var mbus = require('mbus'); var getable = require('cog/getable'); var uuid = require('cuid'); var pull = require('pull-stream'); var pushable = require('pull-pushable'); var prepare = require('rtc-signal/...
const expect = require('chai').expect const schema = require('../primary/index.json') let validate = require('../frontend') let validateStrict = require('../primary') let validateBackend = require('../backend') const checkProperty = (errors, keyword, property) => { if (errors === null) return false for (const err...
import cn from 'classnames'; import op from 'object-path'; import PropTypes from 'prop-types'; import Checkpoint from './Checkpoint'; import React, { forwardRef, useEffect, useImperativeHandle, useLayoutEffect, useRef, useState, } from 'react'; const noop = () => {}; const ENUMS = { ALIGN...
const colorValues = ["trash", "rgb(17, 223, 207)", undefined, null, "#78CBB4", "#4FB79D", "hsl(166, 53%, 41%)", "#1B9077", "#0C7C66", "hsl(357, 68%, 58%)", "hsl(357, 61%, 51%)", "#BE2A31", "#A41E25", "#7F131A", "#500B10", "#D8814F", "rgb(83,104,114)", "rgb(54,69,79)", "rgb(178,216,216)", "rgb(0,76,76)", "hsl(22, 57%, 5...
function getValue(id) { return $('#' + id).val(); } function drawTable(id, url, columns, filters = '') { columns.forEach(function (row, value) { if (row['defaultContent'] == undefined) row.defaultContent = 'N/A'; if (row['data'] == 'statusID') { row['data'] = function ...
gateways = [ "https://ipfs.infura.io", "https://ipfs.io", "https://gateway.ipfs.io", "https://scrappy.i.ipfs.io", "https://chappy.i.ipfs.io" ] player = null itLoaded = false steem.api.setOptions({ url: 'https://api.steemit.com' }); var path = window.location.href.split("#!/")[1]; var autoplay = ...
const logger = require('pino')() const percentile = require('percentile') const fs = require('fs') const debug = require('debug')('data-generator') const path = require('path') /** * Calculate min, max and mean of an array of values * * @param {Array} arr : array of number * @returns {Object} : { max, min, avg, to...
// ------------------------------------------------------------ // Syntax // ------------------------------------------------------------ var Syntax = { rules: {}, define: function (name, syntax) { this.rules[name] = syntax; var methodName = "is" + name.substring(0, 1).toUpperCase() + name.substring(1); ...
var GET_FORM_API= "controller/getform.php" var MAIN_SITE_URL="https://www.nirvanacountry.co.in/" var questions; var responses={}; var params = new window.URLSearchParams(window.location.search); var str= params.get('url'); console.log(str); var j=0; $(document).ready(function(){ var xmlhttp = new XMLHttpRequest(); xm...
/* * 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/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
var stylus = require('stylus'), sprite = require('../lib'), fs = require('fs'), pathFn = require('path'), glob = require('glob'), async = require('async'), _ = require('lodash'), handlebars = require('handlebars'), crypto = require('crypto'), should = require('chai').should(); var casePath = pathFn.j...
'use strict' const aws = require('aws-sdk') const URL = require('url').URL const PLUGIN_NAME = 'aws-sigv4' const messages = { pluginConfigRequired: `The ${PLUGIN_NAME} plugin requires configuration under [script].config.plugins.${PLUGIN_NAME}.`, pluginParamServiceNameRequired: 'The "serviceName" parameter is req...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); var _keycode = _interopRequireDefault(require("keycode")); var _downshift = _interopRequire...
'use strict'; const os = require('os'); const path = require('path'); const url = require('url'); const invokeMap = require('lodash/invokeMap'); const assign = require('lodash/assign'); const uniq = require('lodash/uniq'); const flatten = require('lodash/flatten'); const penthouse = require('penthouse'); const CleanCSS...
/** * @description 与Selenium进行通信 * @author neekey<<EMAIL>> * @date 2012-08 */ var http = require( 'http' ); var Path = require( 'path' ); var _ = require( 'underscore' ); var EventEmitter = require( 'events').EventEmitter; var Util = require( 'util' ); /** * 用于向server请求的request参数 * @type {Object} */ var DEFAU...
import React, { useState, useEffect, useContext, createContext } from "react"; import PropTypes from "prop-types"; import axios from "axios"; import { roles } from "./constants"; import { useHistory } from "react-router-dom"; const authContext = createContext(); /** Provider component that wraps your app and makes au...
const path = require("path") const chai = require("chai") const chaiAsPromised = require("chai-as-promised") const electron = require("electron") const menuAddon = require("spectron-menu-addon-v2").default const mocking = require("./mocking") const assert = chai.assert const defaultDocumentFile = "testfile_utf8.md"...
var gm = require('gm'); var fs = require('fs'); //======================================================== var PortalDev = require('./models/PortalDev.js'); // генерация уникального ID var ID = function () { 'use strict'; // Math.random should be unique because of its seeding algorithm. ...
'use strict'; let express = require('express'); let app = require('../app'); let request = require('supertest'); let assert = require('chai').assert; let helperData = require('./helper_data'); let GenBankRecord = require('../bin/genbank_record'); let GLMPredictor = require('../bin/glm_predictor'); let checkInput = re...
var ccmode function new_centered_popup(popW,popH,document_link) { var left = Math.floor((screen.availWidth - popW) / 2); var top = Math.floor((screen.availHeight - popH) / 2); return window.open(document_link,"","height="+popH+",width="+popW+",left="+left+",top="+top+",scrollbars=1"); } function new_centere...
import { WhiteSpace } from "antd-mobile"; import React, { useReducer, useState } from "react"; import { Link } from "react-router-dom"; import { useForm, Controller } from "react-hook-form"; // import axios from "axios"; import createOrganizationProfile from "assets//data/createOrganizationProfile"; import Marker from ...
'use strict'; var _require = require('util'), promisify = _require.promisify; var fs = require('fs'); var os = require('os'); var path = require('path'); var fse = require('fs-extra'); var _require2 = require('html-minifier'), minify = _require2.minify; var _require3 = require('html2json'), html2json = ...
//var cors_api_url = 'https://cors-anywhere.herokuapp.com/'; //var cors_api_url = 'https://crossorigin.me/'; var cors_api_url = ''; function doCORSRequest(options, processResult) { var x = new XMLHttpRequest(); x.open("GET", cors_api_url + options.url); x.onload = x.onerror = function () { processRe...
'use strict'; // Available slots for the game const slots = { 'bulbasaur': 3, 'squirtle': 3, 'charmander': 3, 'pikachu': 5, 'eevee': 5, 'snorlax': 5, 'dragonite': 7, 'mew': 7, 'mewtwo': 10, }; function moneyName(amount) { let name = " buck"; return name; } // Trozei sprites for each pokemon const slotsTro...
var dialogsModule = require("ui/dialogs"); var Observable = require("data/observable").Observable; var utilsModule = require("utils/utils"); var socialShare = require("nativescript-social-share"); var GroceryListViewModel = require("../../shared/view-models/grocery-list-view-model"); var statusBarUtil = require("../.....
$(function () { var userId = document.cookie.replace(/(?:(?:^|.*;\s*)userId\s*\=\s*([^;]*).*$)|^.*$/, "$1"); //load profile details getUserProfle(userId); //click to edit Profile $('.editProfileBtn').click(function () { getUserProfileInPlace(userId); }); $('.logoutBtn').click(functi...
function real2canvas(x, y) { newX = Math.round(x/45)+10; newY = Math.round(y/45)+10; if(newX < 0) newX = 0; if(newY < 0) newY = 0; if(newX > 44) newX = 44; if(newY > 44) newY = 44; return { x: newX, y: newY }; } function canvas2real(x, y) { return { x: (x -...
"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); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose")); ...
$.ajaxSetup({ complete: function(xhr) { if(xhr.getResponseHeader("login")=="true"){ top.location.href = xhr.getResponseHeader("Location"); } } }); var common = {}; var layerObj = function(_index){ this.index = _index; } layerObj.prototype.close = function(){ top.layer.close(this.index); } layerObj.prototy...
"use strict"; const fs = require("fs"); const path = require("path"); const through = require("through2"); const sink = require("sink-transform"); const mkdirp = require("mkdirp"); const each = require("p-each-series"); const Processor = require("@modular-css/processor"); const relative = require("@modular-c...
#!/usr/bin/env node 'use strict'; const { Core, Flux, Logger, Observers, Files, Utils } = require('./../../api'); const log = new Logger(__filename); module.exports = { cron: { base: [{ cron: '1 * * * * *', flux: { id: 'service|alarm|isAlarm', conf: { log: 'debug' } } }], full: [] } }; const FLUX_PARSE...
import React, {useState} from 'react'; import {FlatList, SectionList, Switch, View} from 'react-native'; import {ButtonGroup, ListItem} from 'react-native-elements'; import {useDispatch, useSelector} from 'react-redux'; import commonStyles from '../../shared/common.styles'; import {isEmpty} from '../../shared/Helpers...
var logger = require('logger')('custodian') var property = require('@yoda/property') var wifi = require('@yoda/wifi') var _ = require('@yoda/util')._ module.exports = Custodian function Custodian (runtime) { wifi.enableScanPassively() this.runtime = runtime this.component = runtime.component /** * set this...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
import { useRef } from "react"; import { Matrix } from "transformation-matrix-js"; var getDefaultMat = function getDefaultMat() { return Matrix.from(1, 0, 0, 1, -10, -10); }; export default (function (_ref) { var canvasEl = _ref.canvasEl, changeMat = _ref.changeMat, changeDragging = _ref.changeDraggin...
var monthChart = []; var yMonthValues =[]; var xMonthValues =[]; var monthString = ""; var monthCounter = 0; // can be removed later function requestMonthData(num) { var $wrapperDay = $('.wrapperDay'); var $wrapperHour = $('.wrapperHour'); var $historyDataDay = $('.historyDataDay'); var $historyData...
'use strict'; const config = require('../config'); const {timeD, d, broadcastToChannel, is_root, c, messageEvent, m2ms, sendMessageReply, random, isDM, isBot, timeT} = require('./tools'); const Discord = require("discord.js"); const client = new Discord.Client(); const fs = require("fs"); const path = require("path");...
var hotapp = require('../../utils/hotapp.js'); var api = require('../../utils/api.js'); var app = getApp(); Page({ data: { items: [], }, onLoad: function (options) { }, /* 首次渲染事件 */ onShow: function () { // 获取数据 var that = this; hotapp.wxlogin(app.globalData.loginRes, function (n) { ...
import React, { PureComponent } from 'react'; import { connect } from 'dva'; // import router from 'umi/router'; import { Table, Card, Row, Col, Input, Button, Form, Select, Radio } from 'antd'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'; import styles from './Plan.less'; const FormItem = Form.Item...
import React, { useState, useEffect } from 'react'; import { Table, Input, Button, Modal, Form, Row, Col, Upload, Checkbox, message, Select, Popconfirm } from 'antd'; // import Highlighter from 'react-highlight-words'; import { SearchOutlined, PlusOutlined, DeleteOutlined, EditOutlined } from '@ant-design/icons'; impor...
import Container from "../../../container"; import { Heading } from "../../../atoms/typography/heading"; import { Paragraph } from "../../../atoms/typography/paragraph"; import TextBlockWithImage from "../../../molecules/mixed-blocks/text-block-with-absolute-image"; import IdetifyIcon from "../../../../images/icons/ide...
var gulp = require( 'gulp' ), sass = require( 'gulp-ruby-sass' ), autoprefixer = require( 'gulp-autoprefixer' ), cleancss = require( 'gulp-clean-css' ), uglify = require( 'gulp-uglify' ), rename = require( 'gulp-rename' ), concat = require( 'gulp-concat' ), umd = require( 'gulp-umd' ); var o...
const fs = require('fs'); const { join } = require('path'); const dotenv = require('dotenv'); const { execSync } = require('child_process'); const { print, getVersion, getBuildsDir } = require('./common/util'); dotenv.config(); const VERSION = getVersion(); const buildsDir = getBuildsDir(); const masterInfoFile = joi...
/* eslint-disable no-console */ /* eslint-disable no-restricted-imports */ import React, { useState, useEffect } from 'react'; import { Table, Button, Input, Space, Modal } from 'antd'; import { SearchOutlined, EditOutlined, DeleteOutlined, PlusOutlined, EyeOutlined, ExclamationCircleOutlined, } from '@ant-...
'use strict'; const request = require('../request'); const { SearchResult, Anime, Episode } = require('./common'); const { getHeaders, formatQualities, range, executeTasks, } = require('../utils'); const config = require('../config').getConfig().siteconfig.animepahe; /** Part of the url for anime com...
import React, { PureComponent } from 'react'; import ReactQuill from 'react-quill'; import theme from 'react-quill/dist/quill.snow.css'; import config from '../../config'; import { Modal, Button, message, Icon, Upload } from 'antd'; const uploadUrl = config.uploadUrl; /* * Event handler to be attached using Quill too...
var _ = require('lodash'); var fs = require('fs-extra'); var spawn = require('child_process').spawn; var join = require('path').join; var shell = require('shelljs'); const { args } = require('commander'); module.exports = function ($) { return new App($); }; function App($) { this.$ = $; this.log = require('./...
var slideIndex = 0; carousel(); function carousel() { var i; var x = $(".mySlides"); for (i = 0; i < x.length; i++) { x[i].style.display = "none"; } slideIndex++; if (slideIndex > x.length) { slideIndex = 1 } x[slideIndex - 1].style.display = "block"; setTimeout(carousel, 3000);...
import { observer } from 'mobx-react'; import { formatDistance } from 'date-fns'; import styled from '@emotion/styled'; import posed, { PoseGroup } from 'react-pose'; import React from 'react'; import {motion, AnimatePresence} from 'framer-motion' import * as icons from 'app/components/icons'; import config from 'app/...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import Countdown from 'components/Countdown'; import Experiment from 'xnat/Experiment'; import Project from 'xnat/Project'; import Subject from 'xnat/Subject'; import { sleep } from 'utils/utils'; import { host, doReco...
"use strict"; var debug = require('debug')('ap:scene'); var Emitter = require('./emitter.js'); var util = require('./util.js'); var Vector = require('./vector.js'); function Scene(options) { this.width = parseInt(options.data['width_height'].values[0]); this.height = parseInt(options.data['width_height'].valu...
/* * * * SPDX-License-Identifier: Apache-2.0 */ "use strict"; const { Contract } = require("fabric-contract-api"); const ClientIdentity = require("fabric-shim").ClientIdentity; require("date-utils"); class Medical extends Contract { patientId = "0"; async initLedger(ctx) { console.info("========...
'use strict'; exports.__esModule = 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]; } } } return target; }; /* eslint no-fallth...
const { JSDOM, VirtualConsole } = require("jsdom"); const database = require('../database') const connectionService = require("../connectionService"); const pdpScrapper = require("./pdpPriceScrapper") const rootPage = "https://www.ligamagic.com.br"; const logger = require('../logger') let myAuctionsPage = "https://ww...
import React, { Component } from "react"; import LCD from "./LCD"; import Keyboard from "./Keyboard"; import { getKeyboard, loadLevels, maxLevels } from "../selectors/levels"; import operations from "../modules/operations"; import sounds from "../modules/sounds"; import { isAButtonOption, getPositionMatrix } from "../m...
/* eslint no-console: 0 */ import Cookies from 'js-cookie' import UaParser from 'ua-parser-js' // D2Admin 版本 const version = process.env.VUE_APP_ICE_VERSION const util = { cookies: {} } /** * @description 存储 cookie 值 * @param {String} name cookie name * @param {String} value cookie value * @para...
'use strict' //生产环境下,应先在本地将less编译、JS压缩合并等传至cdn or Nginx,如果更改HTML的引入路径即可;这时不需要此静态文件服务器了 require('../config/config'); const log = require('fe-logs'); log.setName('.midLog.txt'); log.setMode('error'); const cluster = require('cluster'); const path = require('path'); const http = require('http'); const fs = require('fs');...
import { Fragment, useCallback, useEffect, useState, } from 'react'; import { Table, Space, Collapse } from 'antd'; import 'antd/dist/antd.less'; import { profesorService } from '../../services/profesor'; import { materiaService } from '../../services/materia'; const { Panel } = Collapse; function OnFilterProfesor(...
require('dotenv').config() var express = require('express'); var bodyParser = require('body-parser'); var actions = require('./action.js'); var Nexmo = require('nexmo'); var nexmo = new Nexmo({ apiKey: process.env.API_KEY, apiSecret: process.env.API_SECRET, applicationId: process.env.APPLICATION_ID, pri...
function propsHasAlignParentBottom(props) { return props.alignParentBottom; } function hasNoDimenPropValue (prop,elem) { return typeof(elem["client"+prop])=="undefined" || elem["client"+prop]==0; } function parseIntLocal (arg) { var ret = parseInt(arg); if (isNaN(ret)) { return 0; } return ret; } f...
/** * Created by cailong on 16/8/29. */ var app = angular.module('yemaWebApp',[]); var navIndex = 0; app.controller('homePageCtrl', function($scope, $http){ //邀请好友 //$scope.inviteUrl = "http://yematest.leanapp.cn/user/register/" + getCookie("userIdCookie"); $scope.inviteUrl = "http://www.mustangop.com/u...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------------------...
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { Alert, Button, Container, Row } from 'react-bootstrap'; import { load } from '../store/actionCreators'; import { connect } from 'react-redux'; import config from '../config'; export var startExecute = function(prefix,steps) { // ...
require("../stylesheets/randomNumber.scss"); const random = require("pengrape"); const colorPrimary = "#eb4763"; const colorBlack = "#202020"; const colorDark = "#505050"; const colorGray = "#a3a3a3"; const buttonTabsGenerate = document.querySelector("#button-tabs-generate"); const buttonTabsConstruct = document.que...
import axios from 'axios'; import RedditAPI from '../../reddit/redditAPI'; export function subredditsStatus(status, message) { return { type: 'SUBREDDITS_STATUS', status, message, }; } export function subredditsFilter(filter) { return { type: 'SUBREDDITS_FILTER', filter, }; } export funct...
var expect = require('expect'); var createFlowField = require('../FlowField').default; var { getCorrectedTileIndices, getNeighbours, generateOutOfBoundsFunction } = require('../basicFunctions').default; var { Map } = require('immutable'); describe('Functions behavior', function() { describe('getNeighbours', fu...
// TODO: This file was created by bulk-decaffeinate. // Sanity-check the conversion and remove this comment. /* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * DS207: Consider shorter variations of null checks * Full docs: https://github.com/decaffeinate/decaffeina...
import React, {Component} from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {LinkContainer} from 'react-router-bootstrap'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import {Grid, Row, Panel, Form, FormGroup, ControlLabel, FormControl, Button...
/** * @author <NAME> */ /* Foundation Framework aktivieren */ $(document).foundation(); /* TODO: Anzeige Login nur, wenn User nicht bereits eingeloggt */ /* Formular absenden via AJAX */ $('form').submit(function(e){ //Submit unterbinden e.preventDefault(); //Anzeige Loader $('#loader').show(); //Ziel-A...
// Copyright & License details are available under JXCORE_LICENSE file if (process.env.CITEST) { console.error('Skipping test due to CITEST environment variable. (old openssl.exe)'); process.exit(0); } if (!process.versions.openssl) { console.error("Skipping because node compiled without OpenSSL."); pr...
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: MIT-0 * * 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...
/** * This file is part of AdBlock Ultimate Browser Extension * * AdBlock Ultimate Browser Extension is free software: you can redistribute it and/or modify * it serves under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (a...
const ingresos = [ new Ingreso('Sueldo', 5000.00), new Ingreso('Venta Guitarra', 1500), new Ingreso('Encuentra plata el perro', 43500), ]; const egresos = [ new Egreso('Alquiler', 900), new Egreso('Ropa', 400), new Egreso('Diamantes', 44400) ]; // const dineroIngresoString = JSON.stringif...
import 'babel-polyfill'; import React from 'react'; import SingleMap from '../Map/SingleMap'; import Paper from 'material-ui/Paper'; import FlatButton from 'material-ui/FlatButton'; import NavigationArrowBack from 'material-ui/svg-icons/navigation/arrow-back'; import styled from 'styled-components'; import R from 'ramd...
/* 视频流程 1. 访客发起邀请 2. 访客收到ticket 3. 初始化sdk,回调 4. 访客加入会议 5. 振铃 6. 访客接起 7. 访客推流 */ var _const = require("../../common/const"); var uikit = require("./uikit"); var channel = require("./channel"); var profile = require("./tools/profile"); var eventListener = require("./tools/eventListener"); var utils = require(".....
'use strict'; var parseArgs = require('minimist'); var bunyan = require('bunyan'); var jsonOverride = require('json-override'); var levelup = require('levelup'); var path = require('path'); var pkgjson = require('./package.json'); var restify = require('restify'); var routes = require('./lib/routes'); var sh = require...
import * as Utils from './utils.js'; import { check } from './checks.js'; import { download } from './kobo-api.js'; import path from 'path'; import fs from 'fs-extra'; import colors from 'colors/safe.js'; import ProgressBar from 'progress'; /** * writeStream writes @readStream to a file. * * @param {string} dir_p...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va...
var express = require('express'); var router = express.Router(); const multer = require('multer'); const multerS3 = require("multer-s3"); const upload = multer(); const fs = require('fs'); const mongoose = require('mongoose'); // Take an interview const AWS = require('aws-sdk'); const dotenv = require('dotenv'); doten...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DefaultKeyDAOImpl = exports.DefaultClientConfig = exports.Client = void 0; const consts = require("./types/constants"); const modules = require("./modules"); const rpc_client_1 = require("./nets/rpc-client"); const event_listener_1 = r...
/* recipe.js Recipe data object. */ // Dependencies. const { v4: uuid, validate: uuidValidate, version: uuidVersion } = require("uuid"), LinkedList = require("app/all/linked-list.js"), immutable = require("app/all/immutable.js"); /* Recipe data object. */ class Recipe { // //...
const processDataRaw = (data) => { }; export const filterDataStatement = ({ data, term }) => { const result = { statementList: [], toltalAmount: 0, toltalAmountRefund: 0, toltalAmountNoRefund: 0 }; let toltal = 0; let toltalRefund = 0; let toltalNoRefund = 0; if (data) { result.state...
function init() { var BASE_CENTER = new google.maps.LatLng(48.516817734860105,13.005318750000015 ); //40.7142° N, -74.0064 E NYC var aGray = [ { stylers: [{saturation: -100}] } ]; var grayStyle = new google.maps.StyledMapType(aGray,{name: "Black & White"}); var map = new google.maps.Map(document.ge...
// Forms const form = document.querySelector('.form'); const formBoxes = document.querySelectorAll('.form__box'); const formLogin = document.querySelector('.form__login'); const formRegister = document.querySelector('.form__register'); // Input fields const username = document.getElementById('username'); const...
import React from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import { Row, Col, Button, Breadcrumb, BreadcrumbItem } from 'reactstrap'; import 'imports-loader?$=jquery,this=>window!jquery'; import 'imports-loader?$=jquery,this=>window!messenger/build/js/messenger'; import Widget from...
const TOKEN_PATTERN = /%([a-z][a-z0-9_]*)/ig; const NEWLINE = /\r?\n/; var path = require('path'); var Transform = require('stream').Transform; var util = require('util'); var StringDecoder = require('string_decoder').StringDecoder; var fs = require('fs-extra'); var suspend = require('co-suspend'); var errorFactory =...
import { getTextboxById, getTextstylesByTextbox } from "../selectors/selectors"; export const RECEIVE_PAGE_SETTINGS = 'RECEIVE_PAGE_SETTINGS'; export const RECEIVE_CURRENT_SLIDE = 'RECEIVE_CURRENT_SLIDE'; export const RECEIVE_PRESENTING_SLIDE = 'RECEIVE_PRESENTING_SLIDE'; export const RECEIVE_SELECTED_WRAPPERS = 'RECE...
import { TASK_TYPE, TASK_STATUS, TASK_CODE } from '../constant'; import DownloadTask from '../model/downloadTask'; const infoHashReg = /^[0-9a-fA-F]{40}$/; const videoReg = /^(.*\.)?(wmv|asf|asx|rm|rmvb|mpeg|mp4|mpg|3gp|3g2|mov|m4v|avi|dat|mkv|flv|vob|webm|ogv|ogx|swf)[ ]*$/i; const audioReg = /^(.*\.)?(mp3|m4a|wav|a...
import React from 'react'; import { forwardRef } from 'react'; //metrial ui import MaterialTable from 'material-table'; import Button from '@material-ui/core/Button'; import Dialog from '@material-ui/core/Dialog'; import DialogActions from '@material-ui/core/DialogActions'; import DialogTitle from '@material-ui/core/D...
'use strict'; const nameOfProducts = [ 'bag.jpg','banana.jpg','bathroom.jpg','boots.jpg','breakfast.jpg','bubblegum.jpg','cthulhu.jpg','dog-duck.jpg','dragon.jpg', 'pen.jpg', 'pet-sweep.jpg','scissors.jpg','shark.jpg','sweep.png','tauntaun.jpg', 'unicorn.jpg', 'usb.gif', 'water-can.jpg','wine-glass.jpg','chair.jpg'];...
const { MessageEmbed } = require('discord.js') const gprofile = require('../../models/guildProfileSchema.js') const { default : { prefix } } = require('../../settings.json') const allowedResponses = ['xptoggle', 'economytoggle', 'xpexcempt', 'xpallow', 'excemptedchannels', 'xpreset', 'economyreset'] const experience = ...
import React, { Fragment } from 'react' import styled from 'styled-components' import { Link } from 'react-router-dom' import PropTypes from 'prop-types' import Moment from 'react-moment' import FontAwesomeIcon from '@fortawesome/react-fontawesome' import FaPlusCircle from '@fortawesome/fontawesome-free-solid/faPlusCir...
/*jslint node: true */ 'use strict'; var forEachProperty = function (rightObject, getProperty, callback, finạlly) { var properties = typeof getProperty === 'function' ? getProperty() : getProperty; var useProperties = typeof properties === 'object' && !Array.isArray(properties); if (!useProperties) proper...