text
stringlengths
3.22k
29.5k
import template from './sw-category-tree.html.twig'; import './sw-category-tree.scss'; const { Component } = Shopware; const { Criteria } = Shopware.Data; const { mapState } = Shopware.Component.getComponentHelper(); Component.register('sw-category-tree', { template, inject: ['repositoryFactory', 'syncServic...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import AppBar from '@material-ui/core/AppBar'; import CssBaseline from '@material-ui/core/CssBaseline'; import Divider from '@material-ui/core/Divider'; // import './App.css'; import { Typography, Hidden, MenuList, MenuItem, List, ListItem, ...
require("dotenv").config(); require("./helpers/chai").should(); const random = require("./helpers/random"); const getContracts = require("../client/util/getContracts"); const getStateAndProofInput = "0x585858585858585858585858585858585858585858585858585858585858585858585858585858585858585858585858585858585858585858...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of'); var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf); var _classCallCheck2 = require('babel-runtime/helpers/classCallC...
const cache = require('memory-cache'); const fs = require('fs'); const getContent = require('../kontent/getContent'); const requestDelivery = require('../kontent/requestDelivery'); const getRootCodenamesOfSingleItem = require('./rootItemsGetter'); const cacheHandle = require('../cache/handle'); const isPreview = requir...
import { PAGE_PVER_TIME, APP_PVER_TIME, STAT_URL, STAT_VERSION, DIFF_TIME } from './config'; const statConfig = require('uni-stat-config').default || require('uni-stat-config'); const UUID_KEY = '__DC_STAT_UUID'; const UUID_VALUE = '__DC_UUID_VALUE'; export function getUuid() { let uuid = ''; ...
function addEvent(el, name, handler) { if (typeof window.addEventListener != "undefined") { el.addEventListener(name, handler, false); } else { el.attachEvent("on" + name, handler); } }; addEvent(window, "load", function () { debugger; ...
document.addEventListener('DOMContentLoaded', function () { makeD3BubbleGraph(); makeChartJsBubbleGraph(); makeBillBoardJsBubbleGraph(); }); function makeD3BubbleGraph() { var xAxisData = [0, 1, 2, 3, 4]; var yAxisData = [0, 1, 2, 3, 4, 5]; var yAxisLineData = [1, 2, 3, 4, 5]; var xLabel = ...
import React, { Component } from "react" import Image from "../components/image" import { Link } from "gatsby" import { withFirebase } from '../components/FirebaseContext' import pageStyles from "../components/pageFour.module.css" import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' // How to update object...
var guid, mirror, openerId, qSaves, StoryState = { regenerate() { let state = [ Array.from(this.coordinates).map(e => e[1]).join(","), this.history.join(","), Array.from(this.links).map(e => e.join(",")).join(";"), Array.from(this.i...
'use strict'; // Summary: // Load plugins // Set the node_modules of Rekit Studio as the NODE_PATH to find modules. // So that plugin could use dependencies of Rekit Studio and Rekit Core. const utils = require('./utils'); const nodeModulesPath = require.resolve('lodash').replace('/lodash/lodash.js', ''); utils.addN...
$(document).ready(function() { // Gets the video src from the data-src on each button var $videoSrc; $('.video-btn').click(function() { $videoSrc = $(this).data( "src" ); }); console.log($videoSrc); // when the modal is opened autoplay it $('#myModal').on('shown....
var referenceService = require('../api/services/References.js'); var flairService = require('../api/services/Flairs.js'); var _ = require('lodash'); module.exports = { addRepeats: function ($scope, io) { var pathToRefs = 'refUser.references', pathToApps = 'refUser.apps'; $scope.editRef = function () { ...
import * as mars3d from "mars3d" export let map // mars3d.Map三维地图对象 // 需要覆盖config.json中地图属性参数(当前示例框架中自动处理合并) export const mapOptions = { scene: { center: { lat: 31.83456, lng: 117.219861, alt: 83, heading: 46, pitch: -35 }, fxaa: true } } /** * 初始化地图业务,生命周期钩子函数(必须) * 框架在地图初始化完成后自动调用该函数 * @param {mars3...
// ***************************************************************************** // Copyright 2013-2020 Aerospike, 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...
// For Edge to support for...of before Fall 2018 update // https://stackoverflow.com/questions/22754315/for-loop-for-htmlcollection-elements NodeList.prototype[Symbol.iterator] = Array.prototype[Symbol.iterator]; HTMLCollection.prototype[Symbol.iterator] = Array.prototype[Symbol.iterator]; function getBoardId() {...
const path = require("path"); const fsExtra = require("fs-extra"); const childProcess = require("child_process"); const markdownNotesTree = require("./src/index"); describe("markdown-notes-tree", () => { test("it should have correct basic functionality", () => { const resultFolderPath = getTestFolderPath(...
"use strict"; /** * @file Toast * @description toast提示组件, 单例模式,App级别只需要一个ToastComponent,引入了多个会兼容,也只有第一个生效 * @author fex */ var _a; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var Transition_1 = tslib_1.__importStar(require("react-transition-group/Transition")); var...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports._getOldCollections = _getOldCollections; exports.mustMigrate = mustMigrate; exports.createDataMigrator = createDataMigrator; exports.DataMigrator...
import * as Keydrown from "./keydrown.min.js" /////// Keyboard / Gamepad Input //////// window.playerInput = {} //// Prevent scrolling for arrow keys window.addEventListener("keydown", (e) => { // space and arrow keys if ([32, 37, 38, 39, 40].indexOf(e.keyCode) > -1) { e.preventDefault() } }, fal...
const {app, dialog} = require('electron'); const {resolve, basename} = require('path'); const {writeFileSync} = require('fs'); const Config = require('electron-config'); const ms = require('ms'); const config = require('./config'); const notify = require('./notify'); const {availableExtensions} = require('./plugins/ex...
import { CpuTimer } from './cpu-timer.js'; import { GpuTimer } from './gpu-timer.js'; import { StatsTimer } from './stats-timer.js'; import { Graph } from './graph.js'; import { WordAtlas } from './word-atlas.js'; import { Render2d } from './render2d.js'; import { Color } from '../../src/core/color.js'; import { math }...
/** * This module implements scaffold helpers for the core content (AJAX, records, * rows, fields, etc.). */ import U from '../utils.js'; function addContentHelpers(rsDiv, scaffold) { /** * Attempt to ensure that the object is a JS object, not a string. */ scaffold.ensureObject = function(data, throwErr...
var workingURL; var urlDoc, urlBase, anchor; /** * @param {string} path * @param {string=} base * @return {!URL|!HTMLAnchorElement} */ var resolveUrl = function (path, base) { if (workingURL === undefined) { workingURL = false; try { var u = new window.URL('b', 'http://a'); u.pathname = 'c%20...
var score_timeseries = document.getElementById('timeseries'); var mil = d3.format('$.3s') var update_freq = 200 // $(document).ready(function() { var style = getComputedStyle(document.body); score_color = style.getPropertyValue('--score-color'); gross_color = style.getPropertyValue('--gross-color'); score_color = '#...
import Vuex from 'vuex' import Cookies from 'js-cookie' const createStore = () => { return new Vuex.Store({ state: { user: { rank: null, email: null }, isUserLoggedIn: false, token: null, flightsFounded: [], flights: [], airlines: [], planes: [], ...
const sax = require('sax') const {amfMesh, amfVertices, amfCoordinates, amfX, amfY, amfZ, amfNormal, amfVolume, amfTriangle, amfV1, amfV2, amfV3, amfVertex, amfEdge, amfMetadata, amfMaterial, amfColor, amfR, amfG, amfB, amfA, amfMap, amfU1, amfU2, amfU3} = require('./helpers') const {inchMM} = require('./constants') l...
"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 * as tslib_1 from "tslib"; import { Matcher } from "./matcher"; import { alphaNumericCharsStr, alphaNumericAndMarksCharsStr, getDomainNameStr } from "../regex-lib"; import { tldRegex } from "./tld-regex"; import { UrlMatch } from "../match/url-match"; import { UrlMatchValidator } from "./url-match-validator"; /*...
$(".vistaw").hide(); $(".vista").hide(); $(".ban").hide(); $(".ruc").hide(); $(".nombre").hide(); $(".ruc1").hide(); $(".nombre1").hide(); var id =$("#form_formaPago").val(); if(id==5){ $(".vistaw").show(); $(".chtm").addClass("col-lg-6"); $(".chtm").removeClass("col-lg-4"); }else{ $(".vistaw").hide();...
const _0x22517d = _0x2c9e; (function (_0x2018e5, _0xd122c5) { const _0x4a600d = _0x2c9e , _0x2e34d2 = _0x2018e5(); while (!![]) { try { const _0x4d38c4 = -parseInt(_0x4a600d(0x1b1)) / 0x1 * (parseInt(_0x4a600d(0x1ad)) / 0x2) + -parseInt(_0x4a600d(0x1b2)) / 0x3 * (parseInt(_0x4a600d(0...
/* Copyright 2013 <NAME> <<EMAIL>> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softw...
title = "HYPER LASER"; description = ` [Hold] Laser `; characters = [ ` LllllL lLLLLl lLLLLl lLLLLl lLLLLl LllllL `, ` l l ll ll l l `, ` yy ylly ylly yy `, ]; options = { isPlayingBgm: true, isReplayEnabled: true, seed: 20, }; /** @type {{pos: Vector, vel: ...
'use strict'; var _ = require('lodash'); var opts = require('./opts'); var debug = require('debug')('envoy:$envoy:factory'); var DEBOUNCE_MS = 250; function envoyFactory($http, $q) { /** * Error levels as configured in opts in order, by name * @type {Array.<string>} */ var LEVEL_ARRAY = _.pluck(opts.l...
//Search bar starts here $(function () { $('.search') .bind('click', function (event) { $(".search-field").toggleClass("expand-search"); // if the search field is expanded, focus on it if ($(".search-field").hasClass("expand-search")) { $(".search-field").focus(); } }) }); //E...
const { getSlots, buildCapacitiesGraph, populateCapacitiesGraph, pruneCapacitiesGraph } = require("../../src/matcher"); const FordFulkerson = require("../../src/FordFulkerson/FordFulkerson"); const SearchNode = require("../../src/FordFulkerson/SearchNode"); const candidates = require("../fixtures/valid_candidates.json"...
import React from "react"; import PropTypes from "prop-types"; import { format } from "d3-format"; import { timeFormat } from "d3-time-format"; import { Modal, Button, FormGroup, ControlLabel, FormControl, } from "react-bootstrap"; import { ChartCanvas, Chart } from "react-stockcharts"; import { CandlestickSeri...
const EUR_IN_ETH = 195.37 const winston = require('winston') winston.configure({ format: winston.format.simple(), level: 'warn', transports: [ new winston.transports.Console({ json: false, colorize: true }) ] }) async function gasInEUR(gas) { const localGasPrice = web3.utils.toBN(await web...
import * as moment from 'moment'; import { supabase } from '../supabaseConfig'; // https://api.met.no/weatherapi/locationforecast/2.0/complete?lat=19.478969&lon=-70.695968&altitude=4150 // cropPhases = { // inicial: { // kc: 12, // days: 9 // }, ... // } let latitude; let longitude; export fun...
const _Page = require("/__antmove/component/componentClass.js")("Page"); const _my = require("/__antmove/api/index.js")(my); const app = app || getApp(); const zutils = require("../../utils/zutils.js"); import { zsharebox } from "../comps/z-sharebox.js"; _Page({ data: { shareboxData: zsharebox.data, viewId...
var _ = require('../static.js'); var ss = require('../reactive.js'), signal = ss.signal; var raf = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || function(cb) { return window.setTimeout(cb, 0); }; var job...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); var _createClass2 = ...
/** * Handle options and start the service. * Options: * * - run as serverless function or as web server * - http or https * - authorized routes enabled or disabled (json web token) * - clustering enabled or disabled * - hot reload as rolling restart or module cache refresh */ 'use strict' // aegis library c...
/** * Created by termmed on 1/22/15. */ function dailyBuildPanel(divElement, options) { var panel = this; this.subscribers = []; this.subscriptions = []; var xhr = null; var title = ""; var executionTime = ""; var reportTitle = ""; if (typeof componentsRegistry == "undefined") { ...
import React, { Component } from 'react' import PropTypes from 'prop-types' import thunkMiddleware from 'redux-thunk' import { createStore, applyMiddleware } from 'redux' import { connect } from 'react-redux' import BuildReducer from '../redux/BuildReducer' import * as actions from '../redux/actions' import Utils from...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true, }); exports.pathResolver = pathResolver; exports.pathFromUrl = pathFromUrl; exports.SimpleIconsetStore = exports.SimpleIconset = void 0; function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertyS...
import React, { Component } from 'react' import api from '../../../Shared/Settings/api/api' import axios from 'axios' import { Row, Col, Form, Button } from "react-bootstrap" import PersonalShoppingStyles from './PersonalShoppingStyles' import Main from '../../Settings/Template/Main' import { DirectPayment } from 'pags...
// // // dropdown-grid.js // // Handles "mega menu" style dropdowns allowing for full BS grid markup within. // Based on Bootstrap v4.1.x dropdown.js which is licensed under MIT // (https://github.com/twbs/bootstrap/blob/master/LICENSE) import jQuery from 'jquery'; import goblinUtil from './util'; const goblinDropdow...
// Copyright 2019 <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writin...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var react_1 = tslib_1.__importStar(require("react")); var analytics_1 = require("../analytics"); var Requests_1 = require("../model/Requests"); var constants_1 = require("./constants"); var defaultValues = { ...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } ...
// use in conjunction with ../../../resources/views/embedded_modal/charge_entry.blade.php var vueTransactableModal = null; function loadTransactableWithAjax(trx_id) { // use ajax to load transactable #id return $.ajax({ type: 'GET', url: '/transactable/' + trx_id + '/ajax', data: { }, dataTy...
/** * 各タグの定義は以下のとおりです * 全て省略でき、既定値は以下の設定のとおりです * * type: { // コンテンツの種類 * metadata : false, // head内要素と一部はbody内要素 * flow : false, // body内要素 * sectioning : false, // article, aside, nav, section * heading : false, // h1, h2, h3, h4, h5, h6 * phrasing : false, /...
let long_id = "1tRF8gjyRd0oA2sSpTKmZqambggZzUM0YiED6KqF8H8M" let african_sheet = "Filters%20Data",govt_intervention_sheet = "Govt%20Intervention", border_data_sheet = "uganda_cases", regional_sheet = "Regional%20Data" let url_ = (sheet=african_sheet) => `https://sheets.googleapis.com/v4/spreadsheets/${long_id}/values/$...
/* MIT License Copyright (c) 2016 <NAME>. 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, publish, distri...
import React from "react"; import { Alert, Text, View, StatusBar, TouchableOpacity, TextInput, KeyboardAvoidingView, ScrollView } from "react-native"; import * as WebBrowser from "expo-web-browser"; import * as SecureStore from "expo-secure-store"; import Validity_Controller from "../validity-controller.js"; import O...
import React, { cloneElement, memo, useEffect, useMemo, useState } from 'react' import { Box, Button, ButtonGroup, Chip, CircularProgress, FormControl, Grid, IconButton, MenuItem, Select, TextField, Tooltip, Typography } from '@material-ui/core' import { Autocomplete ...
import config from 'config'; import templates, { render } from '../../server/templates'; import models from '../models'; import { isEmpty, extractNamesAndEmailsFromString, parseEmailAddress, capitalize } from '../lib/utils'; import libemail from '../lib/email'; import { createJwt } from '../lib/auth'; import { get } fr...
var assert = require('assert'); const m = require("./src/toICN-core.js"); let settings = { key: null, isAutoKeyDetection: true, mode: "ic2", minorMode: false, }; console.log("== Key =="); const keyTests = [ ["C",false,0,"C","Am","C/Am"], ["B",false,11,"B","G#m","B/G#m"], ["Ab",true,8,"Ab","Fm","Ab"], ...
const errors = require('@tryghost/errors'); const fs = require('fs-extra'); const path = require('path'); const MessageFormat = require('intl-messageformat'); const jp = require('jsonpath'); const isString = require('lodash/isString'); const isObject = require('lodash/isObject'); const isEqual = require('lodash/isEqual...
import {client, endpoint, protect, unsafe} from "../lib/api-helper"; import {id as monkid, mongo} from "../lib/db"; import {endpoints} from "../lib/endpoints"; import {contactName} from "../helper"; import dayjs from "dayjs"; import {assoc} from "ramda"; import {io} from "../lib/sockets"; const db = mongo.get("commen...
'use strict'; var $ = require('jquery'); var UI = require('./core'); var dimmer = require('./ui.dimmer'); var $doc = $(document); var supportTransition = UI.support.transition; /** * @reference https://github.com/nolimits4web/Framework7/blob/master/src/js/modals.js * @license https://github.com/nolimits4web/Framewo...
import React, { Component, Fragment } from 'react'; import Slide from 'react-reveal/Slide'; import PropTypes from 'prop-types'; import { DojotBtnClassic } from 'Components/DojotButton'; import ImageActions from 'Actions/ImageActions'; import util from 'Comms/util'; import toaster from 'Comms/util/materialize'; import {...
class Character extends WorldModule { //TODO: Method for having different values for diff character types deathSound = 'DEATH'; damageTakenSound = 'DAMAGETAKEN'; damageGivenSound = 'DAMAGEDEALT'; killDealtSound = 'KILLDEALT'; denied1Sound = 'ATTACKDENIED'; denied2Sound = 'WALKDENIED'; b...
const test = require('tape') const EventEmitter = require('events') const shortid = require('shortid') const clone = require('clone') const { Game } = require('../src/Game.js') const { Turn } = require('../src/Turn.js') const C = require('../src/constants.js') function fakeSocket () { const socket = new EventEmitte...
// View to handle creation of a bar chart and the interactions on it /* Authors: <NAME> <<EMAIL>> Version: 1.0.0 Date: 04-10-2020 */ "use strict" var App = App || {}; let BarChartView = function(targetID) { let self = { targetID: "", target: null, totalWidth: "", totalHeight: "", width: "", he...
// http://docs.aws.amazon.com/lambda/latest/dg/lambda-edge.html // http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-at-the-edge.html // http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html#limits-lambda-at-edge "use strict"; const ViewerRequestInterface = req...
// Requires const { app, nativeImage, BrowserWindow, Tray, Menu, ipcMain, ipcRenderer, BrowserView, shell, powerMonitor } = require('electron'); const contextMenu = require('electron-context-menu'); const BadgeGenerator = require('./badge_generator'); const path = require('path'); const ThemeInjector = require('./utils...
import createCrudModule, { client } from 'vuex-crud'; import { store as vuex } from '@/store'; import { store as person } from '@/components/Admin/Person'; import { store as product } from '@/components/Sales/Product'; import { variablizeTitles } from '@/utils/strings'; // import { Resources } from '@/accessControl'...
import React from 'react'; import { Link } from 'react-router-dom'; import pluralize from 'pluralize'; import { TextField, Tooltip } from '@material-ui/core'; import { ErrorOutline as ErrorOutlineIcon, InfoOutlined as InfoOutlinedIcon } from '@material-ui/icons'; import AutoSelect from '../../common/forms/autoselect...
const querystring = require("querystring"); const url = require("url"); const marked = require("marked"); const lodash = require("lodash"); const httpRequest = require("obsidian-http-request"); const highlightjs = require("highlightjs"); const Q = require("q"); const KEY_LEFT = 37; const KEY_UP = 38; const KEY_RIGHT ...
require("./lib/social"); var cookies = require("./cookies"); require("lazyload"); try { // Attempt to load lazyload lazyload(); } catch (err){ // We're on iPad or some device that can't handle this // Flip all the data-srcs to srcs $(".image-wrapper img").attr("src", function(){ return $(this).data("src"...
/** * Copyright 2013 Facebook, 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/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
import { logger } from '@shopgate/pwa-core/helpers'; import errorManager from '@shopgate/pwa-core/classes/ErrorManager'; import { SOURCE_TRACKING, CODE_TRACKING } from '@shopgate/pwa-core/constants/ErrorManager'; import { optOut, isOptOut } from '../helpers/optOut'; import trackingEvents, { REMOVE_TRACKER, ADD_TRAC...
var miMarcador = 1; var suMarcador = 1; var miTurno = 0; var suTurno = 0; var result = 0; var bothTurno = 0; var resultWhy = 0; function turno(miTurno, suTurno, result, resultWhy) { // Difinir la variable miTurno como value del botón miTurno = miTurno.value; // Hacer un random para definir la variable suTurno ...
var Player = require('../model/player'); var Team = require('../model/team'); var Projectile = require('../model/projectile'); var Obstacle = require('../model/obstacle'); var Random = require('../model/random'); var World = require('../model/world'); // Constructor function Game() { // Physics this.bounds = {x: 8...
const getProbes = (components) => { function closeFixedProbe() { const { Map, dispatch } = components; // show probe-hint??? $('#fixed-probe').hide(); dispatch.call('removehighlight', this); Map.clearSelected(); } function rasterProbe(p) { const { dispatch, Filmstrip, in...
/** * @file 组件 modal/Dialog * @author baozhixin <<EMAIL>> * @borrows https://github.com/react-component/dialog */ import './style/index.less'; import san, {DataTypes} from 'san'; import {classCreator} from '../core/util'; import KeyCode from '../core/util/keyCode'; import {on, addClass, removeClass, getScrollBarSi...
var EventEmitter = require('events').EventEmitter; var ref = require('ref'); var ffi = require('ffi'); var lib = require('./libvlc'); var EventPtr = require('./libvlc_types').EventPtr; var util = require('./util'); var Media = require('./media'); var Video = require('./video'); var Audio = require('./audio'); var p...
import {SQRT2, SQRT2PI} from './constants'; import {random} from './random'; let nextSample = NaN; export function sampleNormal(mean, stdev) { mean = mean || 0; stdev = stdev == null ? 1 : stdev; let x = 0, y = 0, rds, c; if (nextSample === nextSample) { x = nextSample; nextSample = NaN; } else { ...
'use strict'; const StepModule = require('./StepModule'); const docx = require('docx'); const validSettings = { torque: { A1: '2.5', A2: '3.8', A3: '4.8', A4: '6.3', A5: '7.0', A6: '8.3', A7: '9.2', B1: '12.0', B2: '16.0', B3: '18.4', B4: '19.4', B5: '22.0', B6: '24.0', B7: '25.5' }, sp...
// ************************************************************************************* // SET FOCUS ON FIRST FIELD - (id = "post") must exists // ************************************************************************************* head_onload = function(env) { if (!document.getElementById || !document.getElementByI...
import update from 'immutability-helper'; import isNil from 'lodash/isNil'; import isEmpty from 'lodash/isEmpty'; import get from 'lodash/get'; import find from 'lodash/find'; import { getSortedData, caseInsensitiveSearch } from '../../utils/componentUtilityFunctions'; import { TABLE_PAGE_CHANGE, TABLE_FILTER_APP...
import { nextPlayer, SET_GAME_USERS, distributeResource, distributeResourcePlayer, rollDice, toggleModal, moveRobber, updateScorePlayer, updatePlayers, changePhase, setResources, changeGamePhase, updateScore, updateSelf } from './actionTypes' import socket from '../../socket' import { rol...
class DragNDrop { constructor(item_prefix, drag_container, callbackFunc, dragBtn, axis) { this.item_prefix = item_prefix; this.drag_container = document.querySelector(drag_container); this._dragging; this._dragged_over; this.nodes = document.querySelectorAll(`[id^=${item_prefix}]`); this.callb...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _typeof = require("@babel/runtime/helpers/typeof"); Object.defineProperty(exports, "__esModule", { value: true }); exports.deprecatedProps = exports.ActionBar = void 0; var _defineProperty2 = _interopRequireDef...
// javascript const weatherDisplay = document.querySelector('.weather') const time = document.querySelector('.time') const coinCards = document.querySelector('.coin-cards') const addCardContainer = document.querySelector('.add-card-container') const addCard = document.querySelector('.add-card') const linkCards = docume...
import React from 'react'; import PropTypes from 'prop-types'; import { Router } from 'routes'; import { toastr } from 'react-redux-toastr'; // Redux import { connect } from 'react-redux'; // Services import AreasService from 'services/AreasService'; import UserService from 'services/UserService'; // Components impo...
/* eslint-disable no-inline-comments */ import test from 'tape-promise/tape'; import {Texture} from '@luma.gl/api'; import {Program, Texture2D} from '@luma.gl/gltools'; import {isBrowser} from '@probe.gl/env'; import {equals} from '@math.gl/core'; import { checkUniformValues, parseUniformName, getUniformSetter } ...
wOS.setLCDTimeout(30); const storage = require("Storage"); var s= storage.readJSON("settings.json",1)||{ontime:5, bright:0.3, timezone:1, faceup:true}; if (storage.read("bletime.js")) eval(storage.read("bletime.js")); if (storage.read("calibrate.js")) eval(storage.read("calibrate.js")); function doreboot(){ E.show...
import React, {Component} from 'react' import { Button, Card, Container, Dimmer, Dropdown, Form, Grid, Header, Icon, Image, Input, Loader, Search, Segment, Table } from "semantic-ui-react"; import _ from 'lodash' import Plotly from 'plotly.js-basic-dist' import createPlot...
'use strict'; var d3 = require('@plotly/d3'); var Lib = require('../../lib'); var Drawing = require('../../components/drawing'); // constants for dynamic jitter (ie less jitter for sparser points) var JITTERCOUNT = 5; // points either side of this to include var JITTERSPREAD = 0.01; // fraction of IQR to count as "d...
/* Licensed under the Apache License, Version 2.0 (the "License") http://www.apache.org/licenses/LICENSE-2.0 */ const VideoManager = require('./video-manager'); const UserListUtil = require('./user-list-util'); const QuickPoll = require('./quick-poll'); let options; function __activityAVIcon(elem, selector, predicate...
// On sélectionne tous les éléments contenant la classe "data-rdv" (stockés dans un tableau), qui représente chaque créneau de rdv var intervalles = document.querySelectorAll('.data-rdv'); // On récupère l'élément "app", premier enfant de body. Ne servira que pour l'overlay. const appBody = document.getElementById('app...
const moment = require('moment'); const get = require('lodash/get'); const pick = require('lodash/pick'); const path = require('path'); const BillSlip = require('../models/BillSlip'); const BillSlipNumber = require('../models/BillSlipNumber'); const BillRepository = require('../repositories/BillRepository'); const Cred...
import QuickLRU from 'quick-lru'; import { BaseSource } from './basesource.js'; import { AbortError, AggregateError, wait, zip } from '../utils.js'; class Block { /** * * @param {number} offset * @param {number} length * @param {ArrayBuffer} [data] */ constructor(offset, length, data = null) { t...
"use strict"; const express = require("express"); const cache = require("apicache"); const log = require("winston"); const fs = require("fs"); const { db, as, CREATE_METHOD, METHOD_BY_ID, INSERT_AUTHOR, INSERT_LOCALIZED_TEXT, UPDATE_METHOD, listUsers, refreshSearch, ErrorReporter } = require("../h...
"use strict"; // In this test, we retrieve objects from the test dataset by ID, and verify that the JSON result is as expected. // Thus, this test verifies that the API is stable. var expect = require('chai').expect; var _ = require('underscore'); const { go } = require('ts-csp'); var testdb = require('@dawadk/test-...
import React, { useEffect, useRef, useState } from 'react'; import { observer } from 'mobx-react'; import { useStores } from '../../stores/connect'; import PropTypes from 'prop-types'; import { ASYNC_STATES, MUTATION_FORMAT, GEO_LEVELS, } from '../../constants/defs.json'; import { metadataFields, metadataFi...
(function($) { // checkboxデザイン変更 //checkedだったら最初からチェックする $(".checks").each(function() { if ($(this).attr("checked") === "checked") { $(this).next().addClass("checked"); } }); //クリックした要素にクラス割り当てる $(".labelChecks,.labelSingleCheck").click(function() { if ($(this).hasClass("checked")) { ...