text
stringlengths
3.22k
29.5k
/* global jQuery, Handlebars, Sortable */ /* global game, loadTemplates, mergeObject, Application, FormApplication, Dialog */ import { Aspect, Tracker } from "./tracker.js"; import { RGBColor } from "./colors.js"; import Socket from "./socket.js"; /** * Parse handlebar templates included with the aspect tracker. * ...
var color = require('./color.js'), sensors = require('./sensors.js'), tc = require('./tiny-color.js'); class Car { constructor(world, opt) { this.maxSteer = Math.PI / 7 this.maxEngineForce = 10 this.maxBrakeForce = 5 this.maxBackwardForce = 2 this.linearDamping = 0....
const codes = require ('http').STATUS_CODES; // const boom = require ('boom'); const utils = require('../lib/utils'); const ERROR_CODES = { '100': 'Continue', '101': 'Switching Protocols', '102': 'Processing', '200': 'OK', '201': 'Created', '202': 'Accepted', '203': 'Non-Authoritativ...
/* * Autor <NAME> */ // variáveis globais // eventos anexados no documento $(document).on("dblclick","#filter-result table tbody tr",function(){ var a = $(this).find(".edit"); if(!a.length){ a = $(this).find(".view"); } if(a.length){ var url = a.attr("href"); var win = window.open(url,"_blank"); win.fo...
function line_chart(data,id){ var lineChartCanvas = $("#"+id).get(0).getContext("2d"); var lineChart = new Chart(lineChartCanvas); var lineChartOptions = { //Boolean - If we should show the scale at all showScale: true, //Boolean - Whether grid lines are shown across the chart scaleShowGridLines: ...
var fs = require('fs'); var _ = require('lodash'); var he = require('he'); var path = require('path'); var high = require('highlight.js'); var fbHighlighter = require('./feedbackHighlighter'); var Logger = require( __configs + "loggingConfig"); var Helpers = require( __components+ "FileUpload/fileUploadHelpers"); v...
const casa = require('@dwp/govuk-casa'); const express = require('express'); const expressSession = require('express-session'); const path = require('path'); const FileStore = require('session-file-store')(expressSession); const fs = require('fs'); const https = require('https'); const gulp = require('gulp'); require('...
import React, {PropTypes} from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import * as filtering from '../../actions/filterActions.js'; import * as crimeCalls from '../../actions/crimeCallActions.js'; import TableView from './crimeTable/crimeTable.js'; import ColumnSelection ...
/* eslint-disable @next/next/no-img-element */ import Image from 'next/image'; import Link from 'next/link'; import { Fragment, useState, useRef } from 'react'; import { BLOCKS, MARKS } from '@contentful/rich-text-types'; import { documentToReactComponents } from '@contentful/rich-text-react-renderer'; import { Dialog,...
/************************************************************************/ /* FILE: DMAppCompDiscoveryFilter.js */ /* DESCRIPTION: DMApp companion lib discovery filter */ /* VERSION: (see git) */ /* DATE: ...
import url from 'url'; import Utils from './Utils'; import { request } from '../dependencies/request'; import RequestError from './RequestError'; const { getHeaders } = Utils; /** * Get range information from either request headers or query parameters. * @private * @param {Object} req - HTTP request. * @param {O...
// Deps ========================================= import DatePicker from 'react-datepicker'; import moment from 'moment'; import SweetAlert from 'sweetalert-react'; import _ from 'utils'; import showRecommendedTours from '../../modules/recommendedTours'; // Internal ===================================== const { Compon...
$(function () { var App = { baseUrl : window.location.protocol + '//' + window.location.host + '/sales/', csrfToken : $('meta[name="csrf-token"]').attr('content'), init: function () { this.setElements(); this.bindEvents(); }, setElements: function ...
/* * ---SynthWorks AutoCC Beta3 by <NAME> and <NAME> * Copyright © 2014 SYNTHWORKS, LLC * for feedback, suggestions, and support: <EMAIL> */ //---------------------------Helper Functions----------------------------------- function buildOnOffList(fTempo, fDuration, fDelay) { /*Return this list: [onset(ms), durat...
import CONST from '@/const/device'; import {baseMixin, cloneDeep} from '@/const/echarts/base'; import searchChart from '@/common/SearchChart'; import dailyDrawOptionMixin from '@/const/echarts/report/dailyDraw'; import Chart from '@/common/Chart'; import configResource from '@/resource/config'; import historyResource f...
/* Copyright 2019 <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 writing,...
import HederaTag from '../hedera-tags' import { alertBanner, setButtonGroupOptions, smartContractBanner, cryptoTransferBanner } from '../ui-utils' import { tinyBarsToDollarsUnit } from '../hedera/currency' import { cryptoTransferController } from '../viewcontroller/grpc' import getContractCallCo...
// 设置默认PageLayout var defaultPageLayout = [ "list", "sep", "first", "prev", "sep", "manual", "sep", "next", "last" ]; // 设置默认PageSize var defaultPageSize = 20; // 设置默认PageList var defaultPageList = [ 10, 20, 30, 40, 50 ]; // 设置全局的ajax请求 $.ajaxSetup({cache : false}); $(document).ajaxComplete(function(event, xhr, set...
/* eslint-disable import/no-extraneous-dependencies */ import fs from 'fs'; import Beautify from 'js-beautify'; import _ from 'lodash'; import marked from 'marked'; import path from 'path'; import { spawn } from 'child_process'; const Promise = require('promise'); const demoDir = 'src/app/main/documentation/material-...
import * as record from "../../../util/record"; import * as list from "../../../util/list"; import * as event from "../../../util/event"; import { chrome } from "../../../common/globals"; import { assert, crash } from "../../../util/assert"; import { update_indexes, throw_error, callback } from "../../common/util"; e...
#!/usr/bin/env node 'use strict' const _ = require('lodash/fp') const co = require('co') const fs = require('mz/fs') const path = require('path') const requireDir = require('require-dir') const winston = require('winston') const AppOpticsApi = require('./index').AppOpticsApi const logger = new winston.Logger({ lev...
/** * Developer: <NAME> * Date: 14.08.2015 * Copyright: 2009-2016 Comindware® * All Rights Reserved * Published under the MIT license */ import { Handlebars } from 'lib'; import template from '../templates/nativeGrid.hbs'; import ListView from './ListView'; import RowView from './RowView'; impo...
function* textChunkIterator(text, max_words = 3) { let begin = 0; let space_counter = 0; for (let i = 0; i < text.length; i += 1) { if (text[i] === ' ') space_counter += 1 const maxWordsFilled = max_words && space_counter === max_words const textEnds = i === text.length...
import React from "react"; import {Box, Button, Container, Grid, Text} from "theme-ui"; import {TopNav} from "../components/TopNav"; import {Footer} from "../components/Footer"; import {Helmet} from 'react-helmet'; import {BiLink, BiLinkExternal, FcDocument} from "react-icons/all"; import {useCountDown} from "../compon...
var roles = ["top", "jungle", "middle", "bottom", "utility"]; function addEventLog(name) { const eventsNode = document.getElementById('events'); eventsNode.innerHTML = eventsNode.innerHTML + '<tr><td>' + new Date().toLocaleString() + '</td><td>' + name + '</td></tr>'; } function convertTimer(timer) { ...
/* email.js */ /* 1 */ // http://mrclay.org/ /* 2 */ (function(){ /* 3 */ var /* 4 */ reMailto = /^mailto:my_name_is_(\S+)_and_the_domain_is_(\S+)$/, /* 5 */ reRemoveTitleIf = /^my name is/, /* 6 */ oo = window.onload, /* 7 */ fixHrefs = function() { /* 8 */ var i = 0, l, m; /* 9 */ while (l =...
import TrackPlayer, { State } from 'react-native-track-player' import BackgroundTimer from 'react-native-background-timer' import { defaultUrl } from '@/config' const list = [] const defaultUserAgent = 'Mozilla/5.0 (Linux; Android 10; Pixel 3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Mobile Safari/53...
//Importando arquivo site-model.js que possui a classe com as funções de consulta const DB = require('./../listas/selects'); const mysql = require('mysql2'); const config = require('./../../database/config'); const conn = mysql.createConnection(config); //Importando o móduto routes/login.js const jsLogin = require('....
// ===================== js ===================== // ---------------------------------------------- /* diceRollResultsList: Using the inputs of numberOfDice and diceSides, values for each possible roll result or rollOutcome is populated into an array. For example 1d6 sided dice roll will produce [1,2,3,4,5,6]....
//Element to resize scale_object = null; corner = null; member_id = null; time_id = null; //Mouse Position posx = 0; startx = 0; clickx1 = 0; clickx2 = 0; //Object data oldx = 0; max_right = 0; min_left = 0; //max positions posi_null = 0; posi_max = 0; //input fields joiner = null; leaver = null; korrektur = 0; do...
///<reference path="../../../build/Away3D.next.d.ts" /> //<reference path="../../../src/Away3D.ts" /> /* Creating fire effects with particles in Away3D Demonstrates: How to setup a particle geometry and particle animationset in order to simulate fire. How to stagger particle animation instances with different animator ...
import React from "react" import { Link } from "gatsby" import styled from "styled-components" import Zdog from 'zdog'; import { VolumeFull } from "styled-icons/boxicons-solid/VolumeFull" import { Minus } from "styled-icons/boxicons-regular/Minus" import { Plus } from "styled-icons/boxicons-regular/Plus" import { Micro...
import React from 'react' import PropTypes from 'prop-types' import url from 'url' import moment from 'moment' import NLink from 'next/link' import styled from 'styled-components' import { defineMessages, useIntl } from 'react-intl' import { Flex, Box, Link, Text } from 'ooni-components' import { colorNormal, ...
const Sequelize = require('sequelize') const { User, Vote, Street } = require('../../db/models') const { v4: uuidv4 } = require('uuid') const logger = require('../../../lib/logger.js')() const MAX_COMMENT_LENGTH = 280 const SURVEY_FINISHED = 'survey-finished' const generateRandomBallotFetch = ({ redirect = false }) =...
import React, { useEffect, useState } from "react"; import { View, StyleSheet, Text, StatusBar, ScrollView, FlatList, Dimensions, RefreshControl, Button, ImageBackground, useColorScheme, } from "react-native"; import * as Animatable from "react-native-animatable"; import * as Location from "expo-location"; i...
import makeDebug from 'debug' import _ from 'lodash' import { getItems } from 'feathers-hooks-common' import { hooks } from '@kalisio/kdk-core' const debug = makeDebug('kalisio:kNotify:pusher:hooks') export function populatePushObject (hook) { if (hook.type !== 'before') { throw new Error('The \'populate...
import React from 'react'; import { View, Text, Image, Alert, TouchableOpacity, FlatList, StyleSheet, Platform } from 'react-native'; import { Divider, Button } from 'react-native-elements'; import moment from 'moment'; import Icon from 'react-native-vector-icons/MaterialIcons'; import ImgPreviewModal from '...
import React, { useState } from "react" import { InertiaLink as Link, usePage } from "@inertiajs/inertia-react" import TailwindTransition from "components/TailwindTransition.js" import PlaceholderIcon from "components/PlaceholderIcon.js" import useComponentVisible from "hooks/use-component-visible.js" const MobileMen...
import React from 'react'; import { Link } from 'react-router-dom'; import { Container, Row, Col, Image, Button, ButtonGroup, ListGroup, Spinner } from 'react-bootstrap'; import StarRatingComponent from 'react-star-rating-component'; const CardDetail = ({ card, opinion, reqPro, reqCon }) => { let ...
'use strict'; $.contextMenu({ selector: 'g.track', items: $.contextMenu.fromMenu('menu#track') }); var skuapsoMap = angular.module('skuapso-map', []); skuapsoMap .service('skuapso-map', [ 'skuapso-map-init', 'skuapso-map-track', 'skuapso-map-svg-marker', function(map) { return map; } ])...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.sha256 = exports.sha256ripemd160 = exports.ensureHex = exports.isHex = exports.reverseHex = exports.reverseArray = exports.hexXor = exports.num2VarInt = exports.num2hexstring = exports.int2hex = exports.hexstring2str = exports.str2h...
const nav = require('./config/nav.js'); const path = require('path'); module.exports = { evergreen: true, //是否不兼容IE locales: { // 键名是该语言所属的子路径 // 作为特例,默认语言可以使用 '/' 作为其路径。 '/': { lang: 'zh-CN', // 将会被设置为 <html> 的 lang 属性 } }, // lang: 'zh-CN', title: "Dra...
'use strict' import fetch from 'node-fetch' import process from 'process' import stream from 'stream' import Assets from './assets' /** * A trade. * @typedef {object} Trade * @property {string} exchange The exchange on which the trade was executed. * @property {string} baseAsset The base currency. * @prop...
var highest_block=0; var nf = Intl.NumberFormat(); var block_list = []; var node_list = []; var markers = []; function sleep(milliseconds) { const date = Date.now(); let currentDate = null; do { currentDate = Date.now(); } while (currentDate - date < milliseconds); } function throttle(func, wait) { va...
// @flow //import faces from 'facesjs'; import _ from 'underscore'; //import {COMPOSITE_WEIGHTS, PHASE, PLAYER, g, helpers} from '../../common'; //import {idb} from '../db'; import * as championPatch from '../../data/championPatch'; import * as champions from '../../data/champions2'; import * as championPatchL...
#!/usr/bin/env node /* eslint-env node */ /** * ================= * generate_build.js * ================= * * This file allows to produce the main RxPlayer's [modular] build. * * To run it, just call this file through your node.js binary: * ```sh * node generate_build.js * ``` * * For now it heavily relies...
import React, {Component} from 'react' import { Input, Button, Dropdown, UncontrolledDropdown, DropdownToggle, DropdownItem, DropdownMenu, Label, FormFeedback, FormGroup } from 'reactstrap' import AutoCompleteInput from '../AutoCompleteInput/AutoCompleteInput'; import { Redirect ...
// determine the ASN of the connecting IP // node built-ins const dns = require('dns'); const fs = require('fs'); const net = require('net'); // npm modules const async = require('async'); let test_ip = '172.16.17.32'; const providers = []; let conf_providers = [ 'origin.asn.cymru.com', 'asn.route...
// Borrows heavily from http://bl.ocks.org/mbostock/7586334 require('./customEventPolyfill'); var defaultInterpolator = require('./interpolator'), defaultColorScaleGenerator = require('./defaultColorScaleGenerator'); // returns the numerical extents of the dimension values across the data set function defaultDomai...
import React, { useEffect, useState } from 'react'; import Jump from 'react-reveal/Jump'; import Fade from 'react-reveal/Fade'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import moment from 'moment'; import { compose } from 'redux'; import FunkyTitle from '../../components/Fun...
import apiLooper from './apiLooper' import { BigNumber } from 'bignumber.js' import * as bitcoin from 'bitcoinjs-lib' const fetchBalance = (address, withUnconfirmed, apiBitpay, cacheResponse) => { return apiLooper.get(apiBitpay, `/address/${address}/balance/`, { cacheResponse, checkStatus: (answer) => { ...
"use strict"; import fs from "fs"; import path from "path"; import walk from "walkdir"; import md5File from "md5-file"; import log from "npmlog"; function isString(o) { return typeof o === 'string'; } function defaultCallback(err, groups) { if (err) { log.error("fdf", err); } else { groups.forEach(gro...
"use strict"; var App = App || {}; let documentPromise = new Promise(function(resolve, reject) { $(document).ready(function() { console.log("$(document).ready done"); resolve(); }); }); let windowPromise = new Promise(function(resolve, reject) { $(window).on("load", function() { console.log("$(wind...
import React, { useContext, useState, useCallback } from 'react'; import PropTypes from 'prop-types'; import { View, StyleSheet, Image, TouchableOpacity, InteractionManager } from 'react-native'; import { NavigationContext } from 'react-navigation'; import { connect } from 'react-redux'; import NotificationManager from...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isWasm = isWasm; exports.transform = transform; exports.transformSync = transformSync; exports.minify = minify; exports.minifySync = minifySync; exports.bundle = bundle; exports.parse = parse; exports.getBinaryMetadata = getBinaryM...
import React, { useState } from 'react' import PropTypes from 'prop-types' import { Helmet } from 'react-helmet' import { graphql } from 'gatsby' import Layout from '../components/Layout' import Img from "gatsby-image" export const StudentInfoTemplate = ({ name, helmet, image, rarity, affiliation, studentT...
const Discord = require("discord.js"); const client = new Discord.Client(); const config = require('./config.json'); const prefix = config.PREFIX; client.on("ready", () => { console.log(`Estoy listo! Generic Bot ONLINE GOGO `); client.user.setActivity("3 Servidores"); }); client.on('message', async message => { ...
// importing all the modules const cheerio = require('cheerio'); const Papa = require('papaparse') const CSVLIST = [] const fs = require('fs'); const { readJsonFile, writeJsonFile } = require('./utils.js'); // getting the list of all urls var urlList = readJsonFile('data/urls.json') console.log(urlList.length) const ST...
import {handleWindowResize} from './utilities.js' const OBJLoader = require('three-obj-loader') OBJLoader(THREE) var SCREEN_WIDTH = window.innerWidth; var SCREEN_HEIGHT = window.innerHeight; var scene = new THREE.Scene(); var camera = new THREE.PerspectiveCamera( 75, SCREEN_WIDTH/SCREEN_HEIGHT, 0.1, 1000 ); var a...
const validate_number = (el, float = false) => { if(el.value.length != 0) { let value = el.value; let value_parts = [0]; value = value.replace(/[^0-9]+/g, ''); value = parseInt(value); el.value = value; } }; const check_if_empty = (el) => { el.value === '' ? this.valu...
var urlOrigin = window.location.origin; var restapp = "/irisrad" var urlREST = `${urlOrigin}${restapp}/form`; $(document).ajaxError(function (event, jqXHR, ajaxSettings, thrownError) { console.log(jqXHR.status, event, ajaxSettings, thrownError) if (jqXHR.status === 401) { window.location.href = 'login.html'; ...
var val=""; oldlast2=''; oldlast=''; last=''; curr=''; querykey=''; amharic= {"ha":"ሀ" ,"hu": "ሁ" , "hi": "ሂ", "hA": "ሃ", "hE":"ሄ" ,"h":"ህ", "ho":"ሆ" , "le": "ለ", "lu":"ሉ", "li":"ሊ", "la":"ላ", "lE": "ሌ", "l":"ል", "lo":"ሎ", ".ha":"ሐ", ".hu":"ሑ", ".hi":"ሒ", ".ha":"ሓ", ".hE": "ሔ", ".h":"ሕ", "ho":"ሖ", "me":"መ"...
/* eslint-disable no-param-reassign */ import { createSlice, createAsyncThunk } from '@reduxjs/toolkit'; import { getAdditionalUserInfo, signInAnonymously, signOut, updateProfile } from 'firebase/auth'; import { collection, doc, getDoc, setDoc } from 'firebase/firestore'; import { showMessage } from '../common/AlertUti...
import { format, isNull } from "c/utilCommon"; import { nextState } from "./model"; import * as ACTIONS from "./actions"; import { ACCOUNT_DONOR_TYPE, CHANGE_TYPE_UPGRADE, CONTACT_DONOR_TYPE, CHANGE_TYPE_DOWNGRADE, ELEVATE_SUPPORTED_CURRENCIES, ELEVATE_SUPPORTED_COUNTRIES, PERIOD, RECURR...
"use strict"; /** * @typedef {import("../document").Doc} Doc */ const { builders: { breakParent, dedentToRoot, fill, group, hardline, ifBreak, indentIfBreak, indent, line, literalline, softline, }, utils: { cleanDoc, getDocParts, isConcat, replaceTextEndOfLine }, } ...
// Dummy data var tenants = [ { id: '1', name : 'Novartis', accountId: '3'}, { id: '2', name : 'Roche', accountId: '1'}, { id: '3', name : 'Bayer', accountId: '2'}, ]; var studies = [ { id: '1', name : 'Novartis studies'}, { id: '2', name : 'Roche studies'}, { id: '3', name : 'Bayer studies'}, ...
const _ = require("lodash"); const path = require("path"); const fs = require("fs"); const jwt = require("jsonwebtoken"); const decache = require("decache"); const Query = require("./query"); /** * Usage Example * plugin.js * module.exports = { baas: { auth: { Token: { secre...
import Leaflet from 'leaflet'; import React, { Component, createRef } from 'react'; import { Map, Marker, LayersControl, LayerGroup } from 'react-leaflet'; import L from 'leaflet'; import testLocations from './testLocations'; import './markerAnimations.css'; import './normalize.min.css'; import 'leaflet/dist/leaflet.c...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _log = _interopRequireDefault(require("../utils/log")); var _assert = _interopRequireDefault(require("../utils/assert")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default...
const {parserOptions, rules: base} = require('../index'); const version = require('./version'); const v2Rules = { 'vue/no-custom-modifiers-on-v-model': 'error', 'vue/no-multiple-template-root': 'error', 'vue/no-v-for-template-key': 'error', 'vue/no-v-model-argument': 'error', 'vue/valid-v-bind-sync...
const THREE = require("three"); const {CSS3DRenderer} = require('three/examples/jsm/renderers/CSS3DRenderer.js'); const {Controller} = require("./controller"); const {UI} = require("../ui/ui"); const cssScaleDownMatrix = new THREE.Matrix4(); cssScaleDownMatrix.compose(new THREE.Vector3(), new THREE.Quaternion(), new T...
/* Global variables declaration block. DOM elements receiving. */ var year = document.getElementById("year"); var quteTemplate = document.getElementById("quote-template").innerText; var generator = document.getElementById("generator"); var content = document.getElementsByClassName("content")[0]; var nextButton ...
"use strict"; // Exports module.exports = { sendToSlack,SendToline }; // Dependency const request = require('request'); const os = require('os'); // Constants // The events that will trigger the color red const redEvents = ['stop', 'exit', 'delete', 'error', 'kill', 'exception', 'restart overlimit', 'suppressed']...
// STATS SETUP // // For monitoring frame rate and resources (worth keeping) // // var stats = new Stats(); // stats.showPanel( 0 ); // 0: fps, 1: ms, 2: mb, 3+: custom // document.body.appendChild( stats.dom ); // DATA SETUP // var media_list = []; var data = dataFromServer; var fsm = null; // Set DEBUG Flag from U...
// Copyright (c) 2016, <NAME> and contributors // For license information, please see license.txt frappe.ui.form.on('Send TT', { onload: function(frm) { if (frm.doc.docstatus != 1){ var today = get_today() frm.set_value("posting_date", today); var Current_User = user; if (Current_User != "Admini...
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // ~~~~~~~~~~~~~~ letter class ~~~~~~~~~~~~~~ // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ class Letter { constructor(letter) { this.letter = letter; this.xPosition = 0; this.yPosition = 0; this.xSpeed = 0; this.ySpeed = 0; this.xInitial = 0; ...
'use strict'; // MODULES // var argmax = require( 'compute-argmax' ), chebyshev = require( 'compute-chebyshev-distance' ), cosine = require( 'compute-cosine-distance' ), euclidean = require( 'compute-euclidean-distance' ), hamming = require( 'compute-hamming' ), manhattan = require( 'compute-manhattan-distance' ...
/** * @Copyright (c) 2019-present, Zabo & Modular, Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
jQuery(document).ready(function ($) { new WOW().init(); $('.loader_overlay').addClass('loaded'); /*Back to top*/ $('.back-to-top').click(function () { $('html, body').animate({ scrollTop: 0 }, 600); return false; }); $("#owl-slider").owlCarousel({ nav...
import React from "react"; import { connect } from "react-redux"; import { graphql } from "gatsby"; import Grid from "@material-ui/core/Grid"; import Select from "react-select"; import queryString from "query-string" import { EditableBackgroundImage, EditableText, FileUploadEditor } from 'react-easy-editables' ...
const Selectors = { progressiveContainer: 'div.js-diff-progressive-container', fileNavContainer: 'div.file-nav-container', fileNavTree: 'div.file-nav-tree', fileContainer: 'div#files', file: 'div.js-file.js-targetable-element', fileHeader: 'div.file-header', activeFileTreeLabel: '.file-tree__label--file.a...
import React, { useState } from 'react'; import { get } from 'lodash'; import { useHistory } from 'react-router-dom'; import LazyLoad, { forceCheck } from 'react-lazyload'; import Button from '@material-ui/core/Button'; import FormControl from '@material-ui/core/FormControl'; import InputLabel from '@material-ui/core/I...
import React from 'react'; import { Scaler } from "dapparatus"; import Ruler from "./Ruler"; import {CopyToClipboard} from "react-copy-to-clipboard"; import i18n from '../i18n'; import pkutils from './pkutils'; const QRCode = require('qrcode.react'); export default class Advanced extends React.Component { construct...
'use strict'; /** * Cloud Formation Module. Handles stack creation, deletion, and updating. Adds * periodic polling to check stack status. So that stack operations are * synchronous. */ var filesystem = require('fs'); var Promise = require('bluebird'), AWS = require('aws-sdk'), _ = require('lodash'), sp...
'use strict' const fs = require('fs') const path = require('path') const http = require('http') const url = require('url') function startServer(opts_or_port, dbfolder_or_cb, cb) { let opts = opts_or_port if(typeof opts !== 'object') { opts = { port: opts_or_port, dbfolder: dbfolder_or_cb } } ...
/** * Basic function/utility copied from google closure library. * google closure library is published under Apache License 2.0. * @see https://github.com/google/closure-library */ /** * When defining a class Foo with an abstract method bar(), you can do: * Foo.prototype.bar = goog.abstractMethod * * Now if a ...
/***************************************************************** ** Author: <NAME>, <EMAIL> ** ** A plugin for reveal.js allowing to record audio for a slide ** deck. ** ** Version: 1.0.0 ** ** License: MIT license (see LICENSE.md) ** ** Credits: ** - <NAME> for RecordRTC.js ** - <NAME> for JSzip.js ****...
/* * @Author: top.brids * @Date: 2019-12-30 09:09:54 * @Last Modified by: top.brids * @Last Modified time: 2021-08-09 11:26:02 */ import React, { Component } from 'react'; import { View, Text, TouchableWithoutFeedback, TouchableOpacity, Image, StyleSheet, ImageBackground, Pressable } from 'react-native'; import...
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.defineProperty(target, des...
var inventoryScreen = {}; var shapes = require("shapes"); var character = require("character"); inventoryScreen.preload = function(){ game.load.image('thrashcan', 'images/thrashcan.png'); }; var itemSize = 32; var start = {x: itemSize*7, y:itemSize*5,w:5,h:5}; var itemslots = {x: start.x-(2*itemSize), y: start.y,b...
/** * TODO: error descriptions */ const prefix = '@@tr'; let count = 0; const random = () => Math.random() .toString(36) .substring(7); const _Symbol = typeof Symbol === 'undefined' ? description => description + random() : Symbol; const createInternalId = name => _Symbol(`${prefix}/${name}`); ...
'use strict'; import React from 'react'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; import _ from 'underscore'; import { RestMixin } from './rest'; import { curator_page } from './globals'; import { Form, FormMixin, Input } from '../libs/bootstrap/form'; import { Panel } from...
import React, { useCallback, useState } from 'react'; import { Alert, Button, Col, FormFeedback, FormGroup, Input, Label, Row, Card, CardHeader, CardFooter, CardBody, CardText, Spinner, } from 'reactstrap'; import classnames from 'classnames'; import { Field, FieldError, Form } from 'react-jsonschema-for...
/* * (MIT License) * Copyright 2017,2018 <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, modify, ...
import React, { Component } from 'react'; import { withRouter } from 'react-router-dom'; // import { FormattedMessage } from 'react-intl'; import styled, { keyframes } from 'styled-components'; const pullDown = keyframes` 0% { transform: translateY(20%); } 100% { transform: translateY(-20%); } `; cons...
const definitions = require("./cvss_3_0.json"); const { roundUp } = require("./util"); /** * Creates a new CVSS object * * @param {String} vector */ function CVSS(vector) { /** * Retrieves an object of vector's metrics * * @returns {Object} Abbreviations & Vector Value pair */ function getVectorObj...
// pages/carpoolRecord/carpoolRecord.js var timeUtil = require('../../../utils/timeUtils.js'); var orders = require('../../../services/orders.js'); const user = require('../../../services/user.js'); var common = require('../../../services/common.js'); var publisTrip = require('../../../services/publish.js'); var maps =...
const Inquirer = require('../common/inquire'); const fsExtra = require('fs-extra'); const path = require("path"); const fs = require("fs"); const colors = require("colors"); const yaml = require("js-yaml"); const repository = require("./repository"); const BasicFreedom = require("./basicFreedom"); const cache = require...
const Header = require('../components/Header') const Footer = require('../components/Footer') const TransactionTable = require('../components/TransactionTable') const DisclaimerModal = require('../components/DisclaimerModal') const InfoModal = require('../components/InfoModal') const Repository = require('../data/Repos...
var selectionSectionWidth = chartWidth / 15; var chartGroupWidth = chartWidth - selectionSectionWidth; var chartGroup = svg.append('g') .attr('transform', 'translate(' + (margin.left) + ',' + margin.top + ')'); var selectionGroup = svg.append('g') .attr('transform', 'translate(' + (chartGroupWidth + margin.right) +...