text
stringlengths
3.07k
16k
class Reservoir { constructor (clay) { const width = Math.max(...clay.map(([x]) => x)); const height = Math.max(...clay.map(([, y]) => y)); this._minClayLevel = Math.min(...clay.map(([, y]) => y)); this._width = width + 1; // +1 to pad for water overflow this._height = height; this._grid = ...
/** * GameController * * @module : GameController * @description : Contains logic for handling requests */ 'use strict'; var sails = require('sails'); var _ = require('lodash-node'); var UUID = require('node-uuid'); var GameBuilder = require('../utils/gameBuilder'); /** * _sockets schema: * *...
'use strict'; const app = require('app'); const fs = require('fs'); const BrowserWindow = require('browser-window'); const Tray = require('tray'); const Menu = require('menu'); const Canvas = require('canvas'); const moment = require('moment'); const NativeImage = require('native-image'); const exec = require('child_p...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const ethers_1 = require("ethers"); const VError = require("verror"); const logger = require("config-logger"); const fs_1 = require("fs"); class BaseContract { constructor(transactionsProvider, eventsProvider, Signer, jsonInterface, contra...
'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 storage; try { storage = JSON.parse(localStorage['lol-personal-counter']); } catch (e) { storage = {}; } var $form = document.querySelector('form'); var $regionBtn = document.querySelector('.btn.btn-default'); var $regionList = document.querySelector('.dropdown-menu'); var $spinner = document.querySelector('.sp...
/** * 作用域及脏值查询部分 * 功能:监控表达式 * 在每次$digest时执行所有表达式直到值稳定 * 在表达式值变化时调用其回调函数 * */ var Scope = function () { //用于存放监听器的监听器池 this.$$watchers = []; //需要延迟加载的队列 this.$$asyncQueue = []; } //注册监听器 Scope.prototype.$watch = function (watchFn, listenerFn, strictMode) { listenerFn = listenerFn |...
/** * @module controllers/edit */ const { logEmitter } = require("../services/logging.service"); const { cleanInactivePathAnswers, cleanEmptiedAnswers, cleanSwitches } = require("../services/session-management.service"); const { validate } = require("../services/validation.service"); const { trimAnswers } = re...
import React, { useState, useRef } from "react"; import Button from "../composable-components/Button"; import ShoppingCard from "./ShoppingCard"; import findStoreImage from "../../assets/illustrations/shopping-list/find-store.svg"; import emptyShoppingListImage from "../../assets/illustrations/shopping-list/empty-shopp...
import React, {useState} from "react"; import {Link, useLocation} from "react-router-dom"; import {useHistory} from 'react-router-dom'; import API from "../../utils/API"; function Menu(props) { const location = useLocation(); const [search, getSearch] = useState(); const history = useHistory(); const ...
console.log("starting index.js") var SCAN_TIME = 5000; // Scan for 7 seconds var CONNECTION_TIMEOUT = 5000; // Wait for 7 seconds for a valid connection // ********* Global variables used for all IDs that are used in multiple functions var refreshDevicesModal = null; var connectingModal = null; var devic...
import Backbone from 'backbone'; import $ from 'jquery'; import _ from 'underscore'; import ShortID from 'shortid'; import Job from '../models/job'; var CreateView = Backbone.View.extend({ model: Job, frontTemplate: _.template($('#front-template').html()), initialize: function() { this.currentPage = 0; t...
import React, { Component } from "react"; import PropTypes from "prop-types"; import lunr from "lunr"; import Paper from "@material-ui/core/Paper"; import MenuItem from "@material-ui/core/MenuItem"; import AutoSuggest from "react-autosuggest"; import match from "autosuggest-highlight/match"; import parse from "autosu...
/* Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.gi...
/** * * Progreso * */ import React, { memo, useState, useEffect } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { compose } from 'redux'; import history from 'utils/history'; import { makeStyles } from '@material-ui/core/styles'; import Table from '@material-ui/cor...
const ppmToCO2e = (ppm) => ppm * (2.13 * (44 / 12)) const emissions = (model, opts) => { const defaults = { units: 'ppm' } const { units } = { ...defaults, ...opts } const { time, baseline, controls } = model const e = time.i.map((i) => { return baseline.q[i] * (1 - controls.mitigate[i]) }) if (units =...
import React, { Component } from 'react'; import { View, Text, StyleSheet, ScrollView, FlatList, ActivityIndicator } from 'react-native'; import ChatHeader from '../../components/ChatHeader'; import firestore from '@react-native-firebase/firestore'; import MessageSender from '../../components/MessageSender'; import Out...
"use strict"; import * as d3 from "d3"; class D3AustraliaChartController { constructor() { let model = this; model.message = "found a thong"; var width = 1200, height = 1000, label_text_size_px = 12; var locations = [ { name: "S...
document.body.style.backgroundColor = "pink"; document.body.style.color = 'black'; const aboutList = document.createElement('h1'); aboutList.style.flex = "auto"; aboutList.style.fontSize = "50px"; aboutList.style.marginTop = '30px'; aboutList.style.marginLeft = '150px'; aboutList.style.color = 'black'; const nav = d...
//// //// Usage: node ./node_modules/.bin/gulp build, clean, etc. //// //// Life is easier if you have "./node_modules/.bin" in your path. //// var gulp = require('gulp'); var rename = require("gulp-rename"); var jsoncombine = require("gulp-jsoncombine"); var del = require('del'); var jsyaml = require('js-yaml'); var ...
import { defineMessages } from 'react-intl' const scope = 'app.components.aacusage' export default defineMessages({ intro: { id: `${scope}.intro`, defaultMessage: 'ARASAAC offers a complete symbol set for Augmentative an Alternative Communication (AAC) of more than {numberPictograms} descriptive and schematic...
'use strict'; const { experiment, test, beforeEach, afterEach } = exports.lab = require('@hapi/lab').script(); const { expect } = require('@hapi/code'); const sandbox = require('sinon').createSandbox(); const Joi = require('joi'); const forms = require('../../../../../src/shared/lib/forms'); const sessionFor...
import {CollisionInfo} from "./CollisionInfo"; import {Vec2} from "./Vec2"; let mPositionalCorrectionFlag = true; let mRelaxationCount = 15; // number of relaxation iteration let mPosCorrectionRate = 0.8; // percentage of separation to project objects function Physics(gEngine){ this....
import Button from '@/bia-layout/components/Form/Button'; import TagInput from '@/bia-layout/components/Form/TagInput'; import { ArrowDown, ArrowUp, ChevronDownSharp, CaretDownSharp,CloseSharp } from '@/bia-layout/components/Icons'; import List from '@/bia-layout/components/Table'; import { withGridArea } from '@/bia-l...
const DEFAULT_MAX_PRESTANCE = 1; export default class AIEElement { constructor(baseElement) { this.maxUpdates = null; this.pregnancyBase = 0; this.freePregnancy = 0; if (baseElement) { this.setBaseElement(baseElement); this.name = this.getAttr('name').trim(); ...
'use strict'; import gulp from 'gulp'; import gulpPlugins from 'gulp-load-plugins'; import bsync from 'browser-sync'; import pkg from './package.json'; const files = pkg.config.files; // Rather than manually defined each gulp plugin we need, gulpPlugins defines them for us. var plugins = gulpPlugins(), // for exec...
const iselement = (el) => el instanceof HTMLElement && el.nodeType === 1; const isobject = (ob) => ob !== null && typeof ob === "object"; const isstring = (st) => typeof st === "string" || st instanceof String; // (NOTE: daniel) helper function to create dom elements with classnames const g = (attrArg = {}, tagArg = "...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var mongoose_1 = require("mongoose"); var ExamSchemaDef = { subject: String, examDate: { type: Date, form: { size: 'small' } }, result: { type: String, enum: ['distinction', 'merit', 'pass', 'fail'] }, grader: { type: mongoose_...
/* * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, O...
/* * @Description: 工作台首页 * @Author: Xuannan * @Date: 2019-12-13 23:33:09 * @LastEditTime: 2020-03-24 19:17:08 * @LastEditors: Xuannan */ import React,{useState,useEffect } from 'react'; import { Layout, Menu, Breadcrumb, Icon ,Col,Row } from 'antd'; import '../static/css/home.css' import {Route ,Link ,Switch} f...
function myDownload() { var table = document.getElementById("Products"); var tr = table.getElementsByTagName("tr"); var tp = 0; var item = 0; var report = [] report.push("** <NAME> **"); report.push("-----------------------Items----------------------"); // Loop through all table rows, and add qty more than 0 f...
var ffi = require('ffi'); var ref = require('ref') var sqlite3 = 'void' // `sqlite3` is an "opaque" type, so we don't know its layout , sqlite3Ptr = ref.refType(sqlite3) , sqlite3PtrPtr = ref.refType(sqlite3Ptr) , sqlite3_exec_callback = 'pointer' // TODO: use ffi.Callback when #76 is implemented , stringPtr =...
function serialize(form) { var field, l, s = []; if (typeof form == 'object' && form.nodeName == "FORM") { var len = form.elements.length; for (var i=0; i<len; i++) { field = form.elements[i]; if (field.name && !field.disabled && field.type != 'file' && field.type != 'reset' && field.type != 'submit' && fie...
'use strict' // global variables //leaderboard array let leaderboardArray = []; //player object is stored here to give global access let player = []; let computerScore = 0; let message = 'Choose your element to play!'; let p2=document.createElement('p'); p2.id = 'text-box'; //default high scores and leaderboard let de...
'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 (...
const bip39 = require("bip39"); const bip32 = require("bip32"); const cbor = require("ipld-dag-cbor").util; const secp256k1 = require("secp256k1"); const BN = require('bn.js'); const ExtendedKey = require("./extendedkey"); const { getDigest, getAccountFromPath, addressAsBytes, bytesToAddress, tryToPrivateKey...
import { Box, Card, Grid, TextField, Typography } from "@material-ui/core"; import React, { useEffect, useState } from "react"; import { Autocomplete, ToggleButton, ToggleButtonGroup } from "@material-ui/lab"; import DirectionsBikeRoundedIcon from "@material-ui/icons/DirectionsBikeRounded"; import DirectionsWalkRounde...
"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...
/** * Each IDE as an status bar with messages shown at the bottom. Inspired by VS Code by ported * to our internal data model and React. */ /*--------------------------------------------------------------------------------------------- Copyright (c) Microsoft Corporation All rights reserved. MIT License ...
let startBtn = document.querySelector("#startBtn"); let cardText = document.querySelector("#cardText"); let titleText = document.querySelector("#titleText"); let cardBody = document.querySelector("#cardBody"); let highScoreForm = document.querySelector("#highScoreForm"); let timer = document.querySelector("#timer"); le...
import React, { Component } from "react"; import PageDivision from "../Layout/pageDivision"; import axios from "../../axios"; import { connect } from "react-redux"; import * as actionTypes from "../store/actions"; class FindComponents extends Component { state = { SearchAttributes: { name: "", TechTy...
import React from "react"; // Rouct context const Context = React.createContext("/"); const routing = {current: null}; // Current routing instance // Unescape a character const unescape = str => window.decodeURIComponent(str.replace(/\+/g, " ")); // Add a leading slash to a path string const addLeadingSlash = str =>...
import { VectorUtils } from './mathUtils.js'; import { getElementPos, setControlListeners } from './utils.js'; import { clearCanvas, drawRotatedImage } from './canvasFunctions.js'; import { writeLine, createLoadingLog } from './clientLogger.js'; import { createTimeoutPromise, loadImages } from './asyncFunctions.js'; ...
import React, { Component } from "react"; import PropTypes from "prop-types"; import { clipboard } from "electron"; import { connect } from "react-redux"; import ScriptEditor from "../script/ScriptEditor"; import { FormField, ToggleableFormField } from "../library/Forms"; import castEventValue from "../../lib/helpers/c...
/** * index.js * @author WY * @date 2018-10-02 * @email <EMAIL> */ import React from 'react'; import { isFunction, forEach, isString, isNumber, find } from 'lodash'; import { modalBtnPrefix, subEventPrefix } from 'components/DynamicComponent/config'; import FieldProp from './FieldProp'; import ComponentProp fro...
import { Protocol } from './protocol' import { parse } from './parser' import { DelonghiState } from './state' import { rxtxBuffers } from './buffers' const flatten = (list) => list.reduce( (a, b) => a.concat(Array.isArray(b) ? flatten(b) : b), [] ) const flattenField = (field) => field.fields ? [field, field.fields...
import React, { useRef, useState } from 'react'; import PropTypes from 'prop-types'; import { makeStyles } from "@material-ui/core/styles"; import FilesDetails from "./FilesDetails"; import CustomTooltip from "../../Utils/DataDisplay/CustomTooltip"; import { StyledIconButton } from "../../Utils/Buttons"; import StyledD...
/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Copyright (C) 2015 <NAME>. ** Contact: http://www.qt.io/licensing ** ** This file is part of Qbs. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this fi...
import { debounce, uaSupportsPassive } from './utils'; import { defaultSettings } from './defaults'; class Formally { /** * Constructor * * @param {HTMLFormElement} form Expects a form element to act upon */ constructor(form) { if (!form || form.constructor.name !== 'HTMLFormElement') { throw new...
/* eslint-disable no-unused-vars */ import React, { Component } from 'react'; import { Button, Label, FormGroup } from 'react-bootstrap'; import { validatePassword } from '../utils'; import { PASSWORD_WARNING, VERIFY_PASSWORD_ERROR, INCORRECT_PASSWORD_WARNING, PASSWORD_CHANGE_ERROR, PASSWORD_CHANGE...
import React from "react" import Img from "gatsby-image" import styled from "styled-components" import AniLink from "gatsby-plugin-transition-link/AniLink" import SEO from "../components/seo" import StayledHero from "../components/stayledHero" import Title from "../components/title" import { graphql } from "gatsby" ...
const caseless = require('caseless'); const qs = require('qs'); const fetchPonyfill = require('fetch-ponyfill'); const urlJoin = require('url-join'); const Interceptor = require('./interceptor'); const { fetch } = fetchPonyfill({ Promise }); const methods = ['get', 'head', 'post', 'put', 'del', 'options', 'patch']; ...
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })...
var crc16 = require('../crc16'); var bus = require('i2c-bus').openSync(1); var FRAME_ID_SIZE = 1; var FRAME_CMD_SIZE = 1; var FRAME_CRC_SIZE = 2; var Command = { // common board commands GET_BOARD_NAME: 0x10, GET_FIRMWARE_VERSION: 0x11, GET_STATUS_WORD: 0x12, RESET: 0x13, // Communication WatchDog comman...
/** * Neo4J Connector * ©2015 Luxembourg Institute of Science and Technology All Rights Reserved THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PU...
const Plugin = require('../../core/Plugin') const Translator = require('../../core/Translator') const StatusBarUI = require('./StatusBar') const statusBarStates = require('./StatusBarStates') const { getSpeed } = require('../../core/Utils') const { getBytesRemaining } = require('../../core/Utils') const { prettyETA } =...
var _ = require('lodash'); var schemaPlugins = require('./schemaPlugins'); var utils = require('keystone-utils'); module.exports = function (keystone) { function List (key, options) { if (!(this instanceof List)) return new List(key, options); this.keystone = keystone; var defaultOptions = { schema: { ...
const DOM = initDOM(); const Event = DOM.Event; const CustomEvent = DOM.CustomEvent; const Document = DOM.Document; const Text = DOM.Text; const MouseEvent = DOM.MouseEvent; const KeyboardEvent = DOM.KeyboardEvent; const UIEvent = DOM.UI...
/** * * alphaadvantage adapter * */ /* jshint -W097 */// jshint strict:false /*jslint node: true */ 'use strict'; // you have to require the utils module and call adapter function const utils = require(__dirname + '/lib/utils'); // Get common adapter utils // you have to call the adapter function and pass a opti...
var accionTipoSangre = ""; var tableTipoSangre = ""; var dataTipoSangre = ""; $(function(){ $("#nuevo_tipo_sangre").click(function(){ nuevoTipoSangre(); }); $("#editar_tipo_sangre").click(function(){ editarTipoSangre(); }); $("#eliminar_tipo_sangre").click(function(){ if(...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getCallID = getCallID; exports.setCallID = setCallID; exports.default = void 0; var _ReanimatedModule = _interopRequireDefault(require("../ReanimatedModule")); var _reactNative = require("react-native"); function _interopRequireD...
'use strict' /** * OIDC Relying Party API handler module. */ const express = require('express') const { routeResolvedFile } = require('../../utils') const bodyParser = require('body-parser').urlencoded({ extended: false }) const OidcManager = require('../../models/oidc-manager') const { LoginRequest } = require('../...
import {StyleSheet, TouchableWithoutFeedback, View} from 'react-native'; import {useDispatch, useSelector} from 'react-redux'; import CollapsedMatchEntry from '@app/components/matches/CollapsedMatchEntry'; import ExpandedMatchEntry from '@app/components/matches/ExpandedMatchEntry'; import PropTypes from 'prop-types'; ...
import React from 'react'; import {useSelector, useDispatch} from 'react-redux'; import styled, {css} from 'styled-components'; import {setCanvasTool, setCanvasOrtho} from '../../../actions'; import * as theme from '../../../constants/theme.js'; import {ReactComponent as BoxIcon} from '../../../assets/images/icons/box....
let Pie1 = {}; /*-------------------------------------------------------------------------* * Pie1 functions && settings * *-------------------------------------------------------------------------*/ Pie1.addCommas = ( nStr ) => { nStr += ''; x = nStr.split('.'); ...
import { Component, PureComponent } from 'react'; import { ResponsiveContainer, LineChart, Line, XAxis, YAxis, Tooltip } from 'recharts'; import { Thermometer, Drop, Clock, SpinnerGap, ArrowsClockwise } from 'phosphor-react'; import './ClimateGraph.css'; class ClimateGraph extends Component { constructor(props) { ...
const express = require('express'); // eslint-disable-next-line import/no-extraneous-dependencies const path = require('path'); const mongoose = require('mongoose'); const bodyParser = require('body-parser'); const session = require('express-session'); const passport = require('passport'); const http = require('http');...
'use strict'; /** * generate directive link function * * @param {Service} $http, http service to make ajax requests from angular * @param {String} type, chart type */ function getLinkFunction($http, theme, util, type) { return function (scope, element, attrs) { scope.config = scope.config || {}; ...
// Globals let yearGroups = []; // Elements const yearGroupNameEl = document.getElementById("yearGroupName"); const confirmYearGroupEl = document.getElementById("confirmYearGroup"); const yearGroupListingEl = document.querySelector(".yearGroup-listing"); const bookNameEl = document.getElementById("bookName"); const bo...
import React, { Component } from 'react'; import { View, Text, Animated, Easing, TouchableWithoutFeedback, TouchableOpacity, FlatList, Image, AsyncStorage } from 'react-native'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Navigation } from 'react-native-navigation'; import * as ...
import React, {Component} from 'react'; import cloudinary, {Util} from 'cloudinary-core'; import CloudinaryComponent from '../CloudinaryComponent'; import {debounce, firstDefined, closestAbove, requestAnimationFrame, isElement} from '../../Util'; /** * A component representing a Cloudinary served image */ class Imag...
'use strict'; let fs = require('fs'); let gulp = require('gulp'); let env = require('./env'); let Lazy = require("lazy.js"); let $ = require('gulp-load-plugins')(); let angularFilesort = $.angularFilesort; let ngDeps = $.angularDependency; let htmlmin = $.htmlMinifier; let runSequence = require('run-sequence'); let St...
'use strict' const { convertKubeconfig } = require('../config') const deprecate = require('depd')('kubernetes-client') const JSONStream = require('json-stream') const pump = require('pump') const qs = require('qs') const request = require('request') const urljoin = require('url-join') const WebSocket = require('ws') ...
var jsface = require('jsface'), fs = require('fs'), Errors = require('./ErrorHandler'), CSVHelper = require('./CsvHelper'), _und = require('underscore'); /** * @name Helpers * @namespace * @classdesc Helper class with useful methods used throughout Newman */ var Helpers = jsface.Class({ $single...
var React = require('react'); var UI = require('UI'); var View = UI.View; var Content = UI.Content; var List = UI.List; var Grid = UI.Grid; var Modal = UI.Modal; var Card = UI.Card; var Icon = UI.Icon.Icon; var Badge = UI.Badge.Badge; var Switch = UI.Form.Switch; var Button = UI.Button.Button; var ContactItem = React...
//console.log ("VLVSmin.js завантажено"); //початкова ініціалізація VLVSmin_init (); //пошук і зповнення своїх віджетів з посиланням на себе function VLVSmin_init () { let widgets = window.IoTGW.widgets; const svgfile = 'VLVSmin.svg'; const classname = 'VLVSmin'; //пошук і заповнення віджетів for (wdgtname...
/* global describe, it */ 'use strict'; const assert = require('assert'); const stats = require('../lib/stats'); // const describe = require("mocha"); describe('stats', function () { describe('.sum()', function () { it('returns the sum of the given numerical data', function () { ass...
/* eslint-disable camelcase */ /* eslint-disable no-console */ const { Octokit } = require('@octokit/rest'); const { isEmpty, sortBy, uniqBy } = require('lodash'); const { BOT_NAME, // Name of the bot for the auth token we are using CIRCLE_PROJECT_REPONAME: repo, CIRCLE_PROJECT_USERNAME: owner, CIRCLE_PULL_REQ...
import * as THREE from '../../build/three.module.js'; import { UIPanel, UIRow, UIText, UIInput, UIButton, UISpan } from './libs/ui.js'; import { SetGeometryValueCommand } from './commands/SetGeometryValueCommand.js'; import { SidebarGeometryBufferGeometry } from './Sidebar.Geometry.BufferGeometry.js'; import { Sideb...
import React,{useState,useEffect} from "react"; // @material-ui/core components import TextField from '@material-ui/core/TextField'; import Add from "@material-ui/icons/Add"; import Edit from "@material-ui/icons/Edit"; import Close from "@material-ui/icons/Close"; import CircularProgress from '@material-ui/core/Circula...
const config = require('./config'); const [FIELDS_MAPPING] = require('./options/fieldOptionsMapping'); module.exports = { simpleType_jsonSchema, objectId_jsonSchema, date_jsonSchema, array_jsonSchema, mixed_jsonSchema, }; /** * simpleType_jsonSchema - returns jsonSchema for simple-type parameter * * @mem...
$(document).ready( function(){ $(document).foundation(); $(".cover-hidden").remove(); if( $(".rrssb-buttons").length > 0){ $('.rrssb-buttons').rrssb(); } $(".Header-mobile-show").on("click", function(){ $(".Header-mobile-menu").slideToggle('ease-in'); }); if( $(".carouse...
var common = require('./common'); var _tempDir = require('./tempdir'); var _pwd = require('./pwd'); var path = require('path'); var fs = require('fs'); var child = require('child_process'); // Hack to run child_process.exec() synchronously (sync avoids callback hell) // Uses a custom wait loop that checks for a flag f...
/*! * Copyright (c) 2018 Digital Bazaar, Inc. All rights reserved. */ 'use strict'; const LinkedDataSignature = require('./LinkedDataSignature'); const jsonld = require('jsonld'); const util = require('../util'); module.exports = class JwsLinkedDataSignature extends LinkedDataSignature { /** * @param type {str...
'use strict'; const constants = require('haraka-constants'); const List = require("./list"); const _ = require('lodash'); exports.register = function () { const plugin = this; plugin.load_lists_ini(); if (plugin.cfg.main.enabled === true){ plugin.loginfo("Plugin Lists Enabled",null) plugin....
/* eslint-disable react/no-multi-comp */ import classNames from 'classnames'; import { css, styled } from 'css-literal-loader/styled'; import qsa from 'dom-helpers/query/querySelectorAll'; import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import * as ReactBootstrap from '...
import React, { useState, useEffect } from "react"; import { navigate } from "gatsby"; import Layout from "../components/layout"; import Seo from "../components/seo"; import { toast, Toaster } from "react-hot-toast"; import ScaleLoader from "react-spinners/ScaleLoader"; import { RiDeleteBin6Fill } from "react-icons...
/** * 城市选择 */ 'use strict'; import React from 'react'; import { Dimensions, Image, View, Text, StyleSheet, TouchableOpacity, ListView, } from 'react-native'; const ORDER_STATUS_DATA={ "api":"GetSearchHistory", "v":"1.0", "code":"0", "msg":"success", "data":[{ "id":0, ...
'use strict' const importStart = Date.now() const gutil = require('gulp-util') gutil.log(`Importing packages ...`) const path = require('path') const browserify = require('browserify') const gulp = require('gulp') const cleanCSS = require('gulp-clean-css') const concat = require('gulp-concat') const flatten = requir...
var LocateControl = L.Control.extend({ options: { position: 'topleft' }, onAdd: function (map) { var container = L.DomUtil.create('div', 'leaflet-control-locate leaflet-bar leaflet-control'); var self = this; var LOCATOR_ICON = { html: [ ...
/** * Author: <NAME> * Created: 21-07.2016 * * (c) Copyright by MAGOWARE **/ 'use strict'; var path = require('path'), db = require(path.resolve('./config/lib/sequelize')), response = require(path.resolve("./config/responses.js")), querystring = require("querystring"), models = db.models; var...
/** * Copyright (c) 2018-present, https://github.com/devloco * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ "use strict"; const fs = require("fs-extra"); const path = require("path"); const { rm, cp } = require("shelljs"); const wp...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.fromSolana = void 0; const utils_1 = require("./../common/utils/utils"); const ids_1 = require("...
const async = require('async'); const bignum = require('./bignum'); const fs = require('fs'); const path = require('path'); /** * Migrator functions * @class * @private * @param {Object} pgp - pg promise * @param {Object} db - pg connection */ function Migrator(pgp, db) { /** * Gets one record from `mig...
const accessToken = "2d1ddeaadc20462dba88c9beebbe0a21"; const baseUrl = "https://api.api.ai/api/query?v=20150910"; const sessionId = "1"; const loader = `<span class='loader'><span class='loader__dot'></span><span class='loader__dot'></span><span class='loader__dot'></span></span>`; const errorMessage = "My apologies, ...
const { expect } = require('chai'); const React = require('react'); const createReactClass = require('create-react-class'); const jsdom = require('jsdom'); const enzyme = require('enzyme'); const Adapter = require('enzyme-adapter-react-16'); const { renderToStaticMarkup } = require('react-dom/server') const { render } ...
"use strict"; exports.__esModule = true; exports.monthsInYear = monthsInYear; exports.firstVisibleDay = firstVisibleDay; exports.lastVisibleDay = lastVisibleDay; exports.visibleDays = visibleDays; exports.ceil = ceil; exports.range = range; exports.merge = merge; exports.eqTime = eqTime; exports.isJustDate = isJustDat...
import React, { Component } from "react"; import { returnId } from "../helper"; import { Button, Header, Modal, Form, TextArea, Icon } from "semantic-ui-react"; import CardSlider from "./CardSlider"; import { codeToCountry, restCountryConversion, reverseCountryConversion, countries } from "../helper"; import "....
"use strict"; var _regenerator = require("babel-runtime/regenerator"); var _regenerator2 = _interopRequireDefault(_regenerator); var _promise = require("babel-runtime/core-js/promise"); var _promise2 = _interopRequireDefault(_promise); var _asyncToGenerator2 = require("babel-runtime/helpers/asyncToGenerator"); va...
import * as THREE from 'three'; import THREEUtil from './three-util'; class BSPTree { constructor(nodes, planeIndices, faceIndices, vertices) { this.nodes = nodes; this.indices = { plane: planeIndices, face: faceIndices }; this.vertices = vertices; } query(subject, startingNodeIn...