text
stringlengths
3.22k
29.5k
const {getDb} = require('../lib/database'); const setupBot = require('../lib/setup'); const Payment = require('../managers/Payment'); const {Telegraf} = require('telegraf'); const {menu, escapeHTML} = require('../lib/helpers'); const {makeInvoice} = require('../lib/product'); module.exports = class BotManager { co...
import React from 'react'; import SolarSystemComponent from '../components/solar-system'; export default class SolarSystem { static componentWithData(items) { return <SolarSystemComponent items={items} />; } static fromRawData(rawData) { return rawData.map(raw => Item.fromRawData(raw)) } } class It...
layout.registerComponent( 'viewportComponent', function(container, componentState){ var renderer = new THREE.WebGLRenderer({antialias: true}); var name = 'viewport' + componentState.viewportId; var div = $('<div class="viewport" id="' + name + '" viewportId=' + componentState.viewportId + '>' + ` ...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import * as actions from '../../../actions/dash.js'; import { api, request_file } from '../../../actions/_request'; import swal from 'sweetalert2'; import Select from 'react-select'; class Almacenes extends Component { constructor(pr...
import React from 'react'; import { connect } from 'react-redux'; import { store } from '..'; import { Field, reduxForm } from 'redux-form'; import { action_getUserInfo } from '../actions'; class Aboutme extends React.Component { constructor(props) { super(props); this.state = { ren...
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
// MIT License // Copyright 2019-present, Digital Government Development Agency (Public Organization) // 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 with...
const getter = require('./getter.js') const ticketShopJSON = require('../data/ticketshop-configuration.json') const articlesData = require('../data/articles.json') let ticketChoice = null let ticketDefault = [] let groupChoice = "" let expoChoice let monthChoice let dayChoice let totalPrice = '' let totalPriceRawThree ...
import React, {useState, useEffect} from 'react'; import { View, Text, StyleSheet, FlatList, Dimensions, ActivityIndicator, } from 'react-native'; import {Input, Icon, ListItem, Avatar} from 'react-native-elements'; import theme from '../../theme'; import {TouchableOpacity} from 'react-native-gesture-handle...
const fs = require("fs") const glob = require('glob') const jsdom = require("jsdom"); const { exit } = require("process"); const { JSDOM } = jsdom; glob("src/pages/**/*.html", {}, assembleFiles); var sitemap = '<?xml version="1.0" encoding="UTF-8"?>\n<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n\n' c...
var $$ = Dom7; var theme = 'auto'; if (document.location.search.indexOf('theme=') >= 0) { theme = document.location.search.split('theme=')[1].split('&')[0]; } var monthNames = ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember']; var monthNamesS...
const path = require('path'); const through = require('through2'); const defaults = require('lodash.defaults'); const parseCss = require('css-parse'); const pluginError = require('plugin-error'); const fLog = require('fancy-log'); const color = require('ansi-colors'); const replaceExt = require('replace-ext'); const vi...
var myNamespace = null; var retryTimer = []; var secret; // This will be called by the admin adapter when the settings page loads function load(settings, onChange) { myNamespace = adapter + '.' + instance; // example: select elements with id=key and class=value and insert value if (!settings) return; ...
const task_config = 'asin_keywords_config'; const msg_container = 'id_err_message'; const wait_text = '数据处理中,请稍后...'; API.APP.dbinit('asin_keywords').then(function (instance) { window.db = instance; window.db.version(1).stores({ items: 'keywords', task: 'config,asin,marketplaceId' }); }); ...
/*jshint esnext:true, eqnull:true, undef:true */ /*globals require, window */ var moment = require('moment'); var d3 = require('d3'); import {BaseRenderingPlugin} from './plugin'; import {AnnualDataSeries} from './chartviz'; var DAY_MS = 24 * 60 * 60 * 1000; // Map uu.chart frequency name to interval name (moment||d...
const linearSeperable = (p) => { let neuron; let size = 150; let training; let testSet; const toScreen = (x, y) => mapToScreen(p, x, y); p.setup = () => { p.createCanvas(p.windowWidth, p.windowHeight); training = new Points(size * 8, p); training.training = true; ...
#!/usr/bin/env node // // Author: <NAME> // Contact: www.christianbenjaminries.de // Mail: <EMAIL> // License: MIT // var helper = require('./gartenServer.helper.js'); var cfg = require('./gartenServer.cfg.js').cfg; var twoDigits = helper.twoDigits; var checkStates = helper.checkStates; var schedule = [ // mode ...
/* Visual design inspired by https://kynd.github.io/p5sketches/index.html */ /* Notes: - Anything using `elt` is undocumented behaviour - The p5 coordinate system is such that "y increases downwards". However, we are attempting to plot the cartesian system where "y increases upwards". ...
import Hls from 'hls.js'; var resolution = 1024; window.innerWidth > 640 && (resolution = 1280); window.innerWidth > 1024 && (resolution = 1920); // window.innerWidth > 1280 && (resolution = 1920); var part_i_duration = 71.517, part_iii_duration = 14.272, part_iv_duration = photo ? 5.8 : 0, part_vii_durat...
const tingo = require('tingodb')({ nativeObjectID: true }); const DbClient = tingo.Db; const assert = require('assert'); const ObjectID = tingo.ObjectID; const path = require('path'); class CollectionWrapper { constructor(db, collection = null, cursor = null) { this._db = db; this._collection = collection; thi...
'use strict'; //Globals const productImageSectionTag = document.getElementById('product-pics'); const leftProductImageTag = document.getElementById('left-product-img'); const centerProductImageTag = document.getElementById('center-product-img'); const rightProductImageTag = document.getElementById('right-product-img...
function displayLiveProductivity(input, selectionData) { console.log("displaying live productivity data for " + input + " and " + selectionData) let data = { input: input, selection: selectionData }; fetch("/get_live_productivity_data", { method: "POST", body: JSON.string...
'use strict'; var Point = require('point-geometry'); module.exports = { getIcon: getIcon, getGlyphs: getGlyphs }; var minScale = 0.5; // underscale by 1 zoom level function getIcon(anchor, image, boxScale, line, props) { var x = image.w / 2; var y = image.h / 2; var dx = props['icon-offset'][0...
"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...
import InputFile from './InputFile.js' async function loadStyles(stylesheets) { let arr = await Promise.all(stylesheets.map(url => fetch(url))) arr = await Promise.all(arr.map(url => url.text())) const style = document.createElement('style') style.textContent = arr.reduce( (prev, fileContents) ...
/** * Copyright (c) 2021, Diabeloop * Verify we have (almost) all the locales used * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the ...
"use strict"; /** * Copyright(c) Live2D Inc. All rights reserved. * * Use of this source code is governed by the Live2D Open Software license * that can be found at https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html. */ Object.defineProperty(exports, "__esModule", { value: true }); var cubi...
/** * Var name rules: * a_XXX argument * file nsILocalFile * __XXX private method / attribute * _c_XXX callback function */ var _OBF = { /* @mozilla.org/file/local;1 */ localFile: function(/* String | nsILocalFile */ a_file) { var file = Components.classes["@mozilla.org/file/local;1"] .createInstanc...
// @ts-check const vscode = require("vscode") const JSDOM = require("jsdom"); // Get the config (not using ) let configGeneral = vscode.workspace.getConfiguration("csharp-prettier-docs.general"); let configSummary = vscode.workspace.getConfiguration("csharp-prettier-docs.summary"); let configParam = vscode.workspace.g...
import React from "react"; import { CircularProgress, Snackbar } from "@material-ui/core"; import { useEffect, useState } from "react"; import DrmInfestedLeaflet from "./Kart/DrmInfestedLeaflet"; import FeaturePicker from "./FeaturePicker"; import { getFeatureInfo } from "./probe"; import { Switch, Route, useLocation }...
import React, { useState } from "react" import { useStaticQuery, graphql, Link, navigate } from "gatsby" import Img from "gatsby-image" import Layout from "../components/Layout" import { Seo } from "../components/Seo" import { WelcomeSection, WelcomeContainer, ProfileImg, Section, H, P, LinkBtn, LinkBt...
import React, { Component } from 'react'; // import { Appdiv } from './UIElements'; import { // AnchorButton, Button, ButtonGroup, Tooltip, Position, // Card, // Classes, // Elevation, InputGroup, // Tooltip } from '@blueprintjs/core'; import './app.css'; import 'text-annotation-graphs/dist/tag/css/...
/* eslint-env mocha */ /* eslint capitalized-comments: 0 */ /* eslint guard-for-in:0 */ const assert = require('assert'); const jsnx = require('jsnetworkx'); const mcmc = require('../lib/index.js'); describe('mcmc', () => { it('Find distance?', () => { var G = new jsnx.Graph(); G.addNode(0, { coordinate: [1...
const archiver = require('archiver'); const xmldom = require('xmldom'); const utils = require('./utils'); const fs = require('fs'); const fsp = require('fs/promises'); const path = require('path'); const metadata = require('./metadata'); const manifest = require('./manifest'); const opf ...
var express = require('express'); var router = express.Router(); var blockexplorer = require('blockchain.info/blockexplorer'); var exchange = require('blockchain.info/exchange'); var _ = require('underscore-node'); var Address = require('../models/address'); var User = require('../models/user'); var Note = require('../...
/** * author: <NAME> https://github.com/Teddy95 * license: MIT http://opensource.org/licenses/MIT * * The MIT License (MIT) * * Copyright (c) 2014 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"),...
/** * Created by duanyc on 2018/8/13 */ const tool = {}; // 地图方法处理 老代码复制来的 稍作修改 勿动 tool.map = { /** * 生成地图上线两端的地理位置坐标数组:线属性 * @param data * @returns {Array} * 格式[{"value":152,"coords":[[-10.1,110.33],[-10.1,110.33]]}, * {"value":152,"coords":[[-10.1,110.33],[-10.1,110.33]]}, ...
//************************************** Content Management ************************************************************ // Content goes here, can be expanded, or added within existing system var bio = { "name": "<NAME>", "role": "Graduate Student", "contacts": { "email": "<a href='mailto:<EMAIL>'><...
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { Image, Text, View, ScrollView, FlatList, Dimensions, StyleSheet, StatusBar, TouchableOpacity } from 'react-native'; import { StackActions, NavigationActions } from 'react-navigation'; import Async...
var unicity = ["不能重复", "不能为空"]; //表单设置列表 var token = $('meta[name="_token"]').attr('content'); var formConfigTable = $("#formConfigTable").dataTable({ "columns": [ {"data": "id", "title": "表单id"}, {"data": "form_name", "title": "表单名称"}, {"data": "classify.classifyname", "title": "表单分类","sor...
var config = require('config.json'); var _ = require('lodash'); var jwt = require('jsonwebtoken'); var bcrypt = require('bcryptjs'); var Q = require('q'); const uuidV1 = require('uuid/v1'); var mongo = require('mongoskin'); var db = mongo.db(config.connectionString, { native_parser: true }); db.bind('employeedetails');...
'use strict'; const shim = require('fabric-shim'); const util = require('util'); const createKeccakHash = require('keccak'); var sha256 = require('js-sha256').sha256; class ConstantClass { static async AddContract(stub, contractName, balance) { //tested let args = ['addContract', contractName, balance]; l...
const path = require('path'); const fs = require('fs'); const vueCompiler = require('vue-template-compiler'); const translate = require('./translate'); const profiler = require('./profiler'); const utils = require('../utils'); // https://github.com/vuejs/vue/blob/dev/flow/options.js const vu...
let selectedFieldPaint = 0; let paintEnabled = false; // KREATOR SKINÓW let listColors = [ { id: 0, name: "Metallic black" }, { id: 1, name: "Metallic graphite black" }, { id: 2, name: "Metallic black steal" }, { id: 3, name: "Metallic dark silver" }, { id: 4, name: "Metallic silver" }, { id: ...
import React from "react"; import AcademicWorks from "../../../contracts/AcademicWorks.json"; import { Buffer } from 'buffer'; import { Button, Col, Row, Form, FormInput, FormTextarea, FormFeedback, FormSelect, } from "shards-react"; import Keypair from "keypair"; import {Link} from "react-r...
var gui = require('nw.gui'); var fs = require('fs'); var repList = {}; var repListEn = {}; var repListEmote = {}; var importData = null; nw.Window.get().on('loaded', function(){ if(location.pathname == '/view/replacement.html'){ repList = JSON.parse(localStorage.replaceList); console.log(repList);...
; 'use strict'; $('#menuTextEditor').on('change', function(event){ window.location.href=$(this).val(); }); $('#sideBarForm').click(function(event){ $('.sideBarForm').toggleClass('hide'); }); $('#sideBarLayout').click(function(event){ $('.sideBarLayout').toggleClass('hide'); }); $('#sideBarComponents').c...
import { formatNumber } from 'containers/App/helpers'; import _ from 'lodash'; export const calculates = values => { const { Inmuebles = [], Cuotas = [], PayType = 'Credito' } = values; const cuota = Cuotas.reduce( (acc, item) => acc + parseFloat(item.Amount || 0), 0, ); const total = Inmuebles.redu...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _utils = require('formiojs/utils'); var _utils2 = _interopRequireDefault(_utils); var _get2 = require('lodash/get'); var _get3 = _interopRequireDefault(_get2); var _isFunction2 = require('lodash/isFunction'); var _isFunction3 = _i...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Utils = void 0; var tslib_1 = require("tslib"); var clone_1 = tslib_1.__importDefault(require("lodash/clone")); var randombytes_1 = tslib_1.__importDefault(require("randombytes")); var stellar_base_1 = require("stellar-base"); var erro...
'use strict'; /////////////////////////////////////// // Constructor Functions and the new Operator const Person = function (firstName, birthYear) { // Instance properties this.firstName = firstName; this.birthYear = birthYear; // Never to this! // this.calcAge = function () { // console.log(2037 - this....
import React, { Component } from "react" const mods = { methylation: { color: "blue", offset: 5, }, ubiquitination: { color: "red", offset: 15, }, acetylation: { color: "purple", offset: 25, }, phosphorylation: { color: "green", offset: 35, }, other: { color: "blac...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _bcrypt = require('bcrypt'); var _bcrypt2 = _interopRequireDefault(_bcrypt); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _asyncToGenerator(fn) { return function () { var g...
'use strict'; import crypto from 'crypto'; import request from 'request-promise'; import schedule from 'node-schedule'; import { Generation, Installation, Quickbase, sequelize } from '../sqldb'; import config from '../config/environment'; const ROOT_URL = config.externalSites.rtone.url; const LOGIN_DETAILS = config.e...
//Array of country objects - the computer will randomly select one of these and the player will have to guess it countryArray = [{ "country": "argentina", "outline": "url('assets/images/argentina.png')" }, { "country": "bulgaria", "outline": "url('assets/images/bulgaria.png')" }, { "country"...
import { Button, Card, Col, Form, Input, Row, Select, Table } from 'antd'; import Column from 'antd/lib/table/Column'; import React, {useState, useEffect} from 'react'; import {formatDate} from 'utils/date'; import {couponServices} from 'services/coupon'; import {couponHistoryServices} from 'services/couponHistory'; im...
var request = require("request"); var websocket = require("websocket").client; var fs = require("fs"); var util = require("util"); var username = "USERNAME"; var password = "PASSWORD"; var log_chat = false; var room; var modhash; var announce = 0; var default_config = '{"username":"undefined","password":"<PASSWORD>"...
$(document).ready(function () { /*============================================= BUSCAR PROVEEDOR =============================================*/ $('#txtBuscarProveedor').autocomplete({ delay:1, autofocus:true, dataType: 'JSON', source: function (request, response) { ...
import React, { Component } from 'react'; import firebase from '../firebase/firebase'; import axios from 'axios'; import moment from 'moment'; import swal from 'sweetalert2/dist/sweetalert2.js'; import '../z_sweetAlert/sweetalert2.css'; import iziToast from 'izitoast'; export const BusinessContext = React.crea...
"use strict"; /* * Status Panel Server - <NAME>, 2017 * * Basic Node.js Server that acts as a status panel for various devices I own and things I care about. * * Use this at your own risk. Make sure you replace the secret keys, be smart about security, etc. * * * Who knows what I'll add to this * */ process.title ...
'use strict'; import React from 'react'; import { StyleSheet, View, Text, FlatList, TouchableOpacity, Image, TextInput, ScrollView, TouchableWithoutFeedback, Platform, } from 'react-native'; import TopHeader from '../component/header' import px from '../utils/px' import request ...
/**************************************************************************** * * NAME: PitchShift * VERSION: 1.2 * HOME URL: http://www.dspdimension.com * KNOWN BUGS: none * * SYNOPSIS: Routine for doing pitch shifting while maintaining * duration using the Short Time Fourier Transform. * * DESCRIPTION: The routine ta...
/* global confirm */ const fs = require('fs') const path = require('path') const {remote} = require('electron') const chokidar = require('chokidar') const moment = require('moment') const wordcount = require('wordcount') const Fuse = require('fuse.js') const open = require('open') const InscrybMDE = require('./../node...
const Event = require("../models/event"); const Participant = require("../models/participant"); const Errorhandler = require("../utils/errorHandler"); const { google } = require("googleapis"); const moment = require("moment"); const eventSuggestion = require("../models/event-suggestion"); const eventCont = { // Rend...
var rootApi = "/api/customer/management"; var apiUrl = rootApi + "/template/"; var backUrl = "page/customer/management"; // var uuid = infoStream.uuid ? infoStream.uuid : ""; var panelbar; var grid; var supplyChainCategory; var tradeMethod; var detailTitleTemplate; var detailBodyTemplate; var salesTitleTemplate; var sa...
const path = require('path'); //sketch way to import fetch but fetch is ESM Only Package so this is the only way lmao const fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args)); const Progress = require("node-fetch-progress"); const extract = require('extract-zip') //apps executible fil...
const MONTHS = [ "Early Spring", "Spring", "Late Spring", "Early Summer", "Summer", "Late Summer", "Early Autumn", "Autumn", "Late Autumn", "Early Winter", "Winter", "Late Winter" ]; const HOUR_MS = 50_000; const DAY_MS = 24 * HOUR_MS; const MONTH_LENGTH = 31; const YEAR_LENGTH = MONTHS.length; const ...
/******************************************************************************* * Copyright (c) 2013 IBM Corp. * * 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/li...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = R...
// Consistent with Lattice's IV const AES_IV = [0x6d, 0x79, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64] const ADDR_STR_LEN = 129; // 128-char strings (null terminated) // Decrypted response lengths will be fixed for any given message type. // These are defined in the Lattice sp...
var cash_set_db_model = Ext.define('cash_set_db_model', { extend: 'Ext.data.Model', fields: [ {name: 'id', type: 'int'}, {name: 'name', type: 'string'} ], idProperty: 'id' }); var cash_set_db_store = Ext.create('Ext.data.Store', { model: 'cash_set_db_model', autoLoad: false, ...
var loopback = require('loopback'); var extend = require('util')._extend; var fs = require('fs'); var ncp = require('ncp'); var path = require('path'); var app = require('../app'); var async = require('async'); var spawn = require('child_process').spawn; var waitTillListening = require('strong-wait-till-listening'); v...
/* The Cycle-based Calendar Computation Engine/ CBCCE Character set is UTF-8 The functions of this package performs intercalation computations for calendars that set intercalation elements following regular cycles. This applies to the Milesian calendar, that adds or substracts intercalary days only at end of cycl...
var MandelbrotConfig = (function () { function MandelbrotConfig() { this.BasisScale = 2; this.MaxIterations = 100; } return MandelbrotConfig; })(); var BoundsLR = (function () { function BoundsLR() { } return BoundsLR; })(); var BoundsTB = (function () { function BoundsTB() {...
/** * This function perform creation of object contains only dynamic fieldSets * The dynamic fieldSet retrieved from sections will be added to object with * name as key and activated property as value. * * Example: * { * "jmix:tagged": true, * "jmix:keywords": false, * ... * } * * Note: the acti...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require("react"); var _react2 = _interopRequireDefault(_react); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _extends() { _extends = Object.assign || f...
#!/usr/bin/env node /** * Copyright (c) 2017, <NAME>. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND ...
/* eslint-disable no-undef */ // 'use strict'; // const process = require('process'); // [# lyb-api API] /* $lab:coverage:off$ */ if (process.env.NODE_ENV !== 'production') { // NPM_CONFIG_PRODUCTION is only set in production environment if (!('NPM_CONFIG_PRODUCTION' in process.env)) { // eslint-disable-next-li...
/** * @file Axes Representation * @author <NAME> <<EMAIL>> * @private */ import { Color, Vector3 } from '../../lib/three.es6.js' import { RepresentationRegistry } from '../globals.js' import { defaults } from '../utils.js' import { AxesPicker } from '../utils/picker.js' import { uniformArray, uniformArray3 } from...
var BN = require('bn.js'); // eslint-disable-line no-undef const { assert, expect } = require('chai'); var TestingUtilities = artifacts.require('TestingUtilities'); // eslint-disable-line no-undef var TracToken = artifacts.require('TracToken'); // eslint-disable-line no-undef var Hub = artifacts.require('Hub'); // es...
/*jshint esnext: true */ //Note labyrinth X Y are swapped! //Syntax highlighting? //Use: https://developers.google.com/web/updates/2014/05/Web-Animations-element.animate-is-now-in-Chrome-36 //Save option //a => ASCII code if(localStorage["code"] !== undefined) lab.innerHTML = localStorage["code"]; var p; //pointe...
// Copyright © 2020 The Things Network Foundation, The Things Industries B.V. // // 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 // // Un...
const { join, relative } = require('path') const { random } = require('superb') const glob = require('glob') const spawn = require('cross-spawn') const validate = require('validate-npm-package-name') const rootDir = __dirname module.exports = { prompts: [ { name: 'name', message: 'Project name', ...
/* * Copyright (c) 2021, the hapjs-platform Project Contributors * * SPDX-License-Identifier: Apache-2.0 */ import Node from './node' import Event from './event/event' import { getListener } from '../model' import { renderParents } from '../misc' /** * 仅触发最深层次的事件发生绑定者 * @param node * @param evt {Event} * @par...
/** ***************************************************************************** * Licensed Materials - Property of IBM * (c) Copyright IBM Corporation 2018. All Rights Reserved. * * Note to U.S. Government Users Restricted Rights: * Use, duplication or disclosure restricted by GSA ADP Schedule * Contract with I...
import * as THREE from 'three'; import LayerUpdateState from 'Layer/LayerUpdateState'; import ObjectRemovalHelper from 'Process/ObjectRemovalHelper'; import Layer from 'Layer/Layer'; import Coordinates from 'Core/Geographic/Coordinates'; import Extent from 'Core/Geographic/Extent'; import Label from 'Core/Label'; impor...
var lastrow,lastcell; var sourcedata=[]; var dataRow = {}; var vm = new Vue({ el:'#app-vue', data:{ saveFlag:false, showList:true, }, methods: { saveOrUpdate: function (event) { var save_flag=true; //保存编辑的最后一个单元格 $('#dataGrid').jqGrid("saveCell", lastrow, lastcell); var saveData=[]; //获取选中表格数据 ...
import cloneDeep from 'lodash/cloneDeep'; import isEqual from 'lodash/isEqual'; import u from 'updeep'; import { FIELD_TYPE_BOOLEAN } from '../../../data-types-lib/constants'; import { checkFormLayout } from '../../check-model'; import { isSystemError } from '../../lib'; import { findFieldLayout, getTab } from '....
'use strict'; exports.__esModule = true; var _component = require('./component'); var _component2 = _interopRequireDefault(_component); var _dom = require('./utils/dom.js'); var Dom = _interopRequireWildcard(_dom); var _events = require('./utils/events.js'); var Events = _interopRequireWildcard(_events); var _f...
// @ts-check /** * To handle PrivateIdentifier and Identifier nodes. * @param { {type: string, name?: string;} } node * @returns {string} */ function handleIdentifier(node) { if (node.type === 'PrivateIdentifier' || node.type === 'Identifier') { return node.name; } throw new Error('Cannot extra...
import { ConstantNames } from './trace-constants'; // returns 'critical' if one of the spans has an error tag or currentErrorType was already critical, // returns 'transient' if one of the spans has an ERROR annotation, else // returns currentErrorType export function getErrorType(span, currentErrorType) { if (curre...
/* eslint-env mocha */ var expect = require('chai').expect var stringify = require('../') function testStringify (obj, expected, options) { var actual = stringify(obj, options) if (Array.isArray(expected)) { expected = expected.join('\n') } expect(actual).to.equal(expected) if (expected === undefine...
// utility functions for color conversions // needs conversions.js function sRGB_to_luminance(RGB) { // convert an array of gamma-corrected sRGB values // in the 0.0 to 1.0 range // to linear-light sRGB, then to CIE XYZ // and return luminance (the Y value) var XYZ = lin_sRGB_to_XYZ(lin_sRGB(RGB))...
var snum = 1; /* current slide # (non-zero based index e.g. starting with 1) */ var smax = 1; /* max number of slides */ var incpos = 0; /* current step in slide */ var s6mode = true; /* are we in slide mode (in contrast to outline mode)? */ var defaultView = 'slideshow'; /* slideshow |...
var nconf = require('nconf'); nconf.overrides({ 'always': 'be this value' }); nconf.env().argv(); nconf.file('config/credentials.json'); var server = require('nodebootstrap-server'); var CronJob = require('cron').CronJob; var request = require('request'); var email = require("emailjs"); var emailServer...
'use strict'; var cluster = require('cluster') , zmq = require('zmq') , fs = require('fs-extra'); var NBR_WORKERS = 3; var NBR_FILES = 5; function randomBetween(min, max) { return Math.floor(Math.random() * (max - min) + min); } function randomString() { var source = 'abcdefghijklmnopqrstuvwxyz' , targe...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.CoreAdminRouter = undefined; var _regenerator = require('babel-runtime/regenerator'); var _regenerator2 = _interopRequireDefault(_regenerator); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interop...
/** * Implement Gatsby's SSR (Server Side Rendering) APIs in this file. * * See: https://www.gatsbyjs.org/docs/ssr-apis/ */ // You can delete this file if you're not using it const React = require("react") import {withPrefix} from "gatsby" export const onRenderBody = ({setHeadComponents, setPostBodyComponents}, p...
let mouse = { size: 50, posX: 0, posY: 0, speed: 4, moveX: 0, moveY: 0, controlls: [87, 83, 65, 68], color: [161, 160, 157], alive: true, type: "rodent", nrEaten: 0, }; let rat = { size: 50, posX: 0, posY: 0, speed: 4, moveX: 0, moveY: 0, controll...
import React, {Fragment} from 'react' import ListService from '../../services/list' import AvamecServices from '../../services/avamec' import ActivityState from '../../constants/activity-state' import UnitState from '../../constants/unit-state' import QuestionState from '../../constants/question-state' import Optio...