text
stringlengths
3.22k
29.5k
import React, { Component } from "react"; import Grid from "@material-ui/core/Grid"; import { withStyles } from "@material-ui/styles"; import axios from "axios"; import Select from "react-select"; import ReactMde from "../../minitaskPage/ReactMde"; import CodeEditor from "./CodeEditor"; import "./createminitaskbody.css...
import { Object3D, PerspectiveCamera, Scene, REVISION, Matrix4, Vector3 } from '../three.module.js'; class CSS3DObject extends Object3D { constructor( element ) { super(); this.element = element; this.element.style.position = 'absolute'; this.addEventListener(...
"use strict"; const Squadmates = require("./Squadmates.js"); const Normandy = require("./Normandy.js"); const theApproachArmorCheck = newNormandy => { // Heavy Ship Armor is from Jacob who is always an active squad member, // no need to check if active if (newNormandy.isArmorUpgraded) { return "No...
"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...
$(document).ready(function() { loadDatatable(); $(document).on('click', '.cancel' ,function () { DOM.setRequestAlert({ text: 'No se han guardado los cambios. ¿Deseas salir y descartar los cambios?', confirmButtonText: 'Salir', isCancel: true, returnUrl: 'invoices' }); }); $(document).on('click', '...
const BasicClient = require("../basic-client"); const Ticker = require("../ticker"); const Trade = require("../trade"); const Level2Point = require("../level2-point"); const Level2Snapshot = require("../level2-snapshot"); class UpbitClient extends BasicClient { constructor({ wssPath = "wss://api.upbit.com/websocket/...
var blessed = require('blessed') , contrib = require('../') , screen = blessed.screen() , colors = require('colors/safe'); var grid = new contrib.grid({rows: 12, cols: 5, screen: screen}) var page_size = 5; var cur_page_book = 0; var books = []; for (var i=0; i<5; ++i) { var book = grid.set(0,i,8,1,contrib.b...
var canvas = document.getElementById("game"); var host = window.document.location.host.replace(/:.*/, ''); var client = new Colyseus.Client(location.protocol.replace("http", "ws") + host + (location.port ? ':' + location.port : '')); var currentRoom = ''; client.onOpen.add(function() { document.querySelector("#game-...
/** * @author <NAME> */ $(document).ready(function() { configure_edit(); disable_edit(); if (window.location.search.match('edit')) { toggle_edit(); if (window.location.search.match('editrelforeign')) { $('#relationsforeign').addClass('in'); ...
/** * Copyright (c) 2017, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or * https://opensource.org/licenses/BSD-3-Clause */ /** * cache/models/utils.js */ 'use strict'; // eslint-disable-line strict const ...
/** * 初始化作业对象详情对话框 */ var Xgt_sub_task_objInfoDlg = { xgt_sub_task_objInfoData : {}, zTreeInstance : null }; /** * 清除数据 */ Xgt_sub_task_objInfoDlg.clearData = function() { this.xgt_sub_task_objInfoData = {}; } /** * 设置对话框中的数据 * * @param key 数据的名称 * @param val 数据的具体值 */ Xgt_sub_task_objInfoDlg.set...
/** RoPro (https://ropro.io) v1.1 RoPro was wholly designed and coded by: ,------. ,--. ,-----.,------. | .-. \ | |' .--./| .---' | | \ :| || | | `--, | '--' /| |' '--'\| `---. `-------' `--' `-----'`------' Contact me ...
import React, { useState, useEffect } from 'react'; import { Grid, Input, InputAdornment, Typography, Table, TableBody, TableCell, TableContainer, TablePagination, TableFooter, TableHead, TableRow, Paper, Chip, Button, IconButton, Tabs, Tab, Box, Snackbar, Select, MenuItem, ...
import * as utils from '../src/utils.js'; import { registerBidder } from '../src/adapters/bidderFactory.js'; import { config } from '../src/config.js'; import { BANNER, VIDEO } from '../src/mediaTypes.js'; import { INSTREAM as VIDEO_INSTREAM } from '../src/video.js'; const { parseSizesInput, getKeys, logError, deepAcce...
const fs = require('fs'); const path = require('path'); const async = require('async'); const roundTo = require('round-to'); let w1Directory = '/sys/bus/w1/devices/w1_bus_master1'; const W1_MASTER = 'w1_master_slaves'; const DEFAULT_DIGITS = 3; const TEMPERATURE_NOT_FOUND_VALUE = null; function setW1Directory(deviceP...
import * as filesize from 'filesize'; import {openEditor} from '../actions/files.js'; import { showErrorPrompt, WRITE_PERMISSION_ERROR, } from '../actions/app.js'; export const START_OPEN = 'START_OPEN'; export const OPEN_ENTRIES = 'OPEN_ENTRIES'; export const CLOSE_HANDLE = 'CLOSE_HANDLE'; export const REMOVE_ENT...
/* * jQuery Highlight plugin * * Based on highlight v3 by <NAME> * http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html * * Code a little bit refactored and cleaned (in my humble opinion). * Most important changes: * - has an option to highlight only enti...
const CANVAS_FONT_SIZE = 16; const ANIMATION_ALT_TIME = 0.08; // Redirect to homepage if accessed webpage directly if (!document.referrer.includes('localhost') && !document.referrer.includes('koala.town')) { window.location.replace('/'); } let gameState = { players: [], }; window.addEventListener('load', functio...
import House from "./House" import NotesInventory from './notesInventory' import UIConfig from "./UIConfig" import Indicators from "./indicators" const DAY_LENGTH = 1.5 * 60 * 1000; const DAY_PART = DAY_LENGTH / 3; export default class Player { constructor(game, allFurnitures, house) { this.game = game ...
const TuyaAccessory = require('../lib/TuyaAccessory'); const homebridgeLib = require('homebridge-lib'); const fakegatoHistory = require('fakegato-history'); const fs = require('fs'); const path = require('path'); const debug = require('debug')('TuyaOutlet'); const kHour = 60 * 60 * 1000; class TuyaOutlet extends Tuy...
const THREE = require('three') const { Vector3, Matrix3 } = THREE; export default function OBB() { let position = new Vector3(); let orientation = new Matrix3(); let halfExtents = new Vector3(); let max = new Vector3(); let min = new Vector3(); const INV_SQRT_TWO = 0.707106781; /** * * @param {Array} ver...
'use strict'; const { MAX_MESSAGE_SIZE } = require('../constants'); const crypto = require('crypto'); const monitor = require('fast-json-patch'); const pointer = require('json-pointer'); const EventEmitter = require('events').EventEmitter; /** * The {@link State} is the core of most {@link User}-facing interactio...
// 参考: https://qiita.com/mhagita/items/6c7d73932d9a207eb94d navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia; const canvas = document.getElementById('wave_canvas'); const fft_canvas = document.getElementById('fft_canvas'); const container = document.getEleme...
// @ts-check // eslint-env browser,es2017 /// <reference lib="dom" /> class Timer { constructor() { this.start = performance.now(); } elapsedMS() { return performance.now() - this.start; } } /** * Logic for an abstract RSVP reader, does not contain UI elements. * * States: * * * paused (initial)...
const OPPONENT_USER = -1; const OPPONENT_CURRENT_AI = 0; let g_settings = { style :{ titleStyleH1 : { fontFamily: 'Arial', fontSize: 64, color: '#ffff00' }, titleStyleH2 : { fontFamily: 'Arial', fontSize: 32, color: '#ffffff' }, textStyle1 : { fontFamily: 'Arial', fontSize: 16, color: '#ff...
import React from 'react'; import PropTypes from 'prop-types'; import styled, { keyframes } from 'styled-components'; import { Link } from 'react-router-dom'; import Avatar from 'material-ui/Avatar'; import FontIcon from 'material-ui/FontIcon'; import RaisedButton from 'material-ui/RaisedButton'; import { withRouter } ...
import { get } from 'svelte/store'; import { SECS_RESPONSE_TIMEOUT, MAX_DEVICE_FAIL_COUNT, curDevice, deviceList, msgTitle, msgDesc, curTimeSecs } from './globals.js'; // Device Query/Responses: const queryStr_GetInfo = "?"; // returns device info in JSON format const respStr_Rebooted = "...
// NAV BAR $(document).ready(function () { $(".fa-bars").click(function () { $(".main-nav-phone").toggle("slide"); $(".support-nav").hide(500); $(".container").show(500); }); $(".fa-cog").click(function () { $(".fa-cog").toggleClass("clicked"); $(".support-nav").t...
/** * Created by admin on 2018/4/12. 未使用 */ 'use strict' //设置为严格模式 const crypto = require('crypto'), //引入加密模块 https = require('https'), //引入 htts 模块 util = require('util'), //引入 util 工具包 fs = require('fs'), //引入 fs 模块 urltil = require('url'),//引入 url 模块 accessTokenJson = require('./access_token'...
"use strict"; // MIT License // Copyright (c) 2020 <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, mo...
/*global casper: false, __utils__: false */ var host = casper.cli.get( "host" ) || "localhost", port = casper.cli.get( "port" ) || 80, path = casper.cli.get( "path" ) || "", links = [], pageLinks = [], errors = [], ignorecount = 0, notFound = [], resources = [], mouse = require("mouse").create(casper); if( p...
$(document).ready(function () { if ($("[id$=hdIsPostBack]").val() == "1") { $("#tbOrder").hide(); $("#tbBuyed").show(); $("#tbBuyed").find(".total-quantity").html($("[id$=hdTotalQuantiti]").val()); $("#tbBuyed").find(".total-price").html($("[id$=hdTotalAmount]").val()); ...
/* Copyright (C) 2016 NooBaa */ import template from './managed-form.html'; import { isFunction, mapValues, noop, pick } from 'utils/core-utils'; import { getFormValues, isFormValid, isFormDirty } from 'utils/form-utils'; import { get } from 'rx-extensions'; import ko from 'knockout'; import { state$, action$ } from '...
import { metadataKeys } from '@vuu-ui/utils'; import { SortType } from '../constants'; export const getHorizontalScrollbarHeight = (columnGroups) => columnGroups ? columnGroups.some(({ width, contentWidth }) => width < contentWidth) ? 15 : 0 : 0; export function getColumnGroup({ columnGroups }, ...
import React, { Fragment, PureComponent } from 'react'; import { Card, Button, Form, Col, Row, DatePicker, Input, Select, message } from 'antd'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'; import FooterToolbar from '@/components/FooterToolbar'; import storage from '@/utils/storage' import { connect ...
var services_data = {}; var tech_data = {}; var web_data = {}; var sortable = false; $(document).ready(function(){ var queryString = window.location.search; var ip = queryString.substring(1); fill_bar_chart(ip); get_services(ip); get_technologies(ip); get_web_vulns(ip); $("#myBtn").click(f...
import React, { Component, useEffect, useMemo, useState } from 'react' import Highcharts from 'highcharts' import axios from 'axios' import { ApolloClient, InMemoryCache, ApolloProvider, useQuery, gql, } from '@apollo/client' import dayjs from 'dayjs' import { range, clone } from 'lodash' import './index.les...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Field, Form } from 'react-final-form'; import arrayMutators from 'final-form-arrays'; import createFocusDecorator from 'final-form-focus'; import { FormattedMessage } from 'react-intl'; import { withStripes } from '@folio/stripe...
import React from 'react'; import _ from 'lodash'; import moment from 'moment'; import * as Fields from '../libs/form/Fields' const sortArray = function(sortingArr, keyName, ascendingFlag){ if (ascendingFlag) return sortingArr.sort(function(a, b) { if(a[keyName] < b[keyN...
import React, {Fragment, useEffect, useState, useRef} from 'react'; import { makeStyles } from '@material-ui/styles'; import Pdf from "react-to-pdf"; import PrintIcon from '@material-ui/icons/Print'; import { IconButton, Table, TableBody, TableCell, TableContainer, TableHead, TableRow, Paper } from '@ma...
const ERROR = 'error'; const OFF = 'off'; module.exports = { 'extends': 'eslint:recommended', 'env': { 'browser': false, 'es6': true, 'node': true, 'mocha': true }, 'parserOptions': { 'ecmaVersion': 6, 'sourceType': 'script', 'ecmaFeatures': {} ...
function Tree(el) { var _this = this; this.el = el; this.getUniqId = function () { var delim = '-'; function S4() { return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); } return S4() + S4() + delim + S4() + delim + S4() + delim + S4() + delim...
"use strict"; var u = require('unparse-js'), C = u.combinators, Cst = u.cst; var pos = C.position, item = pos.item, literal = pos.literal, satisfy = pos.satisfy, oneOf = pos.oneOf, not1 = pos.not1, string = pos.string, node = Cst.node, cut = Cst.cut; va...
"use strict"; var mtTranslation = { //install.js "editAppACL": { "ENG": "Edit Application ACL", "FRA": "Edit Application ACL" }, //config.js "role": { "ENG": "Role", "FRA": "Role" }, "productTenant": { "ENG": "Product Tenant", "FRA": "Product Tenant" }, "clientTenant": { "ENG": "Client Tenant", ...
import pathsUtil from 'web/common/utils/pathUtil.js' import etpl from 'web/resources/lib/umeditor/third-party/template.min.js' import sysUtil from 'web/common/utils/sysUtil.js' window.etpl = etpl; etpl.config({ commandOpen: '<%', commandClose: '%>' }); /** * 配置项主体。注意,此处所有涉及到路径的配置别遗漏URL变量。 */ const UMEDITOR_CONF...
let w = new Array(64); let s0 = new Array(64); let s1 = new Array(64); let i0, i1; for (i0 = 0; i0 < 64; i0++) { w[i0] = new Array(32); s0[i0] = new Array(32); s1[i0] = new Array(32); } function r02(a) { return (a+2)%32 } function r06(a) { return (a+6)%32 } function r07(a) { return (a+7)%32 }...
/* author : wixon date : 2021-01-30 file : ui.js */ $(document).ready(function(){ UI.init(); }); var UI = (function(){ return{ init : function(){ //메뉴 this.totalMenu().init(); this.global(); this.mainMenu(); //로딩중 this.l...
import _ from 'lodash'; import utils from '../js/utils'; var constants = require("../js/constants"); var Web3 = require('web3'); if (typeof web3 !== 'undefined') { web3 = new Web3(web3.currentProvider); } else { // set the provider you want from Web3.providers var web3 = new Web3(new Web3.providers.HttpProvid...
// ==UserScript== // @name podman-ginkgo-highlight // @namespace https://github.com/edsantiago/greasemonkey // @downloadURL https://raw.githubusercontent.com/edsantiago/greasemonkey/master/podman-ginkgo-highlight/podman-ginkgo-highlight.user.js // @description highlight different-level messages in podman ginkg...
/*global $, google, d3 */ // D3 Hexbin Google Map OverlayLayer // // --------------------------------- // // var points, x, y, color; // Set globally so hexbin will take advantage of them var D3HexbinGmapOverlay = function (map, checkinData) { 'use strict'; // Initialize this.refmap = map; this.checkin...
/** * Tests for the Likely.js recommendation library. */ var sylvester = require('sylvester'); var Recommender = require('../likely.js'); // Test random matrix generation exports['test generateRandomMatrix#size'] = function(beforeExit, assert){ var M1 = Recommender.generateRandomMatrix(4,3); assert.equal(4, M1...
import card from './Character_Mona_Card.jpg' import thumb from './Character_Mona_Thumb.png' import c1 from './Constellation_Prophecy_of_Submersion.png' import c2 from './Constellation_Lunar_Chain.png' import c3 from './Constellation_Restless_Revolution.png' import c4 from './Constellation_Prophecy_of_Oblivion.png' impo...
import { ActionButton, AssetDropdownMenuItem } from 'styles/Styles'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { Instruction, MyModal, Section, TextPopupTitle, } from 'modals/styles/Styles'; import { Spin } from 'antd'; import { connect } from 'react-redux'; import { fetchGasPri...
"use strict"; var TsTypeInfo = require("ts-type-info"); var fs = require("fs"); var Path = require("path"); function camelToUnderscore(str) { return splitCamel(str).join("_").toLowerCase(); } exports.camelToUnderscore = camelToUnderscore; function splitCamel(str) { var target = []; var index = 0; for (v...
// // preload (function () { var preloadLists = [ { href: "/js/dist/index.js", as: "script" }, { href: "/css/dist/stylesheet.css", as: "style" }, { href: "/css/dist/featherlight.css", as: "style" }, { href: "/css/dist/featherlight.gallery.css", as: "style" }, // { href: '/js/dist/set.class...
/** * medloader - openup.org.za */ var timer, delay = 500, animate_speed = 750; var search_url = function(term) { return '/api/v2/search-lite?q=' + term; } var related_url = function(id) { return '/api/v2/related?nappi=' + id }; var product_detail_url = function(id) { return '/api/v3/detail?nappi=' + id }; v...
/* Express Setup */ var express = require('express'); var router = express.Router(); /* DB Setup */ var mongoose = require('mongoose'); var Registrant = mongoose.model('Registrant') /* Email Setup */ // Nodemailer configuration const nodemailer = require('nodemailer'); const xoauth2 = require('xoauth2'); // login var...
var controler = c = new Object(); var Event = { NAVIGATION_EVENT: "changeNavigationEvent", DESIGNER_INFO_LOADED:"designerInfoLoaded", DEVELOPER_INFO_LOADED: "developerInfoLoaded", GENERAL_INFO_LOADED: "generalInfoLoaded" // add custom event types here } ; c.init = function(){ $(document).bind( E...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var React = require('react'); var React__default = _interopDefault(React); var reactImage = require('@crystallize/react-image...
'use strict'; var Async = require('async'); var Moment = require('moment-timezone'); var Pad = require('pad'); var _ = require('lodash'); var GoogleAuth = require('../lib/auth/google_auth'); var SlackAuth = require('../lib/auth/slack_auth'); var JiraAuth = require('../lib/auth/jira_auth'); var ZebraAuth = require('.....
const asyncAuto = require('async/auto'); const {parseInvoice} = require('ln-service'); const {Transaction} = require('bitcoinjs-lib'); const completeSwapTransaction = require('./complete_swap_transaction'); const findSwapTransaction = require('./find_swap_transaction'); const {getBlockchainInfo} = require('./../chain'...
const SCORE_START_STR = 1000; const SCORE_PREFIX = 200; const SCORE_CONTIGUOUS = 300; /** * @param {number} idx - index of the match * @param {number} len - length of the match * @param {boolean} isPrefix - was it a prefix of a word * @returns {number} - score of the match, higher is better */ function _getMatchS...
import atob from 'atob'; import { Command, COMMAND_FN } from './Command.js'; import { Message } from './Message.js'; const _CLASS = '@FaintSignals/ws-dsp-client/Client'; /** * Simple request/response message handling for websockets. */ class Client { ws = null; messages = null; /** * C...
const htmlToText = require('html-to-text'); const $ = require('cheerio'); const url = require('url'); const {formatISO, parse} = require('date-fns'); const VideoError = ({src, postUrl}) => { let error = new Error(`Unsupported video ${src} in post ${postUrl}`); error.errorType = 'VideoError'; error.src = s...
/** * */ var AppRouter = Backbone.Router.extend({ initialize : function(options) { if(options.formView != null) { this.formView = options.formView; } if(options.searchView != null) { this.searchView = options.searchView; } if(options.tableResultView != null) { this.tableResultView = options....
const path = require(`path`) const { createFilePath } = require(`gatsby-source-filesystem`) const util = require("util") const fs = require("fs") const glob = require("glob") const globAsync = util.promisify(glob) const readFileAsync = util.promisify(fs.readFile) // const inlineCss = require("inline-css") const cheerio...
// 負責記錄現在頁面、先前頁數、總頁數 var now_page = 1; var page_num = 1; var choose = ""; var edit_name = ""; var edit_date_start = ""; var edit_date_end = ""; var delete_obj = ""; // 網頁載入時的初始化 // 載入表格內資訊 $(document).ready(function () { $.ajax({ url: 'connected/edit_ajax.php', type: 'POST', data: { ...
/** * Configure your Gatsby site with this file. * * See: https://www.gatsbyjs.org/docs/gatsby-config/ */ // Site Data const config = require("./data/siteConfig"); // Ressources const urljoin = require("url-join"); const siteMetadata = { title: config.siteTitle, description: config.siteDescription, author: ...
var objDiv = null; var gameArea = document.getElementById("game-area"); var player = document.getElementById("image"); var widthNum = 25; var heightNum = 13; gameArea.style.width = (player.offsetWidth * widthNum).toString() + "px"; var gameAreaWidth = gameArea.offsetWidth; gameArea.style.height = (player.offsetWidth * ...
const path = require('path'); const cp = require('child-process-debug'); const processHelper = require('./../process-helper.js'); const log = require('./../log'); const _ = require('underscore'); const booleanHelper = require('../boolean-helper'); const fs = require('fs-extra'); /** * Run Cucumber specs * * @param ...
import React, { Component } from "react"; import { CardNumberElement, CardCvcElement, CardExpiryElement, Elements, ElementsConsumer, } from "@stripe/react-stripe-js"; import { loadStripe } from "@stripe/stripe-js"; import { logEvent, Result, ErrorResult } from "./util"; import "./cardStyle.css"; import Button...
import React from 'react'; import Divider from 'epui-md/lib/Divider'; import Paper from 'epui-md/lib/Paper'; import SummaryCard from 'epui-md/lib/ep/SummaryCard'; import Tags from 'epui-md/lib/ep/Tags'; import EventListener from 'epui-md/lib/internal/EventListener'; import OrganizationSummary from 'epui-md/lib/ep/organ...
const expiringSoonTime = 7 * 24 * 60 * 60 * 1000; const defaultTags = { 'name': 'string', 'hostname': 'string', 'os_type': 'string', 'application': 'string', 'project_name': 'string', 'project_code': 'string', 'change_no': 'string', 'primary_owner': 'email', 'secondary_owner': 'email...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.calculateDataExtent = exports.stringToArrayFn = exports.stringToFn = undefined; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { i...
// L7mp: A programmable L7 meta-proxy // // Copyright 2020 by its authors. // Some rights reserved. See AUTHORS. // // 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, inc...
$(function() { $(document).ready(function() { $('.sessionmodal').addClass("active"); setTimeout(function() { $('.sessionmodal').removeClass("active"); }, 4500); }); $(".data-table").DataTable({ responsive: true, "bAutoWidth":false, "ordering": fal...
const { accounts, contract } = require('@openzeppelin/test-environment'); const { BN, expectRevert } = require('@openzeppelin/test-helpers'); const { farm, dex } = require('@apeswapfinance/test-helpers'); const { expect, assert } = require('chai'); const MasterApeAdmin = contract.fromArtifact('MasterApeAdmin'); // Loa...
#!/usr/bin/env node 'use strict'; var fs = require('fs'); var path = require('path'); var exec = require('child_process').exec; var execSync = require('child_process').execSync; var chalk = require('chalk'); var prompt = require('prompt'); var semver = require('semver'); var ora = require('ora'); /** * Used arguments...
/** * CPaaS Authentication Demo */ var changeView; var showhideView; var serverBase; var mHostUrl; var client; const tokenAPI = '/cpaas/auth/v1/token' whenReady(function() { Notification.initialize(); changeView = new ChangeView(); changeView.showPasswordGrant(); }); class Notification { static init...
import React, { useState, useEffect, useReducer, useMemo } from 'react'; import PropTypes from 'prop-types'; import Field from 'components/form/Field'; import Select from 'components/form/SelectInput'; import DatePicker from 'components/form/DatePicker'; import Spinner from 'components/ui/Spinner'; import './style.sc...
import ReactDOM from 'react-dom'; import React, { Component } from 'react'; import {connect} from 'react-redux'; import { bindActionCreators, dispatch } from 'redux'; import GuideGrid from '../components/guide_grid'; import SnapGrid from '../components/snap_grid'; import SchematicNodeLabel from '../components/schematic...
import router from './router' import store from './store' import { Message } from 'element-ui' import request from '@/utils/request' import NProgress from 'nprogress' // progress bar import 'nprogress/nprogress.css'// progress bar style import { getToken, setToken } from '@/utils/auth' // getToken from cookie import ac...
var _ = require('lodash'), events = require('events'), net = require('net'), util = require('util'), yaml = require('js-yaml') ; var DEFAULT_HOST = '127.0.0.1'; var DEFAULT_PORT = 11300; var LOWEST_PRIORITY = 1000; // utilities // Turn a function argument hash into an array for slicing. functi...
/*global module:false*/ var fs = module.require('fs'); var path = module.require('path'); var os = module.require('os'); var md = module.require('matchdep'); module.exports = function fxGruntConfig (grunt) { 'use strict'; // VAR var GRUNT_FILE = 'Gruntfile.js'; var BUILD_FILE = './dist/build.json'; var S...
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { injectIntl, FormattedMessage } from 'react-intl'; import { withStyles } from '@material-ui/core/styles'; import Dialog from '@material-ui/core/Dialog'; import DialogContent from '@material-ui/core/DialogContent'...
'use strict'; var babel = require("gulp-babel"); var bower = require('gulp-bower'); var concat = require("gulp-concat"); var del = require('del'); var gulp = require('gulp'); var merge = require('merge-stream'); var minify_css = require('gulp-minify-css'); var plumber = require('gulp-plumber'); var sass = require('gul...
// src/ingest.js 'use strict'; var csv_parse = require('csv-parse'); var fs = require('fs'); var path = require('path'); const config = require('../config/config'); console.log('config is', config); const safelyDropCollection = (db, collectionName) => { // See https://docs.mongodb.com/manual/reference/method/db.c...
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =...
let a = "<NAME>"; document.write(a); let b = "Alerta de prueba de javascript"; console.log(b); let c = "Otra alerta de prueba de Javascript"; console.warn(c); let d = `Otro comentario estúpido`; document.write(d); let e = 'Otro comentario estúpido 2'; console.log("idiota", 5 + 4, "otra cosa"); var iva = 0.21; iva ...
/** * Created by david on 6/26/16. */ /** * In order to synchronize tooltips and crosshairs, override the * built-in events with handlers defined on the parent element. */ var getFormattedDate = function (d) { return moment.utc(d).format('YYYY-MM-DD HH:mm:ss'); }; $('#container').bind('mousemove touchmove ...
/* * decaffeinate suggestions: * DS102: Remove unnecessary code created because of implicit returns * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md */ /** Definition of the TemplateGenerator class. TODO: Refactor @module generators/template-generator @license MIT. See LICEN...
/* eslint-disable */ // TODO: Remove previous line and work through linting issues at next edit 'use strict'; const Big = require('big.js'); const crypto = require('crypto'); const util = require('util'); const currencies = require('./currencies.json'); const fs = require('fs'); const { xml2js, js2xml } = require('xm...
/** * @typedef RegexSpec * @prop {RegExp} REGEX * @prop {string} STMT_TYPE * @prop {} CAP_INDEX * @prop {(match: RegExpExecArray, startedAtLine: Number, endedAtLine: Numbwe)} toJson */ /** * @typedef ParsedStatement * @prop {string} STMT_TYPE * @prop {number} startedAtLine * @prop {number} endedAtLine * @pr...
// https://cdn.esm.sh/v59/ramda@0.27.1/deno/src/includes.js var ae = Object.create; var v = Object.defineProperty; var se = Object.getOwnPropertyDescriptor; var ie = Object.getOwnPropertyNames; var ce = Object.getPrototypeOf; var oe = Object.prototype.hasOwnProperty; var fe = (r) => v(r, "__esModule", { value: true });...
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import scriptLoader from 'react-async-script-loader'; import ProductItemNew from './ProductItemBuy'; import './Product.css'; import axios from 'axios'; import Swal from 'sweetalert2'; let sessionToken = ''; let clientUniqueId = '123456'; let u...
import React, { ReactDom,Component, PropTypes } from 'react' import { Table, Row, Col, Button,DatePicker, Icon, message, Select, TreeSelect } from 'antd' import ReactEcharts from 'echarts-for-react' import echarts from 'echarts' import { Link } from 'react-router' import { getCookie, setCookie } from 'UTIL/cookie' impo...
// @ts-check // Core Packages 'use strict' const _ = require('lodash') const Rx = require('rx') const envVars = ['AWS_IOT_REGION', 'AWS_IOT_HOST', 'NODE_ENV', 'DEVICE_MANAGER_THING_NAME', 'TARGET_DEVICE'] envVars.forEach(ev => { if (_.isUndefined(process.env[ev])) { throw new Error( `Define envir...
images = [ "assets/images/", "1-1.png", "tiles.png", "mario.png", "enemies.png" ]; audio = [ "assets/audio/", "Coin.wav", "Die.wav", "Jump.wav", "Pause.wav", "Squish.wav", "Bump.wav", "overworld.mp3" ]; var qBlink = 0; var cameraX; var mario =...
"use strict"; const vm = require("vm"); const { ServiceMgr } = require("service"); const { ServiceComBus } = require("servicecom"); const { assertType, assertProp, ensureArray } = require("misc"); const { Type } = require("typelib"); class Step extends Type { constructor(data) { super(); this.nam...