text
stringlengths
3.22k
29.5k
import React from 'react'; import { connect } from 'react-redux'; import { Prompt } from 'react-router'; import PropTypes from 'prop-types'; import { Formik, Form, Field } from 'formik'; import moment from 'moment'; import * as Yup from 'yup'; import { Tooltip } from 'reactstrap'; import { CustomField, ErrMsg, Switch }...
////////////////////////MAP CONTAINER/////////////////////////////////////////////// function crime_map(coordinates) { var map = L.map("map", { center: coordinates, zoom: 11 }); // Adding tile layer L.tileLayer("https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={a...
import React, { Fragment } from 'react'; import { Icon, Modal, Row, Col } from 'antd'; import prompt from '@/components/Prompt'; import { editCol, editGutter, listCol, editRow, _PageSize } from '@/utils/constans'; import AdSelect from '@/components/AdSelect'; export function getPageSize(PageSize) { const user = JSO...
/*lunbo img fangda*/ window.onload = function(){ var oDiv=document.getElementById('box'); mouseScroll(oDiv); arrmove(); var aImg = document.getElementsByClassName("img"); for(var i=0;i<aImg.length;i++){ imgmove(aImg[i]); } var oCell=document.getElementById('g-cell'); imgmove(oCell); var aCxk...
var idb, dbobject, search, list, show, triggers, thead, tbody, deletebtn; /* Functions */ var addnew, addnewhandler, addcheckbox, buildtask, displaytasks, hashchangehandler, hide, init, searchhandler, sort, viewentry, updatestatus, deletehandler, errorhandler, timestamp; utils.loadShim(); search = document.getE...
'use strict'; class Table { constructor() { this.fields = []; this.rows = []; } add_field(field) { const {database=null, table=null, field:_field=null, as=null, field_type='--'} = field; // verify`[String|null]..`([database,table,_field]); // verify`Str...
var path = require('path'); var fs = require('fs'); var config = require('../config/config.json'); var waitUntil = require('wait-until'); var port = config.port; var VTTCreator = require('./vtt-creator.js'); var fs = require('fs'); var logFile = config.logFile; //var log = require('simple-node-logger').createSimpleFil...
const express = require("express"); const { Todo, User, PetType, Pet, Visit } = require("../models"); const router = express.Router(); const withAuth = require("../utils/auth"); const fetch = require("node-fetch"); const { sequelize } = require("../models/Pet"); var moment = require("moment"); // require moment().forma...
$(document).ready(function () { closeSidebar(); $(document).on('click', '.btn-edit-harga', function(){ $(this).closest('tr').find('.harga').removeAttr("readonly"); }) // document.getElementById("bdy").classList.remove('MyClass'); $('table').on('click', 'tr .btn-pre-edit', function (e) { e.preve...
/** * Created by jszh on 2018/12/27. */ import React, {Component} from 'react'; import {View,Platform} from "react-native" var TimerMixin = require('react-timer-mixin'); /**============状态管理器============**/ import store from '../store/index_store' import {Provider, connect} from 'react-redux' import {Scene, Router, ...
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { t...
let possiblePos = []; let selectablePos = []; let selectedSquare = null; let castlePossible = false; let enpassant = null; let pawnPromotion = null; const directionOffsets = [8, -8, -1, 1, 7, -7, 9, -9]; const distanceFromEdge = new Array(64); function selectSquare(pos) { if (board[pos] == null) return; if (s...
import { ethers } from 'ethers' import { WalletProvider } from '@/liquality/wallet-provider' import { EthereumNetwork } from '@/liquality/ethereum-networks' import { ensure0x, remove0x, buildTransaction, numberToHex, hexToNumber, normalizeTransactionObject } from '@/liquality/ethereum-utils' import { mnemo...
_ordenes = {}; // Objeto donde mantenemos las ordenes en presentación console.log(_ordenes); max_id = 0; bool_mucho_tiempo = true; cmp_cache = {} // objeto donde almacenamos la última actualización real anti_flood = 0; function timeSince(date) { var seconds = Math.floor((new Date() - date) / 1000); var inter...
'use strict' /* * CSS Parser By <NAME> (http://jsformat.com/css-format.html) * Original code by <NAME>, Mozilla Public License * Use like this: * var opt_str = '.a {color : red}' * var output = cssformat.formatCSSText(opt_str, {}) * alert(output) * */ var conf = { type: 'expanded', no_spaces:...
/***************** Reads lines from the USB port and writes them to a file. This allows us to log data from the Arduino Periodically reads and logs data from the temp/pressure sensor Periodically takes photos/videos and saves them ******************/ const fs = require('fs') const process = require('process') con...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _HttpClientCreator = _interopRequireDefault(require("./HttpClientCreator")); var _Validator = _interopRequireDefault(require("./Validator")); function _interopRequireDefault(obj) { return obj && obj.__esM...
function Player(game, life) { //fetch the game so it can paint on the canvas obj this.game = game; //basic element positions and measurements this.x = 20; this.y = this.game.c.height * 0.63; this.y0 = this.y; this.x0 = this.x; this.w = this.game.c.width * 0.06; this.h = this.game.c.h...
// Initialize Firebase var config = { apiKey: "<KEY>", authDomain: "sharedproyect.firebaseapp.com", databaseURL: "https://sharedproyect.firebaseio.com", projectId: "sharedproyect", storageBucket: "sharedproyect.appspot.com", messagingSenderId: "379754323405" }; firebase.initializeApp(config);...
/** * @name tinyjs-plugin-easy-animation * @overview a easy way to use tiny tween animation * @author zhaizheng.zz * @license MIT */ /** * Tiny.js * @external Tiny * @see {@link http://tinyjs.net/} */ /** * a easy way to use tiny tween animation * * @class EasyAnimation */ import { ...
var config = { type: Phaser.AUTO, width: 1000, height: 1500, physics: { default: 'arcade', arcade: { gravity: { y: 0 }, debug: false } }, scene: { preload: preload, create: create, update: update } }; var game = new Phaser.Game(config); var pointer; var group; var back; var ok; var Seer; var Wi...
import React, { PropTypes, Component } from 'react'; import ReactDOM from 'react-dom'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import cx from 'classnames'; import s from './AnalyticsPageV1.css'; import flexbox from '../../components/flexbox.css'; import Paper from 'material-ui/Paper'; import Ic...
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: MIT-0 /** * The purpose of this function is to retrieve session data if there are seats available for the user * If there is not, an error shaw be returned. */ 'use strict'; const AWS = require('aws-sdk'); const Dynamo...
//List of all hazards var hazard_list = [{ title : "GSM-R failure", severity: 4, likelihood: 3, detection: "Certain", causes:"Lack of GSM jammer detection, physical monitoring and security in stations and around tracks", actions:"Anti GSM jammer techniques, communication protocols, monitoring", },{ title ...
// global variables vv //#region var difficulty = '' var category = '' var dataIndex = 0 var points = 0 var categorySection = document.querySelector("#category-section") var randomSection = document.querySelector("#random") var difficultySection = document.querySelector("#difficulty-section") var startPageBtnContainer...
var pila = []; var matrizActual = mat4.create(); /* ----------------------- TENTIDAD ------------------------ */ function TEntidad(){ } TEntidad.prototype.beginDraw = function(){ console.log("BEGIN DRAW de TENTIDAD"); } TEntidad.prototype.endDraw = function(){ console.log("END DRAW de TENTIDAD"); } /* --------...
const test = require('ava'); const sinon = require('sinon'); const TokenStream = require('./TokenStream.js'); const CharacterStream = require('./CharacterStream.js'); // Macros / Helpers const tokenStreamFromString = input => new TokenStream(new CharacterStream(input)); function testTokenization(t, input, type, v...
/** * Created by kras on 18.08.16. */ 'use strict'; const IGeoDataRepository = require('../interfaces/GeoDataRepository'); const request = require('request'); const Item = require('core/interfaces/DataRepository/lib/Item'); const ClassMeta = require('core/interfaces/MetaRepository/lib/ClassMeta'); const DataDescript...
import * as d3 from 'd3'; import classNames from 'classnames/bind'; import styles from 'css/components/chart'; const cx = classNames.bind(styles); const parseTime = d3.timeParse('%Y-%m-%d'); let stockChart = {}; stockChart.create = function(element, data, state, actions) { //Create the initial svgs and groups le...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = away; var bubbleLetterMap = new Map([['a', 'ⓐ'], ['b', 'ⓑ'], ['c', 'ⓒ'], ['d', 'ⓓ'], ['e', 'ⓔ'], ['f', 'ⓕ'], ['g', 'ⓖ'], ['h', 'ⓗ'], ['i', 'ⓘ'], ['j', 'ⓙ'], ['k', 'ⓚ'], ['l', 'ⓛ'], ['m', 'ⓜ'], ['n', 'ⓝ'], ['o', 'ⓞ'], [...
//-- Filename: //-- positivity_and_fatality.js //-- //-- Author: //-- <NAME> function PAF_InitFig(wrap) { if (wrap.tag.includes('mini')) GP_InitFig_Mini(wrap); else if (wrap.tag.includes('overall')) GP_InitFig_Overall(wrap); else GP_InitFig_Standard(wrap); } function PAF_ResetText() { if (LS_...
import React, { Component } from 'react' import { Translation } from "react-i18next"; import { Link } from 'react-router-dom'; import Badge from "react-bootstrap/Badge"; import {Col,Row, Container,} from "reactstrap"; import {Modal,Button} from 'react-bootstrap'; import * as Constant from '../../../Base/Constant'; impo...
//FUNCTIONS BEGIN HERE let temp = ""; let empty_pos = 16; let shuffle_dificulty = 1; const resultAlert = document.getElementById("result"); //MOVE THE TILE BASED ONCLICK EVENT const move = (id) => { let movable_pos = exchangeable(id); let constrictMoment = isThere(movable_pos, empty_pos); if (constrictMoment) ...
import { observable, action, autorun } from 'mobx' import axios from 'axios' import moment from 'moment' import uuid from 'uuid' import storedObservable from 'mobx-stored' import Serialport from 'serialport' import settings from '../../config' const url = settings.checkinServerUrl const defaultDb = { scanner: { ...
var AP=Array.prototype, slice=AP.slice, global=this||window, isBrowser=global.toString()==="[object Window]"; /** Build sorted Set from array. This function will corrupt the original array Proper usage:a=Set(a); @param {ArrayLike} a @return {Set} return new ArrayLike Set */ function Set(a,_sorted) { if ...
// let arr = [ // {name: "Max", money: 987000}, // {name: "Ira", money: 18904}, // {name: "Nick", money: 3402}, // {name: "Olga", money: 12345}, // {name: "Ter", money: 76844}, // {name: "Bvf", money: 6784}, // ] // arr.sort((a, b) => { // return a.money - b.money // }) // console.log(arr) const towns ...
'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; descriptor.configurable = true; if ("...
var filter, mainCore = {}, detailRequired = [], saveBtn; var mafrOrderUuid, weavingsop,weavingStatus; $(function () { $("#form").formWizard({ id: "clothOrderDetailUuid", url: "/api/manufacture/order/template/" + uuid, mainData: "response.manufactureOrderCore", noData: "findnodata", customizeForm: ...
const http = require('http') const express = require('express') const mongoose = require('mongoose'); const morgan = require('morgan'); const AdminBro = require('admin-bro'); const AdminBroExpress = require('admin-bro-expressjs'); const AdminBroMongoose = require('admin-bro-mongoose'); const bodyParser = require("body-...
import React from 'react' import { Link, graphql, StaticQuery } from 'gatsby' import PropTypes from 'prop-types' import styled from 'styled-components' import Fade from 'react-reveal/Fade' import Img from 'gatsby-image' // import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' // import '../../utils/fontaweso...
import React, { useState, useEffect } from "react"; import { Card, CardHeader, CardActions, CardMedia, Typography, Button, List, ListItem, ListItemAvatar, ListItemSecondaryAction, ListSubheader, ListItemIcon, ListItemText, Avatar, Divider, Drawer, CardContent, } from "@material-ui/core...
/** * @license * Copyright 2017 Google 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 * * Unless required by a...
import { Accordion, ActionBar, Alert, AnchorButton, AnchorList, Autocomplete, Banner, Button, ButtonGroup, ButtonList, Calendar, Card, CharacterCount, Checkbox, CheckboxGroup, Clock, CoachMark, ColorInput, ColumnView, CycleButton, Datepicker, Dialog, Drawer, FileUpload, ...
var modal = document.querySelector("#modal"); App = { init: function () { // Is there an injected web3 instance? if (typeof web3 !== 'undefined') { window.web3 = new Web3(web3.currentProvider); } else { // If no injected web3 instance is detected, fall back to Ganach...
import React, { useState } from "react"; import styled from "styled-components"; import Button from "../components/Button"; import Layout from "../components/Layout"; import TextField from "../components/TextField"; import CategoryTitle from "../components/CategoryTitle"; import HelpPrompt from "../components/HelpPromp...
export const originalState = { day: true, phase:0, phase1: 0, phase2: 10000, phase3: 2000000, phase4: 100000000, numChosen: 0, powerups: {}, choosePowerups: true, pathOpened: "", path:"", pathMap: { "Mailman":"A", "Mailbox":"B", "Bootstrap":"C", "Pigeons":"D", "Factory...
"use strict"; /* Copyright (c) 2022, VRAI Labs and/or its affiliates. All rights reserved. * * This software is licensed under the Apache License, Version 2.0 (the * "License") as published by the Apache Software Foundation. * * You may not use this file except in compliance with the License. You may * obtain a c...
/* * File: dataDB_base.js * Version: 1.0 * Description: Settings for working with databables/ajax in polyADB mainpage * Author: <NAME> (Barton Group, CLS, Univ. of Dundee) * Language: Javascript * License: GPL * Project: Pyrwise * * Copyright 2013 <NAME>, all rights reserved. */ /...
const crypto = require('crypto') const assert = require('nanoassert') const base58 = require('bs58') const { bech32 } = require('bech32') const bint = require('bint8array') const Script = require('btc-script-builder') const NETWORKS = require('./networks') const BECH32_PREFIXES = Object.values(NETWORKS).reduce(getSegw...
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. // Licensed under the Amazon Software License // http://aws.amazon.com/asl/ import _ from 'lodash'; import React from 'react'; import { connect } from 'react-redux'; import { decorate, observable, runInAction, action } from 'mobx'; import { obs...
let CONST_SIMPLE_MATCH_QUERY = { 'meta': 'GET jeymart_item/_search', 'query': JSON.stringify({ "query": { "match": { "t_description": "dress" } } }) }; let CONST_SIMPLE_TERMS_AGGS = { 'meta': 'GET jeymart_item/_search', 'query': JSON.stringify({ "size": 0, "aggs": { ...
// SPDX-License-Identifier: Apache-2.0 ////////////////////// // GLOBAL VARIABLES // ////////////////////// // Session is provided on page load var AB_ID = undefined; const abIdInput = $('abId'); if (abIdInput) { AB_ID = abIdInput.value; } var ASSET_UID = ''; const assetInput = $('asset'); if (assetInput) { ASSET...
/* escapes <,>,",',& into html entities */ function escape_html(string) { return htmlspecialchars(string, 'ENT_QUOTES'); } /* * More info at: http://kevin.vanzonneveld.net/techblog/category/php2js * * php.js is copyright 2008 <NAME>. * * Portions copyright Ates Goral (http://magnetiq.com), <NAME>, * _a...
import path from 'path' import fs from 'fs-extra' import chalk from 'chalk' export default class Edgy { constructor( options = { build_directory, elements_directory, } ) { this.build_directory = path.normalize(options.build_directory) this.elements_directory = path.normalize(options.ele...
/* * The MIT License (MIT) * * Copyright (c) 2015 - present Instructure, Inc. * * 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 ri...
import { Dialog } from '@syncfusion/ej2-popups'; import { createElement, setStyleAttribute, remove, isNullOrUndefined, isBlazor } from '@syncfusion/ej2-base'; import * as cls from '../../common/base/css-constant'; import { Grid, Reorder, Resize, ColumnChooser, Toolbar } from '@syncfusion/ej2-grids'; import { VirtualScr...
const productsEl = document.querySelector(".column"); function prodcutsDetails() { /* products.forEach((product) => { productsEl.innerHTML += `<div class="column"> <div class="prntcontainer"> <div class="imgcontainer"> <img src="${element.picture}" alt="${element.product_name}"> ...
const arrayLeftRotation = (a,d) =>{ let array = d.split(' ').map(Number), lentotal = a.split(' ').map(Number); lenarray = lentotal[0],totalrotation = lentotal[1]; console.log('array init: ', d.split(' ')); if(lenarray >= 1 && lenarray <= Math.pow(10,5) && totalrotation >= 1 && totalrotation <= lenarr...
// TODO organize the methods better import CategoryExistsError from "./Error/CategoryExistsError.js"; import CategoryNonexistsError from "./Error/CategoryNonexistsError.js"; import EntryNonexistsError from "./Error/EntryNonexistsError.js"; import ImportError from "./Error/ImportError.js"; import LocaleNonexistsError fr...
// JavaScript I wrote to limit what types of input are allowed to be keyed into a textbox var allowedSpecialCharKeyCodes = [46,8,37,39,35,36,9]; var numberKeyCodes = [44,45, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105]; var commaKeyCode = [188]; var decimalKeyCode = [190,110]; ...
import React, { Component } from 'react'; import { Link, Redirect } from 'react-router-dom'; import DNLCourseCreatingTabs from './DNLCourseCreatingTabs'; import DNLCourseCreatingTabItem from './DNLCourseCreatingTabItem'; import DNLCourseCreatingContent from './DNLCourseCreatingContent'; import DNLCourseCreatingContentP...
'use strict'; angular.module('projects') // General .controller('controllerProjectsList', controllerProjectsList) .controller('controllerProjectsList2', controllerProjectsList2) .controller('controllerProjectsSearch', controllerProjectsSearch); // --------------------------------------------------------------...
/** * * hombot adapter * TODO: * - Alle Commands einbauen * - Verbindungststatus überwachen und state setzen * - Warnung anzeigen, wenn die ausgelesene Versionen nicht die mind. anforderungen haben (prüfen welche Changes im Roboter Forum in den Versionen waren) * - ReadMe anpassen * */ /* jshint -W097 */// js...
// ============================================================================================ // --- BREAKOUT GARDENER :: MODULES :: TCS3472 --- // (c) 2018-2019 <NAME> - breakouts*xoblite.net - http://breakouts.xoblite.net/ // =======================================================================================...
//////////////// // PARAMETERS // //////////////// var currentCell = animalCell; const DRAW_POOLS = true; const DRAW_HITBOXES = false; const CANVAS_WIDTH = 900; const CANVAS_HEIGHT = 660; const RESOURCE_SIZE = 24; const RESOURCE_SPACING_Y = 18; const RESOURCE_SPACING_X = 20; const RESOURCE_MARGIN_Y = 10; const RESOURC...
const userForm = document.querySelector('.registration-screen__reg-form'); const userNameInput = userForm.elements.user_name; const userEmailInput = userForm.elements.user_email; const userPasswordInput = userForm.elements.user_password; const userConfirm18 = userForm.elements.confirm_18; const userConfirm18Label = doc...
const { Client, Interaction, MessageActionRow, MessageButton, MessageEmbed, } = require('discord.js'); const fs = require('fs-extra'); module.exports = { command: { name: 'help', description: '機器人的使用手冊', }, clientPermissions: ['SEND_MESSAGES'], cooldow...
const DEFAULT_FONT = "Impact" const DEFAULT_FONT_SIZE = 60 const DEFAULT_FILL = 'white' const DEFAULT_STROKE = 'black' const MAX_STICKER_WIDTH = 150 const MAX_STICKER_HEIGHT = 100 let gMaxImgWidth = 500 let gElImg,gStickers=[]; let gCanvas, gCtx; let gMouseisDown = false; function initEditor() { initMeme() gEl...
require('./constants.js'); const Log = require('./log.js'); const FuzzySet = require('fuzzyset.js'); const Util = require('./util.js'); const PolUsers = require('./polusers.js') const EqualityAmount = 0.5; const FetchSize = 100; const StartingPosition = 10; //arbitrary number greater than the number of unmanaged roles,...
// pages/history/history.js var app = getApp(); var util = require('../../utils/util.js'); Page({ data: { tabs: ['银票', '商票'], stv: { windowWidth: 0, lineWidth: 0, offset: 0, tStart: false, currentOffsetLeft: 0, }, sliverList: [], businessList: [], list: [], sl...
var ngm = angular.module(module.exports = 'datasha.ui.query', [ 'ngRoute', 'ngMaterial', 'ui.grid', 'ui.grid.pinning', 'ui.grid.edit', 'ui.grid.expandable', 'ui.grid.selection', 'ui.grid.exporter', require('../../api'), require('../../domain'), require('../data/rowEditorDialog'), require('./quickQueryD...
'use strict' const URL = require('url') const { normalizeIPv6, normalizeIPv4, removeDotSegments, recomposeAuthority, normalizeComponentEncoding } = require('./lib/utils') const SCHEMES = require('./lib/schemes') function normalize (uri, options) { if (typeof uri === 'string') { uri = serialize(parse(uri, option...
"use strict"; import doppiojvm from 'doppiojvm'; const util = doppiojvm.VM.Util; var javapoly0; function toPrimitiveTypeName(name) { // TODO: Consider using a map switch(name) { case 'Ljava/lang/Integer;': return "I"; case 'Ljava/lang/Double;': return "D"; case 'Ljava/lang/Byte;': return "...
import { queryfy } from 'docomo-utils'; var LOG = window.console; var defaultOptions = { method: 'GET', url: '', attempt: 1, responseType: 'json', // json, document, "", text, blob, arraybuffer dataType: 'json', // the type of data sent(if any) callback: function(){}, headers: {}, d...
//Calling the inquirer module const inquirer = require('inquirer'); //Calling the jest module const jest = require('jest'); //Calling the fs module const fs = require('fs'); //Calling the employee js const Employee = require('./lib/employee') //Calling the engineer js const Engineer = require('./lib/engineer') //Callin...
const {app, BrowserWindow, ipcMain} = require('electron'); // http://electron.atom.io/docs/api const path = require('path'); // https://nodejs.org/api/path.html const url = require('url'); // https://nodejs.org/api/url.html ipcMain.on('screen:Add', function(e) { mainWindow.loadURL('file://' + ...
import NextAuth from "next-auth"; import Providers from "next-auth/providers"; import { connectToDatabase } from "../../../utils/mongodb"; import { OAuth2Client } from "google-auth-library"; const googleAuthClient = new OAuth2Client(process.env.NEXT_PUBLIC_GOOGLE_ID); export default async function auth(req, res) { ...
'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; descriptor.configurable = true; if (...
import Caver from "caver-js"; import {Spinner} from 'spin.js'; const config = { rpcURL: 'https://api.baobab.klaytn.net:8651' } const cav = new Caver(config.rpcURL); const agContract = new cav.klay.Contract(DEPLOYED_ABI, DEPLOYED_ADDRESS); const App = { auth: { accessType: 'keystore', keystore: '', pas...
/* global Modernizr */ require('modernizr') var $ = require('jquery') var _ = require('lodash') var Handlebars = require('handlebars/runtime') var d3 = require('d3') var MG = require('metrics-graphics') var moment = require('moment') var numeral = require('numeral') require('bootstrap-switch') require('../styles/mai...
import { useRef, useState, useEffect } from 'react'; import {mapStateObjToArray, mapStateArrayToObj, combineStateMapArray, mapStateMap} from './mapState'; import {validateRedaction, validateSelector, validateThunk} from "./validate"; let componentSequence = 1; export const trace = {log: false}; /* createAPI will creat...
/** * ------------------------------------------------------------------------------------------ * [COMPONENT] * @function DashboardMap - Map of the dashboard * * * #HOW TO CALL: * <DashboardMap menu * year * chartData * ...
import Service from '@ember/service'; import InfinityModel from 'ember-infinity/lib/infinity-model'; import InfinityPromiseArray from 'ember-infinity/lib/infinity-promise-array'; import EmberError from '@ember/error'; import { A } from '@ember/array'; import { isEmpty, typeOf } from '@ember/utils'; import { scheduleOnc...
import _range from "lodash/range"; import _sum from "lodash/sum"; import _keys from "lodash/keys"; import _groupBy from "lodash/groupBy"; import _assign from "lodash/assign"; import _defaults from "lodash/defaults"; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var so...
"use strict"; /** * @license * Copyright 2013 Palantir Technologies, 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 * * Unle...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/* eslint no-unused-vars: 0 */ import React from 'react'; import { Button, Header, Form, Icon } from 'semantic-ui-react'; import { DataConsumer } from '../../../context/data'; import AceEditor from 'react-ace'; import CustomNrqlMode from '../../../lib/customNrqlMode'; import 'ace-builds/src-noconflict/theme-monokai'...
"use strict"; /////////////////////////////////////////////////////////// // Constants /////////////////////////////////////////////////////////// var GET_PAGE_DETAILS_SCRIPT = "chrome.runtime.sendMessage( { op: 'getPageDetails', referrer: document.referrer, historylength: history.length, title: document.title,...
/*! ========================================================= * Material Kit PRO React - v1.8.0 ========================================================= * Product Page: https://www.creative-tim.com/product/material-kit-pro-react * Copyright 2019 Creative Tim (https://www.creative-tim.com) * Coded by Creative Tim =...
const BaseItem = require('lib/models/BaseItem'); const MasterKey = require('lib/models/MasterKey'); const Resource = require('lib/models/Resource'); const ResourceService = require('lib/services/ResourceService'); const { Logger } = require('lib/logger.js'); const EventEmitter = require('events'); class DecryptionWork...
/*! @license Firebase v3.3.1 Build: 3.3.1-rc.3 Terms: https://developers.google.com/terms */ 'use strict'; var fs = require('fs'); var https = require('https'); var jwt = require('jsonwebtoken'); var firebase = require('../app-node'); var ALGORITHM = 'RS256'; var ONE_HOUR_IN_SECONDS = 60 * 60; // List of bl...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React, {PureComponent} from 'react'; import PropTypes from 'prop-types'; import {intlShape} from 'react-intl'; import { Platform, View, } from 'react-native'; import {debounce} from 'mattermo...
/* MIT License http://www.opensource.org/licenses/mit-license.php Author <NAME> @sokra */ "use strict"; const path = require("path"); const { ConcatSource, RawSource } = require("webpack-sources"); const ModuleFilenameHelpers = require("./ModuleFilenameHelpers"); const SourceMapDevToolModuleOptionsPlugin = ...
const path = require('path-extra'); const utils = require('../utils'); const fs = require('fs-extra') const request = require('request'); var kill = require('tree-kill'); const { spawn } = require('child_process'); var tough = require('tough-cookie'); var tor = require('tor-request'); var { sleep } = require('sleep'); ...
// The MIT License (MIT) // // Copyright (c) 2018-2020 Camptocamp SA // // 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 // u...
var persistVar = "azIndex"; $(function () { var persisted = getLastPersisted(); $("#execTable").azExecTable({ 'data': execution, 'style': 'tableHistory jobtable translucent', 'headerRowfunc': indexheaderRowfunc, 'dataTablefunc': dataTablefunc, 'dataRowfunc': dataRowfunc, 'prepareChildData': prepareChild...
"use strict"; // Dependencies const path = require("path"); // URI and local file paths // Smart Playlist Modules const smartPlaylistModulesPath = __dirname; const enrichment = require(path.join(smartPlaylistModulesPath, "enrichment.js")); const specialRules = require(path.join(smartPlaylistModulesPath, "specialRules...
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v17.0.0 * @link http://www.ag-grid.com/ * @license MIT */ "use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /* -------------------------------------------------------------------------------------------- * Copyright (c) <NAME>. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. * --...
const gulp = require('gulp'), sass = require('gulp-sass'), autoprefixer = require('gulp-autoprefixer'), cleanCSS = require('gulp-clean-css'), pug = require('gulp-pug'), htmlreplace = require('gulp-html-replace'), browserSync = require('browser-sync'), browserify = require('browserify'), babelify = require('babe...