text
stringlengths
3.22k
29.5k
/* * svg.js * @version: 0.0.1 * @author: mafumafuultu * @url: https://github.com/mafumafuultu/svg.js * @licece: MIT */ const lift = (v, f) => f(v); const __renderSet = k => (o, v) => (o.render[k] = v, o); const ___shapeRender = t => ({ auto() {return this._set('auto')(t);}, crispEdges() ...
//#region Variables // References const form = document.getElementById('form') const finalWrapper = document.getElementById('final-wrapper') const final = document.getElementById('final') const css = document.getElementById('css') // QueryParams const paramBoxWidth = 'box-width' const paramBoxHeight = 'box-height' co...
Highcharts.setOptions({ lang: { numericSymbols: null, //otherwise by default ['k', 'M', 'G', 'T', 'P', 'E'] thousandsSep: ',' }, chart: { style: { fontFamily: 'Quicksand' } } }); function commonChartOptions(clickListener){ return { colors: ["#9c3367", "#67347f", "#935fb8", "#e676a3...
'use strict'; exports.__esModule = true; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _typeof = type...
const util = require("util"); /* Dex methods */ /* struct fields are of the form [name:string,bits:number,type:string] */ // number of bits before a field const before = (struct_def, _name) => { const stop = struct_def.findIndex(({ name }) => name == _name); if (stop < 0) { throw "preproc/before/not_found"; ...
"use strict"; function __export(m) { for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); __export(require("./accountBalance")); __export(require("./accountInfo")); __export(require("./addressMeta")); __export(require("./beneficiary"));...
/* Copyright 2018 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _asyncToGenerator = _interopRequireDefault(require('async-to-generator')); var _log4js; function _load_log4js() { return _log4js = require('log4js'); } var _atom = require('atom'); var _nuclideAnalytics; function _load_nuclideAn...
// Server.js var config = require('./config'); var express = require('express'); var app = express(); var http = require('http').Server(app); var bodyParser = require('body-parser'); var cookieParser = require('cookie-parser'); var port = process.env.PORT || config.port; // Socket.io s...
import express from 'express'; import cookieParser from 'cookie-parser'; import http from 'http'; import https from 'https'; import fs from 'fs'; import path from 'path'; import {randomBytes} from 'crypto'; import React from 'react'; import { renderToString } from 'react-dom/server'; import App from './app'; import tem...
const md5Base64 = require('md5-base64'); import React from 'react'; import styled from 'styled-components'; import {Link} from 'react-router-dom'; import icPhone from 'images/login/phone.png'; import icPasd from 'images/login/pasd.png'; import {getUserInfo as getUserInfoRequest, login as loginRequest} from 'utils/servi...
import { StateHandler } from './StateHandler.js'; class MapControls { constructor(element, stateHandlerIdentifier) { this.element = element this.animationDelay = 2000; this.stateHandler = StateHandler.getStateHandler(stateHandlerIdentifier); this.sliderSVG = this.createSliderS...
import React, { useEffect, useState } from 'react'; import { Typography, Checkbox, FormControlLabel, Grid, TextField, Button } from '@material-ui/core'; import FormGroup from '@material-ui/core/FormGroup'; import { makeStyles } from '@material-ui/core/styles'; import { useSelector } from 'react-redux'; import api fro...
import React, { Component } from 'react'; import { Help, Field, Label, Control, Title, Input, Icon, Modal, ModalBackground, ModalCard, ModalCardHeader, ModalCardTitle, Delete, ModalCardBody, ModalCardFooter, ModalClose, ModalContent, Notification, Column, Button, Checkbox } fro...
var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __markAsModule = (target) => __defProp(target...
/* * File: scroll_system.js * Name: Scrolling system control * Date: 2001-06-22 * Author: <NAME> * Email: <EMAIL> * Platform: all javascript browsers * Namespace: all variables and functions prefixed with "scroll_" System functions (cross-platform) shared by scroll system. Dynamically loads correct pla...
import { v4 as uuid } from 'uuid'; class WebAudioPlayer { constructor(json) { this.original = json; this.playingNodes = []; this.playing = false; this.scheduleBeats = 10; this.reachedNodes = []; this.reachedExecNodes = []; this.beat = 0; this.bpm = 120; this.interval = 50; thi...
import I18n from "I18n"; import User from "discourse/models/user"; import { deleteDb, loadDbIdentity, saveDbIdentity, } from "discourse/plugins/discourse-encrypt/lib/database"; import EncryptLibDiscourse, { ENCRYPT_ACTIVE, ENCRYPT_DISABLED, ENCRYPT_ENABLED, getEncryptionStatus, getIdentity, } from "disc...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; //import Codemirror from 'react-codemirror'; import brace from 'brace'; import AceEditor from 'react-ace'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import { Button } from 'react-bootstrap'; import * as ac...
"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 ...
import Orientation from 'react-native-orientation'; import React, { Component } from 'react'; var API_URL = require('../config/config.js'); import { Image,ListView,StyleSheet,TouchableOpacity,Linking,ActivityIndicator } from 'react-native'; import Video from 'react-native-video'; import { Container,Spinner,Button,Title...
//these variables need to be global so they can be populated in other functions var apiKeyC = ""; var currentUserUsername = ""; var currentUserPic = ""; var currentUserId = ""; $(document).ready(() => { var availableTags = []; //global variables var userBtn = $(".btn-userBtn"); let username; // globally kee...
/** * Bookmark model */ var types = require('../../node_modules/tqtopicmap/lib/types') , icons = require('../../node_modules/tqtopicmap/lib/icons') , properties = require('../../node_modules/tqtopicmap/lib/properties') , constants = require('../../core/constants') , uuid = require('../../core/util/uuidutil')...
import React from 'react'; import ReactDataGrid from 'react-data-grid'; import { Toolbar, Data } from 'react-data-grid/addons'; import DateFormatter from '../DateGridFormatter/DateGridFormatter'; import EditMemberButton from '../EditMemberButton/EditMemberButton'; import EditMemberViewProfileButtons from '../EditMember...
/* eslint-disable */ import React, { Component } from "react"; import { withRouter } from "react-router-dom"; import asyncComponent from "../../Utilities/asyncComponent"; import D3Util from "../../Utilities/D3Util"; import "./sample-page.scss"; import { Section, Main, PageHeader as RHPageHeader, PageHeaderTitl...
/** * Created by ProgrammerYuan on 16/5/18. */ var reds = require('./reds'); var natural = require('natural'); var fs = require('fs'); var util = require('util'); var file_list = []; var word_prefix var prefix = "./essays/" var category_num = 3; var category_size = 40; var essayList = {} var word_essay_table = {} va...
import React, { useState, useEffect } from "react"; import Paper from "@material-ui/core/Paper"; import Grid from "@material-ui/core/Grid"; import Fab from "@material-ui/core/Fab"; import Typography from "@material-ui/core/Typography"; import InputLabel from "@material-ui/core/InputLabel"; import OutlinedInput from "@...
const _ = require('lodash'); const Molotov = require('../molotov'); const molotovDefaults = { overrides: {}, cocktailClasses: [], }; module.exports = function semverishFactory( superNameSpace, pluginName, molotovConfig = molotovDefaults ) { // eslint-disable-line max-len const molotov = Molotov(molotovC...
// Inspired by grunt-cmd-transport(https://github.com/spmjs/grunt-cmd-transport) var esprima = require('esprima'); var path = require('path'); var ast = require('cmd-util').ast; var iduri = require('cmd-util').iduri; var file = require('./file'); var _ = require('lodash'); var logger = require('./logger'); exports.bui...
import { takeLatest, all, call, put, select } from 'redux-saga/effects' import * as disputeActions from '../actions/dispute' import * as arbitratorActions from '../actions/arbitrator' import * as walletSelectors from '../reducers/wallet' import { kleros, archon, ARBITRATOR_ADDRESS } from '../bootstrap/dapp-api' import...
"use strict"; var ts = require('typescript'); var _ = require('underscore'); var dom = require('dts-dom'); var dts_dom_1 = require('dts-dom'); var builtins = { Date: Date, RegExp: RegExp, "Map": (typeof Map !== 'undefined') ? Map : undefined, "HTMLElement": (typeof HTMLElement !== 'undefined') ...
$(function () { //$.getScript('//cdn.datatables.net/plug-ins/1.10.10/api/fnPagingInfo.js'); /** * Scroll to element * @param object o * @returns none */ $.fn.scrollTo = function (target, options, callback) { if (typeof options == 'function' && arguments.length == 2) { ...
/* * * @Author: czy0729 * @Date: 2022-03-28 19:50:20 * @Last Modified by: czy0729 * @Last Modified time: 2022-04-05 06:00:42 */ import { Alert } from 'react-native' import SMBClient from 'react-native-smb' import { asc, desc } from '@utils' import { queue } from '@utils/fetch' import { info, loading } from '@util...
const fs = require('fs-extra'); var path = require('path'); var parser = require('./comm/parser'); const mustache = require('mustache'); const util = require('./comm/util'); const pretty = require('./comm/pretty'); const cssg = require('./cssg'); const { basename, parse } = require('path'); /** * 同步模版配置到工程中,自动补齐缺失的用...
'use strict'; const $ = require('jquery'); const data = require('electron').remote.require('data'); const EventEmitter = require('eventemitter3'); const _ = require('lodash'); let $body = $('body'); /////// var svg; var brush; let d3 = require('d3-custom'); var initPoly = function($container) { var w = $conta...
import {PropTypes} from 'react'; import {omit, isEmpty} from 'lodash'; import createConnector from '../core/createConnector'; const namespace = 'refinementList'; function getId(props) { return props.attributeName; } function getCurrentRefinement(props, searchState) { const id = getId(props); if (searchState[n...
/** * 咚咚抢 * @author Jim * @date 2020/01/10 * @update 2020/01/12 */ import React, {Component} from 'react'; import { FlatList, Image, ImageBackground, StyleSheet, Text, TouchableOpacity, View, } from 'react-native'; import Header from '../../components/Header'; import {StatusBarHeight, width} from '.....
var mainApp = {}; var backendAPI = 'https://monthlystatement.herokuapp.com'; //var backendAPI = 'http://localhost:5000'; (function setOnAuth() { var firebase = app_firebase; mainApp.uid = null; firebase.auth().onAuthStateChanged(function (user) { if (user) { // User is signed in. ...
'use strict' /* eslint-env mocha */ const chai = require('chai') chai.use(require('dirty-chai')) chai.use(require('chai-as-promised')) const { expect } = chai const sinon = require('sinon') const delay = require('delay') const PeerId = require('peer-id') const PeerInfo = require('peer-info') const duplexPair = requir...
import React, { PureComponent } from 'react'; import { List, Icon, Modal, message, Card, Button, Form, Input, Radio } from 'antd'; import { connect } from 'dva'; import stylesArticles from '../../List/Articles.less'; import { digitUppercase } from '@/utils/utils'; import stylesProjects from '../../List/Projects.less'; ...
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d...
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import hoistStatics from 'hoist-non-react-statics'; import hoistReactInstanceMethods from 'hoist-react-instance-methods'; import { CONTEXT_NAME } from './constants'; import { noop, returnsArgument } from 'empty-functions'; import Validation f...
/** * DashboardNavigation component. * * Site Kit by Google, Copyright 2021 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE...
/* eslint-disable no-invalid-this */ /* eslint-disable no-eval */ 'use strict'; /** * Story runner * @module suiteRunr Run a story object * @description Module with single function as default export, which will run a story - suite. Along with story running, story sunner will write record and output to console. */ ...
"use strict"; var log = require('fancy-log'); const gulp = require('gulp'); const Fiber = require('fibers'), sass = require('gulp-sass'), cleanCss = require('gulp-clean-css'), minifyJs = require('gulp-babel-minify'), autoprefixer = require('gulp-autoprefixer'), twi...
import React, { Component } from 'react'; import BluetoothSerial from 'react-native-bluetooth-serial' import {clockIn, clockOut, newRoom, toggleSuit, changeCoefficient} from '../store/actions/events' import {warning, removeWarning} from '../store/actions/warning' import {countdownTimer, resetTimer} from '../store/actio...
var d3 = require("d3"); // var io = require('socket.io-client'); var preLoader = require('pre-loader'); var globals = require("./globals"); var initTasks = require("./initTasks"); var sandbox = require("./sandbox"); var consent = require("./consent"); var introduction = require("./introduction"); var questionnaire = re...
import React from 'react'; import PropTypes from 'prop-types'; import { makeStyles } from '@material-ui/core/styles'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableHead from '@material-ui/core/TableHead'...
'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...
// Package Imports import React, { useState } from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import Button from '@material-ui/core/Button'; import CloseIcon from '@material-ui/icons/Close'; import Link from '@material-ui/core/Link'; import Popover from '@material-ui/core/Popov...
import React from "react"; import { Container, Row, Col, Form, Input, FormGroup, FormText, InputGroup, InputGroupAddon, InputGroupText, Button, Navbar, NavbarBrand, Nav, NavItem, NavLink } from "reactstrap"; import { saveTransaction, arweave } from "../../util"; import academicSchema f...
$.fn.isOnScreen = function() { var win = $(window); var viewport = { top: win.scrollTop(), left: win.scrollLeft() }; viewport.right = viewport.left + win.width(); viewport.bottom = viewport.top + win.height(); var bounds = this.offset(); bounds.right = bounds.left + this.o...
'use strict'; //global variables var junkNames = []; var skipCounter = 0; var junkClicks = []; var junkViews = []; var userName; console.log(junkClicks); //variables that have data pushed to them Junk.allJunk = []; Junk.totalClicks = 0; Junk.lastShown = []; //retrieves elements from the main document(index.html) var...
var arrayMethods = {} ;[ 'concat', 'copyWithin', 'entries', 'every', 'fill', 'filter', 'find', 'findIndex', 'forEach', 'includes', 'indexOf', 'join', 'keys', 'lastIndexOf', 'map', 'pop', 'push', 'reduce', 'reduceRight', 'reverse', 'shift', 'slice', 'some', 'sort', 'spl...
/* Copyright 2017 Keyhole Software LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
// Table build main file var category = [] var id = [] var target = 0 document.addEventListener("DOMContentLoaded", function () { invokeTableAndNav(); }); function invokeTableAndNav() { $.getJSON('../data/Services.json', function (Json) { $.each(Json, function (key, value) { if (catego...
/* * Copyright Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
import React, { Component } from 'react'; import { connect } from 'dva'; import { Button, Collapse, Form, Input, Select, } from 'antd'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'; import StandardTable from '@/components/StandardTable'; import styles from '@/pages/Operate.less'; import { ASNDetailsCo...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getWranglerOptions = void 0; const assert_1 = __importDefault(require("assert")); const path_1 =...
var canvas = document.querySelector("canvas"); canvas.height = window.innerHeight; canvas.width = window.innerWidth; var surface; // External File Variables var background = {}; var ground = {}; var loseImage = {}; var restartImg = { x: null, y: null, onPlay: null }; var options = { x: null, y: null, onPlay: null }; v...
import React from "react"; import classNames from 'classnames'; import GameUITabs from "components/CustomTabs/GameUITabs.js"; import ResizeModal from './sections/ResizeModal.js'; import TilesTab from "./sections/TilesTab.tsx"; import WallsTab from "./sections/WallsTab.tsx"; import ObjectsTab from "./sections/ObjectsT...
/* The SerGIS Project - sergis-server Copyright (c) 2015, SerGIS Project Contributors. All rights reserved. Use of this source code is governed by the MIT License, which can be found in the LICENSE.txt file. */ // This file handles everything having to do with serving games through // sergis-client. ...
var N3 = require('n3'); var spotlight = require('dbpedia-spotlight'); var colors = require('colors'); var Q = require('q'); var Util = require('./utilities.js'); var store = N3.Store(); var config; var prefixes = { dcat: "http://www.w3.org/ns/dcat#", dc: "http://purl.org/dc/terms/", foaf: "http://xmlns.com/foaf...
var print = console.log; var data; var players = {}; // indexed by id var player; // self var chats; var socket; var last_chat_length = 0; var role_select = {}; // indexed by role string, number of thing $(document).ready(function(){ socket = new MTSocket("player"); socket.onReceiveEvent("EMIT", function(payload){ ...
const PrivateKatinrunFoudation = artifacts.require("./PrivateKatinrunFoudation.sol") const KTFForTestMigration = artifacts.require("./KTFForTestMigration.sol") const BigNumber = require('bignumber.js'); contract("PrivateKatinrunFoudation", async (accounts) => { let pktf let ktf let owner let user1 let user...
import React, { useState, useEffect } from 'react'; import moment from 'moment'; import { Doughnut, Bar, Line } from 'react-chartjs-2'; import ApiClient from '@/services/ApiClient'; import { useAuth0 } from "@auth0/auth0-react"; import './GroupsDisplay.css' /** * Don't be scared! There are a lot of state properties. ...
import React, { useState } from 'react' import { css } from '@emotion/react' import { Link } from 'gatsby' import IconX from '../SVGs/IconX' import StatisticsStatesGraph from './StatisticsStatesGraph' import StatisticsStatesFactsContainer from './StatisticsStatesFactsContainer' import Downshift from 'downshift' import...
/* NLQ related code */ var tagify = new Tagify($('#nlq')[0], { mode: 'mix', pattern: /"/, enforceWhiteList: true, // Initial loading whitelist whitelist: get_initial_whitelist($('#nlq').val()) }); var controller = false; tagify.on('input', function (e) { let m = e.detail && e.detail.textContent.match(/"(.+)/);...
var keywords = "sports+apps+news"; var postTitle; var postLink; var postText; var context; var web; var person; var itemId; var title; // This code runs when the DOM is ready. It ensures the SharePoint // script file sp.js is loaded and then executes sharePointReady() $(document).ready(function () { SP.SOD.exec...
let openFileBtn = document.getElementById("openFile"); let saveFileBtn = document.getElementById("saveFile"); const getExtension = (filePath) => { let mainFile = filePath.split("\\").pop(); let ext = mainFile.split(".").pop(); return ext; }; const getMode = (extension) => { let modeInfo = CodeMirror.findModeB...
// This file is required by the index.html file and will // be executed in the renderer process for that window. // All of the Node.js APIs are available in this process. const NodeSSH = require('node-ssh').NodeSSH; const ssh = new NodeSSH(); const { ipcRenderer } = require('electron'); const Dialogs = require('dialog...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. const { AttachmentLayoutTypes, ActivityTypes, CardFactory } = require('botbuilder'); const { ChoicePrompt, DialogSet, DialogTurnStatus, ListStyle } = require('botbuilder-dialogs'); /** * RichCardsBot prompts a user to sel...
import React, { Component, useEffect } from "react"; import { Link, withRouter } from "react-router-dom"; import Logo from "../../Assets/images/iconm.png"; import LogoCustomer from "../../Assets/images/icon.png"; import AppBar from "@material-ui/core/AppBar"; import swal from "sweetalert" import CssBaseline from "@mat...
import React, { Component, Fragment } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { Link } from 'react-router-dom'; import { setAgencyData } from 'Actions'; import BasicInformation from './BasicInformation'; import OwnerInfo...
//import './wdyr'; import React from 'react'; import ReactDOM from 'react-dom'; import { App } from './components/App'; import {BrowserRouter as Router} from 'react-router-dom' import { ApolloProvider, ApolloClient, InMemoryCache, from, split, HttpLink } from '@apollo/client'; import { WebSocketLink } from "@apollo/cli...
import keyboard from 'core/keyboard'; import { DEL_CIRCLE_SVG_PATH } from 'core/pages/popup/constants'; import reducerMap from './inputs-to-reducer'; import { updateKeybinding, resetKeyboardToDefaults, updateFuzzyThresholdRange, updateCheckbox, updateFuzzyCheckbox, updateFuzzySearchKeys, updateNumber, r...
/* * Copyright 2014-2019 Logo Business Solutions * (a.k.a. LOGO YAZILIM SAN. VE TIC. A.S) * * 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...
export const infoChapterCode = { "0": "000-Function, data for plans and description", "1": "100-Operation", "2": "200-Servicing", "3": "300-Examinations, tests and checks", "4": "400-Fault reports and isolation procedures", "5": "500-Disconnect, remove and disassemble procedures", "6": "600-Repairs and lo...
import React, {useState} from 'react'; import {useQuery, useMutation} from '@apollo/client'; import {NavLink, useHistory} from 'react-router-dom'; import {MY_PROFILE, ALL_STUDIES} from '../../state/queries'; import {ADD_COLLABORATOR} from '../../state/mutations'; import { Button, Container, Dropdown, Icon, Im...
/** * UCSC Xena Client * http://xena.ucsc.edu * * Zoom-related functions - transforms of drag and drag select events. */ // Dependencies var {chromRangeFromScreen} = require('./exonLayout'); var multi = require('./multi'); var _ = require('./underscore_ext'); // Selectors var directionSelector = ({direction}) =...
var blockNames = require('./block-names.json'); function UnicodeMap(elem) { this.base = 256; this.scale = 5; elem.innerHTML = ''; elem.style.position = 'relative'; this.canvas = this.makeCanvas(elem); this.hoverCanvas = this.makeCanvas(elem); this.ctx = this.canvas.getContext('2d'); th...
'use strict'; const fs = require('fs'); const path = require('path'); const tmp = require('tmp'); const runAce = require('../runAceJS'); tmp.setGracefulCleanup(); let outdir; let tmpdir; let reportPath; beforeEach(() => { outdir = tmp.dirSync({ prefix: 'ace_out_', unsafeCleanup: true }); tmpdir = tmp.dirSync({...
/** Wrapper for REST API calls to server */ import {urlPrefix} from "../actions/Api"; require('es6-promise').polyfill(); import fetch from 'isomorphic-fetch'; import {headers, parseJSON, rest_call, download_file, rest_delete_call} from './utils'; import request from 'superagent'; import { v4 as uuidv4 } from 'uuid';...
'use strict' const f = require('float') const shortid = require('shortid') module.exports = function (sequelize, DataTypes) { // TODO: inject db const Page = sequelize.define('Page', { sid: { type: DataTypes.STRING, primaryKey: true }, id: { type: DataTypes.INTEGER, unique: 'compositeUniqueKey', autoIncreme...
//import {boolean, int8Array} from "@sindresorhus/is"; let logingData = true let threshold = 30 // only record data when above 30 pressure on sensor class Parameters { // // handles setting, saving and retrival of calibration settings // singleton class // constructor (key) { if(!Parameters.instance){ ...
const OPTION_TAG_NAME = 'select-option' const SELECT_TAG_NAME = 'select-dropdown' class SelectOption extends HTMLElement { constructor() { super() const observer = new MutationObserver( mutations => this.update(mutations) ) observer.observe(this, { childList:true, subtree: true, attributes:...
import _ from 'lodash'; import { logger } from 'lib/logger'; import { has } from 'lib/utilities'; import { buildErrorMessage } from 'lib/error-helpers'; /** * @typedef PaginationArticle * @property {string} slug - The slug of the article */ /** * Fetches a page of articles where pages are a given length * @para...
import PropTypes from "prop-types"; import ImmutablePropTypes from "react-immutable-proptypes"; import React from "react"; import { fromJS } from "immutable"; import AsyncSelect from "react-select/lib/Async"; import AsyncSelectCreatable from "react-select/lib/AsyncCreatable"; import { Container, PlusListItem, UL } fr...
"use strict"; var system = require('system'), host = 'localhost'; if (system.args[1]){ host = system.args[1]; } var wsUrl = 'ws://'+host+':8887', ws = new WebSocket('ws://'+host+':8887'), pageMap = new Map(); var setToValue = function (obj, value, path) { var path = path.split('.'), parent = obj,...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const vscode_languageserver_protocol_1 = require("vscode-languageserver-protocol"); const completion_1 = tslib_1.__importDefault(require("../completion")); const util_1 = require("../util"); const position_1 =...
import TomaEngine from '../engine/TomaEngine' import UrlHelper from '../helper/UrlHelper'; class AmadeusSPCTomaAdapter { constructor(logger, options = {}) { this.config = { crs: { catalogFilePath: 'ExternalCatalog.js', genderTypes: {}, } }; ...
const FULLY_PAID_EXAMPLE = { loan_amnt: 12000, term: "36 months", emp_length: "10+ years", home_ownership: "MORTGAGE", annual_inc: 68000, purpose: "debt_consolidation", dti: 17.4, delinq_2yrs: 0, cr_hist_age_mths: 178, fico_range_low: 690, fico_range_high: 694, inq_last_6mths: 0, inv_mths_sinc...
/** * Set a cookie value * * @param string name * @param string value * @param int days Specify 0 for session-only cookie * */ function CommentFormSetCookie(name, value, days) { var cookieValue = name + "=" + escape(value) + ";path=/"; if(days == null) days = 0; if(days > 0) { var today = new Date(); var...
'use strict'; function escapeHTML(string) { return string.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;'); } function getCleanName(feature, property){ //return string stipped of html codes return escapeHTML(feature.getProperty(property)); } function getKeywordUrls(mainUrl, keywordArray){ ...
var Card = /** @class */ (function () { function Card(hiragana, english, card) { this._card = card; this._hiragana = hiragana; this._english = english; } Card.prototype.Flip = function () { if (!this._card.classList.contains('flipped')) this._card.classList.add('f...
var serviceUrl = getServiceURL(); var authToken = "<PASSWORD> " + $.cookie('<PASSWORD>'); let plant_level_element; let camera_level_element; var selected_Plant_ID; //var console = {}; //console.log = function(){}; Highcharts.setOptions({ global: { useUTC: false } }); function getFrameFunction(timestamp, id) {...
const { getTypeFromKey, getReverseRelatedField, getLastWord, rightTrim } = require('./name_converter'); var fs = require('fs'), util = require('util'), JSONStream = require('JSONStream'); var generator = require('./qlgenerator'); var enumFromKey = { "Nervousness": "EnumSurveysIntakeQuestionsChoices" }; var i...
import { Class, meta } from '../core/Core.js'; import '../core/Array.js'; // For Array#include import Obj from '../foundation/Object.js'; import { invokeAfterDelay, cancel } from '../foundation/RunLoop.js'; import '../foundation/Decorators.js'; import XHR from './XHR.js'; const NativeEventSource = window.EventSource; ...
import db from '../db/db' import {getH5Content} from './H5Content' const func_getThumbs = require('./Thumb').getThumbs const func_getComments = require('./Comment').getComments; const TARGET = '03' async function getThumbs(id){ return await func_getThumbs(id,TARGET); } async function getComments(id){ retur...