text
stringlengths
3.22k
29.5k
// @flow import React, { Component } from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import {guid , getUnique , getLast , getFirst } from './helpers.js'; import Rdate from 'react-datetime'; import './reactAgendaCtrl.css'; var now = new Date(); export default class ReactAgendaCtrl exten...
// Variables var serialPortName = "COM7"; // Arduino Serial Port Name var serial; // Serial Port Object var US_instrument1, US_instrument2, US_instrument3; // Values for US_sensor1, US_sensor 2 and US_sensor 3 var instrument11, instrument12, instrument13; // Values for instrument1 Note 1...
const fontSize = 10; const symbolSize = 40; const padding = 10; /* * 调用 new Togo(svg,option).render(); * */ class Togo { /**/ constructor(svg, option) { this.data = option.data; this.edges = option.edges; this.svg = d3.select(svg); } //主渲染方法 render() { this.scale = 1; ...
function htmlEntities(str) { return String(str).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;'); } function hashSort() { var hash = window.location.hash.substring(1); if (hash == 'artikel') { $('.selection__button--selection').removeClass('selection__button--selection...
import { Scale, scale, transpose, Chord } from "tonal"; import "./populate-selectors"; import * as Key from "tonal-key"; import * as playback from "./playback"; import * as midiPlayback from "./midiplayback"; import * as utils from "./utils"; var tonic = "C"; var accidental = ""; var baseOctave = "3"; var scaleName = ...
/* Copyright (c) 2018 voxgig and other contributors, MIT License */ 'use strict' // NOTE: philosophically, denied permissions are errors, as the UI should // not enable the user to attempt disallowed operations. // NEXT: need to maintain lists of users in groups etc, and patterns to read this // NEXT: LRU, timeout ca...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Joi from 'joi-browser'; import { baseUrl } from '../../api'; import './styles.scss'; const objectSchema = Joi.object().keys({ email: Joi.string() .trim() .regex(/^\w+@[a-zA-Z_]+?\.[a-z...
/** * # balenaOS helpers * * The `BalenaOS` helper class can be used to configure and unpack the OS image that you will use in the test. This allows you to inject config options and network credentials into your image. * * ```js * const network_conf = { * ssid: SSID, * psk: PASSWORD, * nat: true, * }...
'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...
const TypeDoc = require('typedoc'); const { ConverterComponent } = require('typedoc/dist/lib/converter/components'); const { Converter } = require('typedoc/dist/lib/converter/converter'); const { ReflectionKind } = require('typedoc/dist/lib/models/reflections/abstract'); const { DeclarationReflection } = require('typed...
import React, { PureComponent, Fragment } from 'react'; import { connect } from 'dva'; import { formatMessage, FormattedMessage } from 'umi/locale'; import { Row, Col, Form, Input, DatePicker, Select, Button, Card, Divider, InputNumber, Radio, Icon, Tabs, Tooltip, Modal, message, Trans...
import React, { useState, Fragment } from "react"; import { makeStyles } from "@material-ui/core/styles"; import { Button, Fab, Dialog, DialogTitle, DialogContent, DialogContentText, DialogActions, FormControl, FormHelperText, TextField, Typography, } from "@material-ui/core"; import { Add, De...
import UploadStatusBar from './upload_status_bar' import toastr from 'toastr' require('./file_upload_restrictions.js') const debug = true console.log('loading file_upload'); UccChat.on_load(function(ucc_chat) { ucc_chat.fileUpload = new FileUpload(ucc_chat) }) class FileUpload { constructor(ucc_chat) { this...
import React, { useContext, useEffect, useState } from 'react'; import { Link, useNavigate, useLocation, useParams } from 'react-router-dom'; import { connect } from 'react-redux'; import * as Services from '../../../services'; import faker from 'faker'; import md5 from 'js-md5'; import { toastr } from 'react-redux-toa...
"use strict"; var _game = require("./game.js"); var _GamepadController = _interopRequireDefault(require("./GamepadController.js")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit...
import React, { useState, useEffect } from 'react'; import { Form, Tooltip, Spin, Switch, Space } from 'antd'; import { AimOutlined } from '@ant-design/icons'; import PropTypes from 'prop-types'; import location from 'public/static/location.json'; import { Space as Spacing, PageTitle, TextEditor, NameText, ...
import React, {Component, Fragment} from 'react'; import {connect} from 'react-redux'; import {is, fromJS} from 'immutable'; import {object, func} from 'prop-types'; import {Card, Button, Divider, message, Drawer, Spin, Badge, Popconfirm, Row, Col} from 'antd'; import {PageHeaderLayout, TableSearch, StandardTable, Tabl...
const gm = require('gm').subClass({ imageMagick: true }); const fs = require('fs-extra'); const path = require('path'); const Promise = require('bluebird'); require('colors'); Promise.promisifyAll(gm.prototype); /* eslint-disable no-multi-spaces */ const iosIconSizes = [ { size: 20, multipliers: [1, 2, 3] }, { si...
/* eslint-disable no-console */ import maskData from "./maskData"; import geometry from "./geometry"; import { Object } from "core-js"; function cvt(p) { return [p.x, p.y]; } export default { // 口罩图像缓存 maskImageSrc: {}, // 挑选合适的口罩 findMask(lp, rp, bp, side) { // 将口罩放缩,左右两点和脸部左右两点重合,计算底部点的距...
import React from 'react'; import PropTypes from 'prop-types'; import { HeadingText, PlatformStateContext, Button, NerdGraphMutation, Select, SelectItem } from 'nr1'; import Autocomplete from './autocomplete'; const ENTITY_UPDATE_STATUS = { NONE: 0, ADDING: 1, ADD_ERROR: 2, REMOVING: 3, REMOVE_E...
const httpStatus = require('http-status'); const pick = require('../../utils/pick'); const ApiError = require('../../utils/ApiError'); const catchAsync = require('../../utils/catchAsync'); const { summaryService } = require('../../services'); const { Summary } = require('../../models'); const Category = require('../../...
'use strict'; module.exports = { meta: { type: 'layout', fixable: 'code', docs: { description: 'Enforces consistent decorator position on properties and methods', category: 'Style', recommended: true, url: 'https://github.com/NullVoxPopuli/eslint-plugin-decorator-position/...
// store dark /light theme $(document).ready(function() { // Check local storage and set theme if(localStorage.theme) { $('html').addClass( localStorage.theme ); } else { $('html').addClass('light'); // set default theme. No need to set via php now } if ($('html').hasClass('dark')) { $('#logo')....
$(function () { $("#jqGrid").jqGrid({ url: '../maintain/list', datatype: "json", colModel: [ // 隐藏主键 { label: '主键id', name: 'id', width: 50, key: true ,hidden : true }, { label: '车牌号', name: 'cnoText', width: 80 }, { label: '保养日期', name: 'mtm', width: 80, formatter:'date' },...
/** * A11y Helpers * ----------------------------------------------------------------------------- * A collection of useful functions that help make your theme more accessible */ /** * Moves focus to an HTML element * eg for In-page links, after scroll, focus shifts to content area so that * next `tab` is where...
import mapboxgl from "mapbox-gl"; import axios from "axios"; import * as loadmore from "../loadMore/loadMore"; export function init() { let maps = document.querySelectorAll("[map-container]"); if (maps.length) { [].map.call(maps, function (map) { var uri = (map.getAttribute('data-api')); if (!uri)...
'use strict'; $(function () { initCardChart(); chart2(); initWorldMap(); $('.chart.chart-bar1').sparkline(undefined, { type: 'bar', barColor: '#6d7fe2', negBarColor: '#000', barWidth: '5px', height: '50px' }); $('.chart.chart-bar2').sparkline(undefined, {...
"use strict"; const Generator = require("yeoman-generator"); const chalk = require("chalk"); const yosay = require("yosay"); const download = require("download"); // const camelCase = require('camelcase'); const slugify = require("@sindresorhus/slugify"); // let myanswers; module.exports = class extends ( Generator...
/** @module filter-controller.js @desc file that starts up the filter @author iAmMichaelConnor */ import config from 'config'; import utilsWeb3 from './utils-web3'; import { LeafService, MetadataService } from './db/service'; import logger from './logger'; // global subscriptions object: const subscriptions = {}; /...
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
/** * @file Colormaker Registry * @author <NAME> <<EMAIL>> * @private */ import { generateUUID } from '../math/math-utils.js' import Colormaker from './colormaker.js' import SelectionColormaker from './selection-colormaker.js' const ColormakerScales = { '': '', // Sequential OrRd: '[S] Orange-Red', Pu...
// Useful - https://developers.google.com/web/fundamentals/codelabs/push-notifications // Your web app's Firebase configuration var firebaseConfig = { apiKey: "AIzaSyAQu435FNTmXIcFigctYMdRO8sPLX78HI0", authDomain: "pushdexp.firebaseapp.com", databaseURL: "https://pushdexp.firebaseio.com", projectId: "p...
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] =...
var assert = require('assert'); var logger = using('easynode.framework.Logger').forFile(__filename); var GenericObject = using('easynode.GenericObject'); var VersionComparator = using('easynode.framework.util.VersionComparator'); var co = require('co'); var path = require('path'); var S = require('string'); var thunkif...
// Routes for Users, Login, Create, Delete, Edit etc... var express = require('express'); var router = express.Router(); var middleware = require("../middleware"); var LocalStrategy = require("passport-local"); var passport = require("passport"); var passportLocalMongoose = require("passport-local-mongoose"); var fs = ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var annotation_1 = require("./annotation"); var p = require("../../core/properties"); var signaling_1 = require("../../core/signaling"); var text_1 = require("../../core/util/text"); var bbox_1 = require("../../...
/* @flow */ import {setupAxisLabels} from './Axis'; import {closestRoundTo} from '../util'; export const setBubbleChartDimensions = ({chartNames, srcdata, data, bubbleChartDimensions, nonZeroOnly}) => { const bubbles = _.filter(chartNames, function(d) { return d.type == 'bubble'; }); const createBu...
import React, { Fragment, useEffect, useState } from 'react'; import clsx from 'clsx'; import Card from '@material-ui/core/Card'; import CardContent from '@material-ui/core/CardContent'; import CardActions from '@material-ui/core/CardActions'; import Drawer from '@material-ui/core/Drawer'; import AppBar from '@material...
import NewMap from '@/components/OLMap/core/MapCore' import VecLayer from '@/components/OLMap/core/VecLayer' import { Point } from 'ol/geom' import Feature from 'ol/Feature' import { Stroke, Style, Text, Fill, Icon } from 'ol/style.js' import { transform } from 'ol/proj' import { PatrolPoint_Com } from ...
//###if(MOBILE) {###// import { TextInput } from 'react-native'; //###} else {###// import PropTypes from '@react-ameliorate/prop-types'; import { utils as U } from 'evisit-js-utils'; import React from 'react'; import { flattenStyle } from '../shi...
const SETTING_AUTOPLAY = "autoplay"; const SETTING_CONTROLS = "controls"; const SETTING_DEBUG = "debug"; window.x_debugmode = false; window.onload = (e) => { dragDropSupport(".droppable"); let queue = document.getElementById("queue"); queue.addEventListener("dblclick", loadQueue); let control_chk = document.get...
/* global request */ const AWS = require('aws-sdk'); var s3 = new AWS.S3(); exports.handler = async (event) => { var instancesList = inputToArray(event.instancesList); // gather input usage array [instance counter][id, type, time worked, state] var instancesBudgetString = ...
var CoreView = require('backbone/core-view'); var template = require('./dataset-header.tpl'); var moment = require('moment'); var InlineEditorView = require('builder/components/inline-editor/inline-editor-view'); var TipsyTooltipView = require('builder/components/tipsy-tooltip-view'); var renameTableOperation = require...
const vscode = require(`vscode`); const util = require(`util`); const fs = require(`fs`); const parseString = util.promisify(require(`xml2js`).parseString); const instance = require(`../../Instance`); const Configuration = require(`../../api/Configuration`); const IBMi = require(`../../api/IBMi`); const gencmdxml =...
import React from "react" import styled from "styled-components" import { Link } from "gatsby" import { Row, Col, message, Modal, Select, Button } from "antd" import { Container } from "../global" import { CheckOutlined } from "@ant-design/icons" import emailjs from "emailjs-com" import axios from "axios" import $ from...
import {Client} from './client.js'; import {Request} from './server-request.js'; let RESOLVE_DISCONNECTION_REQUEST = undefined; let RESOLVE_CONNECTION_REQUEST = undefined; let IS_REQUESTED_DISCONNECTION = false; let IS_CONNECTED = false; /** * */ const Server = { _requestId : 0, _r...
'use strict'; const r = require('bindings')('spectator_internals'); const v8 = require('v8'); function deltaMicros(end, start) { let deltaNanos = end[1] - start[1]; let deltaSecs = end[0] - start[0]; if (deltaNanos < 0) { deltaNanos += 1000000000; deltaSecs -= 1; } return Math.trunc(deltaSecs * 1e6...
const EventEmitter = require('events') const {StreamController, Controller} = require('./main') const {normalizeVertex} = require('./helper') const commandEquals = (cmd1, cmd2) => cmd1.name === cmd2.name && cmd1.args.length === cmd2.args.length && cmd1.args.every( (x, i) => normalizeVertex(x) === normalizeVe...
'use strict'; const http = require('http'); const parse = require('node-html-parser').parse; const cache = require('memory-cache'); const core = require('right-track-core'); const DateTime = core.utils.DateTime; const SF = require('right-track-agency/src/StationFeed'); const StationFeed = SF.StationFeed; const Depart...
const axios = require('axios'); var Vue = require('vue'); Vue.use(require('vue-cookies')); Vue.use(require('bootstrap-vue')); require('file-loader?name=[name].[ext]!../index.html'); import 'bootstrap/dist/css/bootstrap.css' import 'bootstrap-vue/dist/bootstrap-vue.css' import './../css/tramchester.css' import Notes...
"use strict"; const UnsplashController = require("../../../app/api/unsplash"); const sinon = require("sinon"); const assert = require("assert"); const nock = require("nock"); describe("Unsplash", () => { let unsplashController; let fakeUnsplash; beforeEach(() => { fakeUnsplash = { search: { ph...
import Schemas from "./schemas.js"; // Define handler traps for returned proxied configuration object const catchAll = () => {throw new TypeError("SCIM Configuration can only be changed via the 'set' method")}; const handleTraps = {set: catchAll, deleteProperty: catchAll, defineProperty: catchAll}; /** * SCIM Servic...
"use strict"; const Canvas = require('canvas'); const fs = require('fs'); class SpriteProcessor { constructor(spritesDir, pngDir) { this.spritesDir = spritesDir; this.pngDir = pngDir; this.canvas = new Canvas(512, 1024); this.context = this.canvas.getContext('2d'); } process(objects) { for ...
const babelEnvDeps = require('webpack-babel-env-deps'); const fs = require('fs-extra'); const path = require('path'); const TerserPlugin = require('terser-webpack-plugin'); const webpack = require('webpack'); const zip = require('./zip'); const chalk = require('chalk'); const { promisify } = require('util'); const glob...
var inherit = require('./inherit'); var feature = require('./feature'); /** * Create a new instance of class choroplethFeature * * @class geo.choroplethFeature * @param {Object} arg Options object * @extends geo.feature * @param {Array} [colorRange] Color lookup table for * choroplethFeature. Default is 9-ste...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Trans } from '@lingui/macro'; import memoize from 'memoize-one'; import ErrorBoundary from '../generic/ErrorBoundary'; import HomeAboutAuthor from './HomeAboutAuthor'; import HomeAdminPanel fro...
const DomainResource = require('./DomainResource'); const Identifier = require('./Identifier'); const Reference = require('./Reference'); const CodeableConcept = require('./CodeableConcept'); const Period = require('./Period'); const Task_Requester = require('./Task_Requester'); const Annotation = require('./Annotation...
const path = require("path"); const fs = require("fs"); const LIB = path.join(__dirname, `../lib/`); const polyfillDir = path.dirname(require.resolve("@webcomponents/webcomponentsjs")); const polyfillPath = path.join(polyfillDir, "{*.js,*.map,*.md,bundles/**/*.*}"); const packageName = JSON.parse(fs.readFileSync("./pa...
import mixin from '../misc/mixin'; import createCoponent from '../mixins/create-component'; import initComponent from '../mixins/init-component-by-search'; import '../polyfills/array-from'; import '../polyfills/element-matches'; import '../polyfills/object-assign'; import '../polyfills/custom-event'; import eventMatche...
let util = require('../../../../util'); class Label { constructor(body,options,edgelabel = false) { this.body = body; this.pointToSelf = false; this.baseSize = undefined; this.fontOptions = {}; this.setOptions(options); this.size = {top: 0, left: 0, width: 0, height: 0, yLine: 0}; // could b...
/*! * env.js - environment for decentraland * Copyright (c) 2014-2015, <NAME> (MIT License). * Copyright (c) 2014-2016, <NAME> (MIT License). * Copyright (c) 2016-2017, <NAME> (MIT License). * https://github.com/decentraland/decentraland-node */ 'use strict'; var lazy = require('./utils/lazy'); /** * A Decent...
const Web3 = require('web3'); const express = require('express'); const https = require('https'); const next = require('next') var bodyParser = require('body-parser'); const cors = require('cors'); const fs = require('fs'); const { waitForEvent } = require('../app/utils/utils'); const Contracts = require('../app/contr...
const { promisify } = require("util"); const fs = require("fs"); const path = require("path"); const parseDocConfigs = require("./parse_doc_configs.js"); const createDocumentationPage = require("./create_documentation_page.js"); const generateHeaderHtml = require("./generate_header_html.js"); const generatePageListHtml...
'use strict'; var assert = require('assert'); if (global.ethers) { console.log('Using global ethers; ' + __filename); var ethers = global.ethers; } else { var ethers = require('..'); } var utils = require('./utils'); function equals(actual, expected) { // Array (treat recursively) if (Array.isA...
//============================================================================= // Yanfly Engine Plugins - Key Name Entry (American QWERTY English Keyboard) // YEP_KeyNameEntry.js //============================================================================= var Imported = Imported || {}; Imported.YEP_KeyNameEntry = ...
/** * @file vtt-segment-loader.js */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false;...
/* eslint-disable jsx-a11y/no-onchange */ import React, { useState, useEffect } from "react"; import { Link } from "react-router-dom"; import Footer from "./Footer"; import logo from "./Images/cyf_logo.jpeg"; import ScrollToTop from "./ScrollToTop"; import { globalState } from "./LogIn"; //all useStates- to collate a...
/** * omis v2.0.0 https://tencent.github.io/omi/ * Observable store system for JavaScript apps. * By dntzhang https://github.com/dntzhang * Github: https://github.com/Tencent/omi * MIT Licensed. */ import React from 'react'; function obaa(target, arr, callback) { var eventPropArr = []; if (isArray(target))...
/** * Path: src/day8-part2.js * Description: * 7 segment displays are busted! you need to fix them. * **/ import fs from 'graceful-fs'; // we will have a decoder_ring which maps the current_signal to the correct_signal // correct_signal = [a,b,c,d,e,f,g] // decoder_ring will be some re-arrangement of the corr...
/*global require*/ 'use strict'; var SuggestionDictionary = require('./suggestionDict').SuggestionDictionary; var IO = require('./IO'); var bot = window.bot = { IO: IO, Command: require('./Command').Command, CommunityCommand: require('./Command').CommunityCommand, Message: require('./Message').Messag...
$('.sesion').on('click', function(e){ $('.sesionMenu').slideToggle(20); e.preventDefault(); }); // Muestra input de cantidades $('.cantidadBTN').on('click', function(e){ $('.und').animate({'width': 'toggle'}); e.preventDefault(); }); // ellemento donde cargan los productos enlistados con jquery var impr...
var $builtinmodule = function (name) { mod = {}; mod.wait = new Sk.builtin.func(function (amount) { var t_m = Sk.importModule("time", false, true); var sec = Sk.ffi.remapToJs(amount) / 1000; return Sk.misceval.callsimOrSuspend(t_m.$d['sleep'], Sk.ffi.remapToPy(sec)); }); mod.get...
import React, { Component } from 'react' import PropTypes from 'prop-types' import { Form } from 'react-redux-form' import { Redirect } from 'react-router-dom' import DocumentTitle from 'react-document-title' import AUpageAlert from '@gov.au/page-alerts/lib/js/react.js' import AUheading from '@gov.au/headings/lib/js/re...
import React, { PropTypes } from 'react'; import { injectIntl, FormattedMessage, intlShape } from 'react-intl'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { Form, Input, Button, Popover, Icon } from 'antd'; import * as actions from '../...
'use strict' const multihashes = require('multihashing-async').multihash const CID = require('cids') const protobuf = require('protons') const fnv1a = require('fnv1a') const varint = require('varint') const { DAGNode, DAGLink } = require('ipld-dag-pb') const multicodec = require('multicodec') const { default: Queue } ...
var editor_settings = {}; var editor_preview = {}; var current_preview = ""; function ready(a) { "loading" != document.readyState ? a() : document.addEventListener("DOMContentLoaded", a); } function start() { // Set default config $.ajax({ url: "./json/EditorSettings1.json", async: false, ...
/// <reference path="Errors.js" /> // determine whether Object.defineProperty is supported and add legacy support is necessary/possible var definePropertySupported = false; var defineProperty; function defineLegacyProperty() { Object.defineProperty = function (obj, prop, desc) { // assume getter will only need to...
/* 29-Dec-2020 0.5.1: Add isCustom flag to added categories 30-Dec-2020 0.5.1x: OPtion to not display standard categories with no spells 2-Jan-2021 0.5.1ad: Add choice to labelFilterSets to make using selectOptions easier - they are converted into property names (if not present then use filter...
/* * Header, the Nav bar at the top of the page * */ import React from 'react'; import styled from 'styled-components'; import Link from '../../components/Link'; import { withRouter } from 'react-router-dom'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Dropdown, ...
/** * @license * Copyright 2018 Brigham Young University * * 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...
let USER_LANG = 'de'; //(navigator.language || navigator.language).substring(0, 2); let aC; // Map of all thesaurus Concepts (prefLabel plus altLabels) const ep = 'https://resource.geolba.ac.at/PoolParty/sparql/'; const options = { //fuse options shouldSort: true, tokenize: true, keys: ['L.value'] }; let...
// Copyright 2016, Google, 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 in wr...
const server = 'https://home.amcolash.com:9090/remote'; const ledSpectrum = 'https://home.amcolash.com:9090/spectrum'; const container = document.getElementsByClassName('container')[0]; const modal = document.getElementById('inputModal'); let onlineState = false; let computerState = false; let spectrumState = false; ...
const React = require("react") const MobxReact = require("mobx-react") const InterfaceViewBase = require("scripts/interfaces/interfaceViewBase.js") const Interfaces = require("scripts/interfaces/interfaces.js") const CommonAction = require("scripts/actions/commonAction.js") const LocStore = require("scripts/stores/loc...
/* This script goes through the input text (actually it is triggered each time a markdown cell is rendered. The imput text is the content of the cell. It replaces the latex structures by html tags, typically wit a <div class="latex_environment_name> ... </div>. Then the html rendering can be tailored using a devoted ...
import React, { useEffect, useState } from "react"; import { Input as Uploader } from "rsuite"; import { Button, ButtonGroup, FormGroup, Row, Col } from "reactstrap"; import { Loader, Checkbox } from "rsuite"; import DataSheet2, { setRow } from "../../components/Common/DataSheet2"; import { useGlobal } from "../.....
// $(function () { // slideMenu(); //모바일 메뉴 // layerPopup(); //레이어팝업 // lang(); //언어선택 // reward(); //나의 보상확인 // eventBtnMotion(); //사전가입 이벤트 모션 // anc(); //앵커 // //mouseEvent(); //마우스휠 이벤트 // //countNumber(); //사전가입자 수 카운트 // //사전가입자 수 카운트 30초마다 반복 실행 // setInterval(function() // { // countNumber(); //사전...
import React from 'react'; import PropTypes from 'prop-types'; import { scaleLinear } from 'd3-scale'; import { axisBottom } from 'd3-axis'; import { select, event as currentEvent } from 'd3-selection'; import { brushX } from 'd3-brush'; // import { arc } from 'd3-shape'; const HistPlotD3 = {}; class FilterNumPlot ex...
/*********************************************************************************** * (c) <NAME> 2000 version 5.411 24 December 2001 (updated Jan 31st, 2003 by Dynamic Drive for Opera7) * For info write to <EMAIL> * * You may remove all comments for faster loading * *****************************...
const systemInit = require( '../systemInit' ); const i18n = require( '../lang/' + systemInit.language ); const EntityDB = require( '../db/entities' ); const TxDB = require( '../db/transactions' ); const moment = require( 'moment' ); const commName = systemInit.communityGovernance.commName; const daysToZero = system...
import Vue from "vue"; import Vuex from "vuex"; Vue.use(Vuex); const DEFAULT_DOCUMENT_TITLE = "~ SkyChat"; const CURSOR_DECAY_DELAY = 5 * 1000; // Must match value from backend const store = { state: { focused: true, documentTitle: DEFAULT_DOCUMENT_TITLE, documentTitleBlinking: false, ...
import M2ApiResponseError from './M2ApiResponseError'; import * as MulticastCache from './MulticastCache'; import { BrowserPersistence } from '../../util/'; // TODO: headers are locked right now, add configurability const withDefaultHeaders = headerAdditions => { const headers = new Headers({ 'Content-type...
'use strict' const winston = require('winston'); var http = require('http'); var https = require('https'); var url = require('url'); var generateCallbacks = function(testResultId, operation, requests, callbackUrl) { var records = []; /** * ArrayBuffer to String * @param {ArrayBuffer} buffer * @returns {...
/* eslint-disable no-console */ /* * @Description: 随访任务列表 * @Author: jun * @Date: 2019-06-20 10:37:47 */ import React, { Component } from 'react'; import router from 'umi/router'; import { connect } from 'dva'; import { Form, List, Card, Tooltip, Menu, Input, Dropdown, Icon, Button, Tag } from 'antd'; import { Tw...
var req = new XMLHttpRequest(); req.onload = function(e) { var json = JSON.parse(e.target.responseText ); init( json ); }; req.open( 'GET', 'metro.json' ); req.send(); var ctx = document.getElementById("canvas").getContext('2d'); var size = 600;// Math.min( window.innerWidth, window.innerHeight ); var w = ...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(gene...
'use strict'; import plugins from 'gulp-load-plugins'; import yargs from 'yargs'; import browser from 'browser-sync'; import gulp from 'gulp'; import rimraf from 'rimraf'; import yaml from 'js-yaml'; import fs from 'fs'; import dateFormat from 'dateformat'; im...
/* File: default_options.js Author: Gazos <<EMAIL>> Date: 04/06/19 Last Modified Date: 01/08/21 Last Modified By: Gazos <<EMAIL>> */ const Joi = require('joi'); const XRPLib = require('./xrp'); const InputOptions = { input: { topic: {messageProp: 'topic'}, payload: ...
require('dotenv-flow').config() const USERNAME = process.env.RPC_USERNAME const PASSWORD = process.env.RPC_PASSWORD const RPC_SCHEME = process.env.RPC_SCHEME const URL = process.env.REMIX_URL const NODE_ONE_HOST = process.env.NODE_ONE_HOST const NODE_ONE_PUB_KEY = process.env.NODE_ONE_PUB_KEY const NODE_TWO_HOST = proc...