text
stringlengths
8.5k
48.7k
export const countries = [ { alpha2: "AF", name: "Afghanistan", alpha3: "AFG", numeric: "004" }, { alpha2: "AL", name: "Albania", alpha3: "ALB", numeric: "008" }, { alpha2: "DZ", name: "Algeria", alpha3: "DZA", numeric: "012" }, { alpha2: "AS", name: "American Samoa", alpha3: "ASM", numeric: "016" }, { alpha2...
//ThinkTemplate 用js实现了ThinkPHP的模板引擎。 //用户可以在手机客户端中用ThinkPHP的模板引擎。 //@author luofei614<http://weibo.com/luofei614> // var ThinkTemplate={ tags:['Include','Volist','Foreach','For','Empty','Notempty','Present','Notpresent','Compare','If','Elseif','Else','Swith','Case','Default','Var','Range'], parse:function(tplConte...
import React from 'react'; import ReactDOM from 'react-dom'; import AnsiUp from 'ansi_up'; import debounce from './utils/debounce'; import * as lzString from 'lz-string'; import codemirror from 'codemirror'; import javascript from 'codemirror/mode/javascript/javascript'; import mllike from 'codemirror/mode/mllike/mlli...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s....
$('#confirm-delete').on('show.bs.modal', function(e) { $(this).find('.btn-ok').attr('href', $(e.relatedTarget).data('href')); $(".confirm-delete").on('click',function(event) { if($(this).attr('disabled')) { event.preventDefault(); } $(".confirm-delete").attr("disabled", true); }); }); $('#close_...
/* eslint-disable no-underscore-dangle, new-cap */ import { utils } from '../../utils/utils'; import { Environment as env } from '../../utils/environment'; import { Locale } from '../locale/locale'; import { masks } from './masks'; import { MaskAPI } from './mask-api'; // The name of this component const COMPONENT_NAM...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _reactDom = require('react-dom'); var _reactDom2 = _interopRequireDefault(_reactDom); var _Button = require('react-bootstrap/lib/Button'); var _Button2 =...
// Copyright 2016 <NAME>. All Rights Reserved. // // 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 la...
/* * Copyright 2016 Red Hat 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...
'use strict'; 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 ("value" in descriptor) descriptor.writable = true; Object.definePrope...
import a18n from 'a18n'; import Head from 'next/head'; import dynamic from 'next/dynamic'; import React, { useState, useEffect } from 'react'; import clsx from 'clsx'; import QRCoder from '@components/QrCoder'; import Stream from '@components/Stream'; import UserIDInput from '@components/UserIDInput'; import RoomIDInpu...
import React, {useState, useMemo, useEffect} from 'react'; import './App.scss'; import Container from '@mui/material/Container'; import Button from '@mui/material/Button'; import FormControlLabel from '@mui/material/FormControlLabel'; import Checkbox from '@mui/material/Checkbox'; import Switch from '@mui/material/Swit...
let DOM2Aframe = {}; DOM2Aframe.pixels_per_unit = 1; var pixels_in_one_unit, pixel_text_size; //Standard z index for the element container var z_index = -20; //The depth at which div's start to get placed var div_depth = -0.2; //Width of the body var body_width; var update_all = true; var a_elements = new Array();...
/*! * Mvc.Lookup 3.1.1 * https://github.com/NonFactors/MVC6.Lookup * * Copyright © NonFactors * * Licensed under the terms of the MIT License * http://www.opensource.org/licenses/mit-license.php */ var MvcLookupFilter = (function () { function MvcLookupFilter(lookup) { var data = lookup.group.datas...
/* Main Process */ "use strict"; // Global Variable var map; // leaflet map object var Layers = {}; // Layer Status,geojson,svglayer var Conf = {}; // Config Praams const LANG = (window.navigator.userLanguage || window.navigator.language || window.navigator.browserLanguage).substr(0, 2) == "ja" ? "ja" : "en"; co...
var map; var map_id = 0; var position; var lastPosition; var stations = {}; var station_markers = {}; var labelled_markers = {}; var timeoutId; var coverageOverlay; var start = '2018-01-01'; var end = '2100-01-01'; var lasthash = ''; var maxTimeout, minTimeout; var processingUrl = true; var defaultPoint...
'use strict'; var __importStar = (this && this.__importStar) || function(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; result['default'] = mod; return result; }; Objec...
const uniqid = require("uniqid"); const IRIManager = require("../../src/managers/IRIManager.js"); const xmiparser = require('../../src/xmi_util/XMIParser.js'); const ShExCardinality = require("../../src/shex_util/shexgen/ShExCardinality.js"); const ShapeManager = require("../managers/ShapeManager.js"); let XMISources =...
/* jshint -W097 */ /* jshint strict: false */ /* jslint node: true */ 'use strict'; // you have to require the utils module and call adapter function const utils = require('@iobroker/adapter-core'); // Get common adapter utils const Parses = require('sensors'); const MySensors = require('./lib/mys...
import '../env' import knex from 'knex' import { Model } from 'objection' import Setting from './models/Setting' import Place from './models/Place' import User from './models/User' import Trend from './models/Trend' import Search from './models/Search' import Tweet from './models/Tweet' import TweetHashtag from './mod...
import { isNumber, isObject, isString } from "vega-util"; import { html, render } from "lit"; import { findEncodedFields, findUniqueViewNames, } from "@genome-spy/core/view/viewUtils"; import ContainerView from "@genome-spy/core/view/containerView"; import { interpolateLocSizes, locSizeEncloses, map...
"use strict"; /* Loading core modules */ var glob = require('glob'), loop = require('./util-looper'), path = require('path'), file = require('fs-extra'), oses = require('os'), bash = require('child_process'), semv = require('semver'), satisfy = semv.satisfies, colr...
const joint = require('jointjs'); let graph, points, arcs, paper, cells, thickness, center_radius, paper_size; /** Sets up the paper and graph (jointjs) and draws the background. @param{int} size Diameter of the diagram. @param{Array} dimension_names Names of the dimensions. @param{A...
/* jshint -W097 */ // jshint strict:true /*jslint node: true */ /*jslint esversion: 6 */ 'use strict'; /** * * Daikin adapter */ // you have to require the utils module and call adapter function const utils = require('@iobroker/adapter-core'); // Get common adapter utils let adapter; var DaikinController = require(...
'use strict'; // Using 0 instead of "off" so that the our tests can assert that only rules // that prettier actually conflicts are marked as "prettier". const PRETTIER = 0; // Rules that should be evaluated once we enable modules const ES_MODULES = 'off'; module.exports = { env: { node: true, es6: true, ...
var argi_JsonArray =[]; var argi_group_sel; var earnPay=[]; (function ($) { /* $("#addFarmerForm input[name='argbirth']").datepicker({ format: "dd-mm-yyyy", language: "th", orientation: "auto left", autoclose: true });*/ var d = new Date(); var year = d.getFull...
document.body.style.zoom = 0.80 svg = d3.select("svg"), width = +svg.attr("width"), height = +svg.attr("height"), margin = {top: 30, right: 20, bottom: 80, left: 70}; var arregloCampos=[]; //var datos; function dAngular(dato){ var arreglo_campos=[]; console.log("de Angular a D3, en D3 dato:...
// Functions to save and load the map "use strict"; // download map as SVG or PNG file function saveAsImage(type) { console.time("saveAsImage"); // clone svg const cloneEl = document.getElementById("map").cloneNode(true); cloneEl.id = "fantasyMap"; document.getElementsByTagName("body")[0].appendChild(cloneE...
/*Script de registros de cada producto*/ /* funcion de Abrir la registroJitomate */ function AbrirJITOMATE() { document.getElementById("OpenJITOMATE").style.display="block"; document.getElementById("InfoJITOMATE").style.display="block"; } /* funcion de cerrar la RegistroJitomate */ fu...
// Copyright 2015-present 650 Industries. All rights reserved. 'use strict'; // Set EXPO_VIEW_DIR to universe/exponent to test locally Object.defineProperty(exports, "__esModule", { value: true }); exports.prepareDetachedBuildAsync = exports.detachIOSAsync = exports.detachAsync = undefined; let detachAsync = expor...
function str2Obj(str){ var data = {}; kv = str.split('&'); for(i in kv){ v = kv[i].split('='); data[v[0]] = v[1]; } return data; } function phpPost(method, version, args,callback){ var loadT = layer.msg('Retrieving...', { icon: 16, time: 0, shade: 0.3 }); var req_data = {}...
import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { cx, isValidDates } from '../utils.js'; import { LOCALE } from '../locale.js'; import { WEEK_NUMBER, PREV_TRANSITION, NEXT_TRANSITION, SELECTOR_YEAR_SET_NUMBER, ...
const dropArea = document.getElementById("drop-area"); const outputElement = document.getElementsByClassName("output")[0]; const inputElement = document.getElementsByClassName("input")[0]; const errorElement = document.getElementsByClassName("error")[0]; const menu = document.getElementsByClassName("menu")[0]; const se...
const localstorage = require('store') const IPFS = require('ipfs') const OrbitDB = require('orbit-db') const Pubsub = require('orbit-db-pubsub') // const OrbitDBCacheProxy = require('orbit-db-cache-postmsg-proxy').Client // const { createProxyClient } = require('ipfs-postmsg-proxy') const AccessControllers = require('o...
/* Main class for managing oreqm xml data */ "use strict"; import ReqM2Specobjects from './reqm2oreqm.js' import get_color from './color.js' import Doctype from './doctypes.js' var accepted_safety_class_links_re = [ /^\w+:>\w+:$/, // no safetyclass -> no safetyclass /^\w+:QM>\w+:$/, // QM -> no ...
/* eslint-disable no-use-before-define */ import * as utilities from './utilities.js'; import PanelBuilder from './panelBuilder.js'; import LanguageController from './languageController.js'; import showSnack from './snackbar.js'; // short hand notation to stop repetitive verbose code to stay the same thing over and ov...
const VERTEX_SHADER_SRC = `#version 100 uniform mat4 u_modelTransform; uniform mat4 u_view; uniform mat4 u_projection; attribute vec4 a_position; attribute vec4 a_color; varying vec4 v_color; void main() { v_color = a_color; gl_Position = u_projection * u_view * u_mo...
const Discord = require('discord.js'); var fs = require('fs'); var jsonfile = require('jsonfile'); var request = require('request'); var util = require('./bot_modules/utilities.js'); //var cmd = require('./bot_modules/commands.js'); //GLOBALS const bot = new Discord.Client(); const token = '<KEY>'; const twitchToken =...
if (!global.framework_utils) global.framework_utils = require('./utils'); const D = '__'; function Message() {} Message.prototype = { get user() { return this.controller ? this.controller.user : null; }, get session() { return this.controller ? this.controller.session : null; }, get sessionid() { retu...
import GL from '../constants'; import Resource from './resource'; import Texture2D from './texture-2d'; import Renderbuffer from './renderbuffer'; import Buffer from './buffer'; import { clear, clearBuffer } from './clear'; import { withParameters } from '../webgl-context'; import { getFeatures } from '../webgl-conte...
var gameArea = document.getElementById('gameArea'); var widthX = 1280; var heightY = 700; window.onload = function(){ Crafty.init(widthX, heightY, gameArea); Crafty.scene('WelcomeScene'); } // end of onload Crafty.scene('WelcomeScene', function () { document.getElementById('points').innerHTM...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); /** * Key a method on your object with this symbol and you can get special * formatting for that value! See ShellStringText, ShellStringUnquoted, or * shellStringSemicolon for examples. * @ignore */ const formatSymbol = Symbol('format')...
/*global env: true */ var template = require('jsdoc/template'), fs = require('jsdoc/fs'), path = require('jsdoc/path'), taffy = require('taffydb').taffy, handle = require('jsdoc/util/error').handle, helper = require('jsdoc/util/templateHelper'), htmlsafe = helper.htmlsafe, linkto = helper.li...
/* Dasca, an idle game by @CylonicRaider (github.com/CylonicRaider/dasca) * Abstract engine for JS-based idle games */ "use strict"; /* *** Scheduler *** * * Runs callbacks at a defined rate. */ /* Construct a new scheduler * * Callbacks are run in "iterations". Scheduler attempts to have the * iterations run...
var monthlyReport = { // Complete on validation }; const CUBICMETER_GALLON_RATIO = 264.172; $(document).ready(function() { let wizardReport = $('#wizardMonthlyReport'); let wizardForm = $('#wizardMonthlyReport form'); // Enable hours and days logging (step 1) let checkboxActiveService = $('#checkbox-active...
import $ from 'jquery'; import {ItemView, LayoutView} from 'backbone.marionette'; import TooltipView from 'views/tooltip'; import InsertMediaView from 'views/insert.media'; import VideoPickerView from 'views/picker.video'; import SlideshowPickerView from 'views/picker.slideshow'; import EmbedPickerView from 'views/pick...
/* * Copyright 2009-2010 by the Vesper team, see AUTHORS. * Dual licenced under the GPL or Apache2 licences, see LICENSE. */ var konsole = { log : function() { if (window.console && window.console.log) window.console.log.apply(window.console, Array.prototype.slice.call(arguments)); }, ass...
import axios from 'axios' import * as types from '../mutation-types' import Form from 'vform' import { getLeadEscalationNotificationSelection } from '~/helpers'; import moment, { now } from 'moment'; export const state = { organisation: null, organisationLoading: true, orgLocation: null, organisations: [], inac...
import CUGPortal from '../../../js/portal-setup.js'; let cugPortal = new CUGPortal(); cugPortal.updateAttribute('#favicon', 'https://static.hotelsforhope.com/portals/child-portals/cug/' + cugPortal.site_id + '/images/favicon.ico', 'href'); cugPortal.updateText('.lblNearbyCities', 'Search By Nearby Cities'); cugPorta...
#!/usr/bin/env node /* Zenbot 4 Genetic Backtester * <NAME> <<EMAIL>> * 07/01/2017 * * Example: ./darwin.js --selector="bitfinex.ETH-USD" --days="10" --currency_capital="5000" --use_strategies="all | macd,trend_ema,etc" --population="101" --population_data="simulations/generation_data_NUMBERS" * Params: * --use_...
/* |-------------------------------------------------------------------------- Quotation Booking - Multi Step Quotation Booking Request PHP Form For Cleaning Service Script Main JS Author: MGScoder Author URL: https://codecanyon.net/user/mgscoder |---------------------------------------------------------------------...
import ErizoConnectionManager from './ErizoConnectionManager'; import ConnectionHelpers from './utils/ConnectionHelpers'; import { EventDispatcher, StreamEvent, RoomEvent } from './Events'; import { Socket } from './Socket'; import Stream from './Stream'; import ErizoMap from './utils/ErizoMap'; import Base64 from './u...
/* eslint-disable import/no-webpack-loader-syntax, import/no-unresolved */ import debug from 'debug'; import moment from 'moment'; import { size, each, includes, isEqual } from 'lodash'; import { fromJS, is as isDeepEqual, List as makeList, Map as makeMap, OrderedMap as makeOrderedMap, } from 'immutable'; im...
/* Imports from basic requirements of this componet */ import React from 'react'; import { fromJS } from 'immutable'; import objectMerge from 'object-merge'; import PropTypes from 'prop-types'; /* Imports from subcomponents of this componet */ import defaultComponentStyle from "./styles.js"; import EmojiList from ...
/* eslint-disable no-underscore-dangle */ import * as debug from '../../utils/debug'; import { utils } from '../../utils/utils'; import { Locale } from '../locale/locale'; // jQuery Components import '../button/button.jquery'; import '../icons/icons.jquery'; import '../popupmenu/popupmenu.jquery'; import '../tooltip/t...
'use strict'; /** * translate ast to js function code */ var XTemplateRuntime = require('./runtime'); var parser = require('./compiler/parser'); parser.yy = require('./compiler/ast'); var util = XTemplateRuntime.util, nativeCommands = XTemplateRuntime.nativeCommands, nativeUtils = XTemplateRuntime.utils; v...
// load in head necessary static document.write('<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/mdui@0.4.3/dist/css/mdui.min.css">'); document.write('<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/plyr/3.6.2/plyr.css">'); // markdown support document.write('<script src="//cdn.jsdelivr.net/npm/markdo...
function openClose(theID) { if(document.getElementById(theID).style.display == "block") { document.getElementById(theID).style.display = "none" } else { document.getElementById(theID).style.display = "block" } } function openMenu(theID) { document.getElementById(theID).sty...
import { onSection } from './footer.js' import { localize, localizeWith } from './l10n.js' import { materialInput, ripple } from './material.js' import { savedClubs, saveSavedClubs } from './saved-clubs.js' import { ajax, cookie, isAppDesign, isOnline, logError, now, showDialog, shuffleInPlace, THEME_...
/** * 通用树操作 Q.Tree * @author Q * @version 1.0 */ var BindAsEventHandler = function(object, func) { return function(evt) { return func.call(object, (evt || window.event)); }; }; var TREEITEM_NULL = -1; // 不存在的节点 var TREEITEM_NOSELECTED = -2; // 没有任何节点被选择 var TREEITEM_DRAG_NONE = 0; var TREEITEM_D...
var util = require("util"); var PushBullet = require("pushbullet"); var BaseTrigger = require("./baseTrigger.js").BaseTrigger; var fs = require('fs'); var _ =require("lodash"); var nodemailer = require('nodemailer'); var moment = require('moment'); var pushover = require('pushover-notifications'); var fnd = require('fi...
$(window).load(function() { "use strict"; $(".loader").fadeOut(500, function() { $("#main").animate({ opacity: "1" },function(){contanimshow();}); }); }); function initMonolit() { "use strict"; // Owl carousel ------------------ var ss = $(".single-slider"), dlt2 = ss.d...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.v...
/* * session.js: Handling for the session resource. * */ // Module Dependencies var request = require('request'); var iutil = require('@islandio/util'); var Step = require('step'); var _ = require('underscore'); var _s = require('underscore.string'); var profiles = require('@islandio/collections').profiles; var app...
// U+1D400 - U+1D433 const BOLD = { a: '𝐚', b: '𝐛', c: '𝐜', d: '𝐝', e: '𝐞', f: '𝐟', g: '𝐠', h: '𝐡', i: '𝐢', j: '𝐣', k: '𝐤', l: '𝐥', m: '𝐦', n: '𝐧', o: '𝐨', p: '𝐩', q: '𝐪', r: '𝐫', s: '𝐬', t: '𝐭', u: '𝐮', v: '𝐯', w: '𝐰', x: '𝐱', y: '𝐲', z: '𝐳', A: '𝐀', B: '𝐁', C: '𝐂', D: '𝐃', E: '𝐄...
/* global describe it expect */ const Validator = require('../../lib/class/Validator') const { Field, THIS } = require('field-creator') const Sequelize = require('sequelize') const express = require('express') const request = require('request') const PARAMS = { dialect : 'postgres', lang : 'es', logging :...
'use strict'; const MAX_BAN_REASON_LENGTH = 300; const MAX_BAN_MESSAGE_LENGTH = 1000; function modbutton () { const self = new TB.Module('Mod Button'); self.shortname = 'ModButton'; self.settings['enabled']['default'] = true; self.register_setting('savedSubs', { type: 'sublist', defa...
var express = require('express'); var router = express.Router(); module.exports = router; var filters = require('../constants/filters'); var Promise = require('bluebird'); var projectDB = require('../db/project'); var anonUserDB = require('../db/anonUser'); var resultDB = require('../db/results'); var dynamicDB = requi...
var marketCapCentrals = $("#marketCapCentral").slider({id: "mcc", scale: 'logarithmic', min: 0, max: 1000, range: true, tooltip: "hide", value: [0, 1000]}); var marketCapSuppliers = $("#marketCapSupplier").slider({id: "mcs", scale: 'logarithmic', min: 0, max: 1000, range: true, tooltip: "hide", value: [0, 1000]}); var ...
/** @typedef {import('../../types-inner').IRefCtx} ICtx */ import { MODULE_GLOBAL, ERR, CCSYNC_KEY, SET_STATE, SET_MODULE_STATE, FORCE_UPDATE, CC_HOOK, AUTO_VAL, } from '../../support/constant'; import ccContext from '../../cc-context'; import { mapIns } from '../../cc-context/wakey-ukey-map'; import * as util from...
const rp = require('request-promise'); const api = require('./api');//有日志功能 const axios = require('axios-https-proxy-fix'); const MD5 = require('js-md5'); const sha256 = require('js-sha256'); const dayjs = require('dayjs'); const config = require('../config'); const schedule = require('node-schedule'); //const PROXY_C...
import net from 'net' import D from 'debug' import zmq from 'zeromq' import z85 from 'z85' import Rx from 'rxjs' import uuid from 'uuid' import Promise from 'bluebird' import EventEmitter from 'eventemitter3' import { isString, isInteger, isArray, isPlainObject, each, every, pull, max, tail } from 'lo...
import BRICK_ABI from './HabitatAbi.js'; import EXECUTION_PROXY_ABI from './ExecutionProxyAbi.js'; import TYPED_DATA from './typedData.js'; import { getConfig, getSigner, getProvider, getErc20, getToken, getTokenSymbol, walletIsConnected, secondsToString, renderAddress, getCache, setCache, RPC_C...
// ng-annotate-main.js // MIT licensed, see LICENSE file // Copyright (c) 2013-2016 <NAME> <<EMAIL>> "use strict"; const is = require("simple-is"); const assert = require("assert"); const ngInject = require("./nginject"); const scopeTools = require("./scopetools"); // const optionalAngularDashboardFramework = require(...
/* * A class with helper functions which operate on change streams. The class maintains a list of * opened cursors and kills them on cleanup. */ load("jstests/libs/fixture_helpers.js"); // For FixtureHelpers. /** * Enumeration of the possible types of change streams. */ const ChangeStreamWatchMode = Object.free...
const { hasOwnProperty } = Object.prototype; function paramsMap(options, maps = {}) { const params = {}; Object.keys(options).forEach((key) => { let newKey = key; if (hasOwnProperty.call(maps, key)) { newKey = maps[key]; } params[newKey] = options[key]; }); return params; } function ...
/** * @file Synchronized WebSocket repeater to native socket * jtWebSockRepeater.js * @module ./jtWebSockRepeater * @version 2.12.200305a * @author <NAME> <<EMAIL>> * @license MIT (see 'LICENSE' file) * @copyright (C) 2019-2020 jtLab, Hokkaido Information University */ // @ToDo can not connect to WiFi AP ...
// globals var docObject = []; var collDependency = []; var collection; var draggableDiv = document.getElementById("pick-option"); var isDown = false; // Object.filter = function (obj, ignore, invert) { // if (ignore === undefined) { // return obj; // } // invert = invert || false; // var not = function(conditio...
var express = require('express'); var router = express.Router(); var SparqlClient = require('sparql-client'); var fs = require('fs'); var ContentNegotiation = require('./helpers/ContentNegotiation').ContentNegotiation; var helperCN = new ContentNegotiation(); var commons = require('./helpers/commons').commons; var h...
import Vue from 'vue' import App from './App.vue' import axios from 'axios' import Router from 'vue-router' import Dashboard from "@/components/Dashboard"; import OTAUpdate from "@/components/OTAUpdate"; import VueProgressBar from 'vue-progressbar' import Vuex from 'vuex'; import VueMoment from 'vue-moment' import Json...
import is from 'is_js'; import Color from '../helpers/Color'; import 'format-unicorn'; import DEFAULTS from './DonutPieChart.Defaults'; import {requestAnimationFrameHookInstance} from '../helpers/RequestAnimationFrameHook'; const svgNS = "http://www.w3.org/2000/svg"; /** * Class intended to build a canvas with the ...
/// <reference path="JSLINQ.js" /> ; (function ($) { /* des: 从URL中解析出SKU! */ function parseSkuFromUrl() { var sku = location.hash.split('#', 2)[1]; return sku == undefined ? "" : sku; } /* des:返回选择器默认的SKU! main =>从URL中获取,没有则取商品集合第一个 other=>从商品集合中取第一个 prm: ...
var myFacets; $(function(){ function calculePoinds(){ var poinds = $("#colis-poinds-prevu").val(); var assurence = $("#colis-assurance").val(); var depot_mode = $("#depot-mode").val(); // vo: 普通客户; v1: 普通会员; v2: 白金会员 var vip = $('table.recommand').attr('id'); $r = poinds.substr(0, poinds.indexOf...
var rpcCall; var currentUri; var currentState = {"id": null, history: [], future: []}; var optionArr = {}; var remainingRefreshTimerStart = 30; var remainingRefreshTimer = 30; var timeSinceRefreshTimer = 0; var statusColumnsPerRow = 10; function debug(msg) { if (window.console && window.console.log) window...
/* eslint-env browser */ // NOTE: gulpfile.js's 'add-ons' task copies this file, altering the final line, to /demo/build/add-ons/, along with a minified version. Both files are eventually deployed to http://openfin.github.io/fin-hypergrid/add-ons/. // NOTE: This page generates 2 jsdoc pages, one for the `GroupedHeade...
///区域表单 cityareaname=new Array(35); cityareacode=new Array(35); function first(preP,preC,formname,selectP,selectC) { a=0; if (selectP=='01') { a=1;tempoption=new Option('北京','北京',false,true); } else { tempoption=new Option('北京','北京'); } eval('document.'+formname+'.'+preP+'.options[1]=tempoption;'); cityare...
"use strict"; // This Breath is a minimal tool for breathing exercises and breath visualization. // There are two source files - the TypeScript source is `app.ts` // and the compiled JavaScript is `app.js`, which is included in `index.html`. // The code isn't great - only a little thought went into organizing it, // an...
import interpretGS1scan from "../utils/interpretGS1scan/interpretGS1scan.js"; import tm from "../../tm.js"; const {WebcController} = WebCardinal.controllers; const {constants, THREE, PLCameraConfig} = window.Native.Camera; const api = "https://api-pl.truemed.cloud/v1.0"; const apiKey = "<API-KEY-HERE>"; const installI...
let socket = io.connect(); // #Max To hide first div and show second let showAndHide = function(id1, id2) { $(`#${id1}`).hide() $(`#${id2}`).show() // console.log(`hiding:${id1} showing:${id2}`) } function getRandNum() { return (Math.floor(Math.random() * (99999 - 10000 + 1) + 10000)); } //Code compa...
let query = `query { artist(id: "mark-rothko") { name shows { test } artworks (size: 2) { id imageUrl } } }` let query2 = `query { artist { name shows { id } artworks(id: 'name') { id imageUrl } } }` let startIndexFinder = (varStr, v...
//var sizeList = [250, 250, 200, 200]; //var cssList = ["/css/imageter.hrd.css"]; var appUrl=""; var scriptUrlSub = "iter.hrdn.js"; var scriptUrlHeader=""; var allUrlHeader=""; var ad; /**** * load js ***/ /***************************************************** *Config **********************************...
/** * @license * Copyright (c) 2016 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 f...
// Functions as shown below have been developed based of Numeric or // taken from Numeric (https://github.com/sloisel/numeric). See the // licence in ./rescources/Numeric-LICENCE.md /** * Multiple Linear Regression * @access public * @function * @param {array[]} input_raw Array of x,y value pairs arrays [ [ [x1,y1...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.runTest = void 0; const fs = require("fs"); const get = require('lodash.get'); const path = require("path"); const pathUtil = require("path"); const debugModule = require("debug"); const chalk_1 = require("chalk"); const snyk_module_1 ...
//------------------------------------------------------------------------------- /* Copyright (C) 2021 <NAME>, ETH Zürich, Information Security Group This file is part of CookieBlock. Released under the MIT License, see included LICENSE file. */ //---------------------------------------------------------------------...
import LocaleSettings from "./locale/en" export const DateTimeKind = { unspecified: 0, utc: 1, local: 2, } export const DateTimeMode = { dateTime: 0, date: 1, time: 2, } export default class DateTime { static msDateRe = /\/Date\((-?\d+)\)\// static isoDateRe = /^(\d{4})(?:-?W(\d+)(?:-...
const _ = require('lodash'); const log = require('log4js').getLogger('lib/default-conditions-util'); const { ObjectID } = require('mongodb'); const { EJSON } = require('bson'); const Promise = require('bluebird'); const { JSONPath } = require('jsonpath-plus'); const { MONGO, getDocValueForExpression, isValidObjectId } ...
const config = require('./config'); const client = new (require('./bt/client')) const spider = new (require('./bt/spider'))(client) const fs = require('fs'); const {single, pool} = require('./mysql') const getPeersStatisticUDP = require('./bt/udp-tracker-request') const crypto = require('crypto') const P2PServer = requ...
import React, { useState, useEffect, Fragment } from "react"; //import { render } from 'react-dom' import { ResponsiveLine } from "@nivo/line"; import { ResponsiveBar } from "@nivo/bar"; import Paper from "@material-ui/core/Paper"; import store from "../../store"; import { FormatLine, FormatBar } from "./formatData"; i...
import React, { Component } from 'react'; import { Text, Button, ScrollView, Image, View, Alert } from 'react-native'; import Countly from 'countly-sdk-react-native-bridge'; var successCodes = [100, 101, 200, 201, 202, 205, 300, 301, 303, 305]; var failureCodes = [400, 402, 405, 408, 500, 501, 502, 505]; class Exampl...