text
stringlengths
3.22k
29.5k
/* eslint object-curly-newline: 0, import/prefer-default-export: 0 */ /** * nvlps-currency Currency Library for nvlps.io * * Copyright (c) 2020 Asymworks, LLC. * * The nvlps-currency library may be freely distributed under the terms of * the BSD license. For all licensing information, details and documenta...
import _filter from "lodash/filter"; import _find from "lodash/find"; import _forEach from "lodash/forEach"; import alertify from "alertifyjs/build/alertify.min"; import APIConfig from "../../../../../utils/config"; class PersonalCreateProfileController { constructor(PreloadService, AuthorizationService, HelperServi...
const StarNotary = artifacts.require('./starNotary.sol') var accounts; var owner; contract('StarNotary', (accs) => { accounts = accs; owner = accounts[0]; }); it('can Create a Star', async() => { let tokenId = 770001; let instance = await StarNotary.deployed(); await instance.createStar('Aw...
import { createSlice, createSelector } from '@reduxjs/toolkit'; import omit from 'lodash/omit'; import { getLayerDef, getDatesFromInterval, getBasemapDef, computeDecodeParams } from 'utils/map'; import { BASEMAPS, DATA_LAYERS } from 'components/map'; export const SLICE_NAME = 'map'; export const selectViewports = st...
/* .( . ## . # # ...
'use strict'; const formula = (s, v, black_back) => { return black_back ? v * (1 - s) : 1 - v * (1 - s); } /** * Converts an RGB color value to HSV. Conversion formula * adapted from http://en.wikipedia.org/wiki/HSV_color_space. * Assumes r, g, and b are contained in the set [0, 255] and * returns h, s, and v...
var cy = cytoscape(); // {name : position} dict var prebuilt_model = 'McCormick'; var preset_pos = {}; var preset_pos_static = {}; // {id : position} dict var id_pos = {}; var scapes = {}; var indra_server_addr = "http://172.16.58.3:8000"; var ctxt = {}; grabJSON('static/models/Fallahi_mass_spec/fallahi_data.json'...
import React, { useState } from "react" import Layout from "../components/layout" import Graph from "../algorithms/data-structures/graph/Graph" import GraphEdge from "../algorithms/data-structures/graph/GraphEdge" import GraphVertex from "../algorithms/data-structures/graph/GraphVertex" import Dijsktra from "../algorit...
//Importación especifica de Metodos - getMember delay downloadUser circleImage findUserID putEmoji - RichEmbed - synksPerms - nonecolor Colors - levelup Emojis const { getMember, delay, putEmoji, numberWithCommas, } = require("../../utils/misc/functions"); const { circleImage, downloadUser } = require("../../ut...
/*! * Copyright (c) 2022 Digital Bazaar, Inc. All rights reserved. */ import * as bedrock from '@bedrock/core'; import * as database from '@bedrock/mongodb'; import {createRequire} from 'node:module'; import {encodeId, decodeId, generateId} from './helpers.js'; import {getAppIdentity} from '@bedrock/app-identity'; im...
'use strict'; const Fs = require( 'fs' ); const Express = require( 'express' ); const app = Express(); const server = require( 'http' ).createServer( app ); const Router = Express.Router(); const chartLib = Fs.readFileSync( './node_modules/chart.js/dist/Chart.bundle.min.js', 'utf8' ); const file = __dirname + '/data.d...
// set up a sparse array of all unicode codepoints listed in the index // this will be used for lookup in iso2022jpEncoded var jis0208CPs = []; // index is unicode cp, value is pointer for (var p = 0; p < jis0208.length; p++) { if (jis0208[p] != null && jis0208CPs[jis0208[p]] == null) { jis0208CPs[jis0208[p...
import { createGlobalStyle } from "styled-components" const GlobalStyles = createGlobalStyle` html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, v...
var unnamedId = 0; // used to give states unique names // `$add` and `$remove` are events reserved by Socketron for when a socket // is added or removed from the state. var reservedEventNames = [ '$add', '$remove' ]; // ## State // Define the `State` prototype. // This is the bread and butter of Socketron. // ##...
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const ssl_request_1 = __importDefault(require("../ssl_request")); const config_1 = __importDefault(requ...
'use strict'; import { DeviceEventEmitter, NativeModules } from "react-native"; const { NotificationModule } = NativeModules; export const notification = { create: (attributes) => new Promise((resolve, reject) => { NotificationModule.rGetApplicationName((e) => { reject(e); }, (applicatio...
import { React, Fragment, useState, useEffect} from 'react' import { ChevronLeft, ChevronRight, Delete } from 'react-feather' import { Label, FormGroup, Row, Col, Form, Button } from 'reactstrap' import { useFormik } from "formik" import * as Yup from "yup" import { CInputReact } from 'src/reusable/CInputReact' import ...
/** * Disable console output unless DEBUG mode is enabled. * Add * define('DEBUG', true); * To the end of config/config.php to enable debug mode. * The undefined checks fix the broken ie8 console */ var oc_webroot = "/rj"; /*if (typeof oc_webroot === "undefined") { oc_webroot = location.pathname; var pos = oc_...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { withStyles } from '@material-ui/core/styles'; import Grid from '@material-ui/core/Grid'; import Card from '@material-ui/core/Card'; import CardActions from '@material-ui/core/CardActions'; im...
'use strict'; var _detectPort = require('detect-port'); var _detectPort2 = _interopRequireDefault(_detectPort); var _clearConsole = require('react-dev-utils/clearConsole'); var _clearConsole2 = _interopRequireDefault(_clearConsole); var _getProcessForPort = require('react-dev-utils/getProcessForPort'); var _getPr...
import React, { useEffect, useState, useMemo, useRef, useCallback, memo } from 'react'; import { Animated, TouchableOpacity, TextInput as NativeTextInput } from 'react-native'; import Reanimated, { interpolate } from 'react-native-reanimated'; import Icon from 'react-native-vector-icons/Feather'; impo...
/* * 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...
'use strict'; var insertStaticSegments = require( './insert-static-segments.js' ); var logger = require( './../utilities/logger.js' ); var PATH = require( './../utilities/rd-path.js' ); var Content = require( './../models/content.js' ); var Metadata = require( './../models/metadata.js' ); var SearchResult = require( '...
//Imports //Ball.js --> Ball() //Paddle.js --> Paddle() //margin pixel size from style sheet. const htmlMargin = 10; var canvas; var canvasContext; //Game Loop Data var requestID; var updateInterval; var gameFPS = 60; //Ball Object const ballDiameter = 30; var ball; var oldBallColor; var player; var botPaddle; var...
$(document).ready(function () { bsCustomFileInput.init(); // $('#invoice_date').datetimepicker(); calculate(xx); }); function numberWithCommas(number) { var parts = number.toString().split("."); parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","); return parts.join("."); } $(function () { ...
import EventEmitter from 'event-emitter'; import Merge from 'deepmerge'; import Task from './task'; import MP4Buffer from './MP4Buffer'; import Parser from './parse'; import Errors from './error'; import util from './util'; const URL = '../assets/xgplayer-demo.mp4'; class MP4 { constructor(url, chunkSize = 25 ** 4)...
"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...
jQuery(function ($) { $("#datepicker").datepicker({ minDate: 0, maxDate: "+13D", onSelect: function (d, i) { if (d !== i.lastVal) { $(this).change(); } } }); }); $(document).ready(function () { $("#datepicker").val("Toda...
let encabezado4 = document.querySelectorAll('.contenido-dia h4'); encabezado4.forEach(element => element.setAttribute('class', 'encabezado-h4') ); let contenido = document.querySelectorAll('.contenido-dia'); contenido.forEach(element => element.hidden = true); let errorRegalo = document.querySelector('#errorRegalo'...
/* eslint-disable no-console */ 'use strict'; // def const USER_DATA = 'user_data'; const STOCK_DATA_FILE_NAME = 'stock_data.json'; const NOTIFICATION_SETTING_FILE_NAME = 'notification_setting.json'; const CONFIG_FILE_NAME = 'config.json'; // module const path = require('path'); const os = require('os'); const fs = r...
// Copyright 2020 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-2.0 // // Unless required by applicable law or agreed to in ...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var debug = require('debug'); var ipfsUnixfsImporter = require('ipfs-unixfs-importer'); var dagPB = require('@ipld/dag-pb'); var sha2 = require('multiformats/hashes/sha2'); var stat = require('./stat.js'); var mkdir = require('./mkdir.js'); ...
"use-strict"; var gulp = require('gulp'), plugins = require('gulp-load-plugins'), rename = require('gulp-rename'), plumber = require('gulp-plumber'), clean = require('gulp-clean'), watch = require('gulp-watch'), sass = require('gulp-sass'), less = require('gulp-...
import { appendFileSync, appendFile, readdir, stat as _stat, unlink, readFileSync, statSync, mkdirSync } from 'fs'; import { format } from 'util'; import { join } from 'path'; /** * options: { * section:'...', * retentionMinutes: in minutes, * retentionGranularity: n+('m'|'h'|'d') * retentionCheckInter...
import {addSimulation} from 'gModules/simulations/actions' import {addSimulationToFact} from 'gModules/facts/actions' import {NODE_TYPES} from './constants' import {ERROR_TYPES} from './errors' import {Simulator} from './simulator' import e from 'gEngine/engine' function getSpacesAndOrganization(state, graphFilters)...
import React, {useState, useRef} from 'react' import { View, Text, StyleSheet, FlatList, TouchableWithoutFeedback, Image, ScrollView, Animated, Button, } from 'react-native' import { event } from 'react-native-reanimated' import { useNavigation } from '@react-navigation/native' fu...
import React, { Component } from "react"; import { connect } from "react-redux"; import { withRouter } from "react-router-dom"; import { Fade } from "react-reveal"; import { setMoveToFormalTableStatus, showAlert, showCanvas, hideCanvas, } from "../../../../redux/actions"; import { getMoveToFormalVotes, star...
import _ from 'lodash'; import csvWriter from 'csv-write-stream'; import fs from 'fs'; const WORLD_SIZE = 5; const GERMINATION_TIME = 5; const INITIAL_HEIGHT = 8; const INITIAL_WIDTH = 3; const INITIAL_LIFESPAN = 10; const INITIAL_SHADE_TOLERANCE = 25; // out of 100 const MUTATION_FACTOR = 0.5; const scoreHeight =...
/** Main Bot Logic * * Given data extracted by Wit.ai, generate a new context and response. * * */ function generateResponseAndNewContext(context, data, senderId, receiveMessage, cb) { var entities = data.entities; var first_intent = firstEntityValue(data.entities, "intent"); // If we are awaiti...
'use strict'; /** * Maps an instance type to a Architecture that will be used to select the image. */ const INSTANCE_TYPE_TO_ARCH = new Map([ // General Purpose ARM64 ['a1.medium', 'HVM_ARM'], ['a1.large', 'HVM_ARM'], ['a1.xlarge', 'HVM_ARM'], ['a1.2xlarge', 'HVM_ARM'], ['a1.4xlarge', 'H...
var RoonApi = require("node-roon-api"), RoonApiStatus = require("node-roon-api-status"); RoonApiSettings = require("node-roon-api-settings"), RoonApiSourceControl = require("node-roon-api-source-control"), RoonApiVolumeControl = require("node-roon-api-volume-control"), YamahaYXC = require("yamaha-y...
/* * Content-seperated javascript tree widget * Copyright (C) 2005 SilverStripe Limited * Feel free to use this on your websites, but please leave this message in the fies * http://www.silverstripe.com/blog */ /* * Initialise all trees identified by <ul class="tree"> */ function autoInit_trees() { var candidat...
import element from './dom' import {drawSVG} from './svgs' import * as helper from './helper.js'; import config from './config' import state from './state'; const ctx = element.getContext('2d'); const drawRoundedRectangle = (x, y, w, h, r) => { if (w < 2 * r) r = w / 2; if (h < 2 * r) r = h / 2; ctx.beginPath(); ...
const { scroll, click, type, fake, replace, open, waitForResults, dragAbove, compareSnapshot, compareElSnapshot, compareNamedSnapshot, onPage, redirectedTo, nElements, textOnEl, elExists, elHasValue, elDoesNotExist, elBackground, elBorder, ...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Layout, Row, Col, Spin, Modal, Button, Select, Icon, Descriptions, Statistic } from 'antd'; import DappNavbar from "./components/DappNavbar"; import RightDrawerView from "./components/RightDrawe...
const mongoose = require("mongoose"); const Schema = mongoose.Schema; const _ = require("lodash"); const Bot = require("./botModel"); const User = require("./userModel"); const s3 = require("../files/s3"); const { MalformedError } = require("../errors"); const assert = require("assert"); const _Match = new Schema({ ...
import { createElement, Fragment, Component, useCallback, useRef, useEffect, useState, } from '@wordpress/element' import { registerPlugin, withPluginContext } from '@wordpress/plugins' import { PluginSidebar, PluginSidebarMoreMenuItem } from '@wordpress/edit-post' import { withSelect, withDispatch } from '@word...
const express = require('express'); const router = express.Router(); const mongoose = require('mongoose'); const Mongoclient = require('mongodb'); const assert = require('assert'); router.get('/Billing', function(req, res){ res.render('billings') } ); //Post Receipt Handle router.get('/GenerateReceipt:infostring...
/* exported beginSSP, clearButton, returenButton,infoButton,calcButton*/ //初始化数组和对象 let d1 = []; // 存放g1数据的json对象 let d2 = []; // 存放g2数据的json对象 let info = []; let oto = {}; let co = []; let mp = {}; let dtls = []; let tmp1, tmp2, tmp3; let chart; let colorSet; //读入本地ColorSet $.ajax({ url: "data/gen...
import React, { useRef, useEffect, createRef } from "react" import styled from "styled-components" import CustomFluidImage from "../components/CustomFluidImage" import { stripUneededHtml, removeParagraphsTags, processLink, replaceDogName, replaceOwnerName, getCssDisplayState } from "../utils/displayUtils"...
/// <reference path="jquery.d.ts" /> /// <reference path="misc-types.d.ts" /> /** * L10NSharp LocalizationManager for javascript. * * For Bloom 2.0: Since the javascript files are being loaded using file:// urls, ajax is not possible * so the dictionary is loaded into the DOM using the C# class RuntimeInformationInject...
/* * MIT License * * Copyright (c) 2021 schulterklopfer/__escapee__ * * 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 strict'; var moment = require('moment'); var _ = require('lodash'); var assert = require('assert'); var cohortUtils = require('./cohort-utils'); function BaseRetentionAnalyser(db, options) { this.db = db; this.options = options || {}; this.debug = options.debug || function() {}; } BaseRetentionAnalyser.pr...
import React, { useState, useEffect } from "react"; import { TouchableOpacity, StyleSheet, Text, View, Image, TouchableWithoutFeedback, KeyboardAvoidingView, Keyboard, Platform, TextInput, Button, } from "react-native"; // import { Container, Header, Content, Footer, FooterTab, Button, Icon, Text,...
#!/usr/bin/env node 'use strict'; // Loading lots of utiltiies into global. global._ = require('lodash'); // https://lodash.com/docs global.ns = require('simple-namespace'); // https://www.npmjs.com/package/simple-namespace global.fs = require('fs-extra'); // https://www.npmjs.com/package/fs.extra global.path = requi...
'use strict' // -- imports const fs = require('fs') const path = require('path') const plantService = require('./services/plant') // -- actions const actions = { } actions.plants = { get: async (req, res) => { const result = await plantService.readAll() res.status(200).json(result) }, post: async (...
<!-- // Ultimate client-side JavaScript client sniff. Version 3.03 // (C) Netscape Communications 1999. Permission granted to reuse and distribute. // Revised 17 May 99 to add is.nav5up and is.ie5up (see below). // Revised 21 Nov 00 to add is.gecko and is.ie5_5 Also Changed is.nav5 and is.nav5up to is.nav6 and is.nav...
import { App, OPENGL_TO_WGPU_MATRIX } from "./common.js"; import { decode } from "./extern/pngs.bundle.js"; import { Vector3, Matrix4, PerspectiveFov, Deg } from "./extern/gmath.bundle.js"; export class CameraController { speed = 0; isLeftPressed = false; isRightPressed = false; isForwardPressed = fals...
import React, { Component } from 'react'; import { Badge, Button, Card, Col, Dropdown, Icon, Input, Modal, Row, Tooltip, } from 'antd'; import PageHeaderWrapper from '@/components/PageHeaderWrapper'; import { Spin } from 'antd'; import styles from './EmailDetail.less'; import 'react-tagsinput/react-...
// before loading the page, check if it has the password var flipbookId = new URL(window.location.href).searchParams.get('id'), defaultColor = "#0000ff", color, text_pages = [], pages_links = [], scale = 1; const button = document.getElementById("fullscreen"); const customise=document.getElementBy...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema, crypto = require('crypto'), validator = require('validator'), path = require('path'), logger = require(path.resolve('./config/lib/log')), generatePassword = require('generate-password'), owasp = r...
const { Client, Collection, messageEmbed, MessageEmbed } = require('discord.js'); const commando = require('discord.js-commando'); const botconfig = require('../../../json/botconfig.json'); const { readFileSync } = require('fs'); const moment = require('moment'); const bot = new Client(); const SQLite = require('better...
var nom =["optine", "optine z", "exeter", "gaiora"]; var pv= [216 , 250 , 143 , 416]; var attaque_cout = [22 , 35 , 14 , 28]; var boss ={ nom : "gaiora", vie : 685, mana: 120, attaque : 38, vie_max : 685 } var ennemie ={ nom : "slime", vie : 68, mana: 6, attaque : 4, vie_max : 48, message : "un slime apparai...
const fs = require('fs'); const _ = require('lodash'); const Fili = require('fili'); const m = require('mathjs'); const mkdirp = require('mkdirp'); const { Matrix, Vector } = require('vectorious'); const brain = require('brain.js'); const dateformat = require('dateformat'); const BLDA = require('./blda'); function nor...
/* globals require, Buffer, log, DUKF */ var I2C = require("i2c"); var BMP085_REGISTER_CAL_AC1 = 0xAA; // R Calibration data (16 bits) var BMP085_REGISTER_CAL_AC2 = 0xAC; // R Calibration data (16 bits) var BMP085_REGISTER_CAL_AC3 = 0xAE; // R Calibration data (16 bits) var B...
/* global module, require, process, console */ var path = require('path'); var url = require('url'); var gulp = require('gulp'); var Vinyl = require('vinyl'); var through2 = require('through2'); var lazypipe = require('lazypipe'); var spawn = require('gulp-spawn'); var exec = require('gulp-exec'); var rename = require...
// Thanks this bug... // https://bugzilla.mozilla.org/show_bug.cgi?id=1508174 if (!(Symbol.iterator in new URLSearchParams().keys())) { URLSearchParams.prototype.entries = function*() { for (const kv of [...this]) { yield kv; } }; URLSearchParams.prototype.keys = function *() { for (const kv of ...
import React, { useRef } from "react"; import { View, StyleSheet, Dimensions, Animated, PanResponder, Text, FlatList, } from "react-native"; import Icon from "../components/Icon"; import Colors from "../constants/Colors"; import { PLANTS } from "../data/dummy"; import PlantsImage from "../components/Plan...
const MODE_SLASH = 0; const MODE_TEXT = 1; const MODE_WHITESPACE = 2; const MODE_TAGNAME = 3; const MODE_COMMENT = 4; const MODE_PROP_SET = 5; const MODE_PROP_APPEND = 6; const CHILD_APPEND = 0; const CHILD_RECURSE = 2; const TAG_SET = 3; const PROPS_ASSIGN = 4; const PROP_SET = MODE_PROP_SET; const PROP_APPEND = MODE_...
var hero_dict = [ {'ID': 102, 'key': 'npc_dota_hero_abaddon', 'name': 'Abaddon'}, {'ID': 73, 'key': 'npc_dota_hero_alchemist', 'name': 'Alchemist'}, {'ID': 68, 'key': 'npc_dota_hero_ancient_apparition', 'name': 'Ancient Apparition'}, {'ID': 1, 'key': 'npc_dota_hero_antimage', 'name': 'Anti-Mage'}, {'ID': 2, '...
/* eslint-disable camelcase, max-len */ /* Rules list * https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/README.md#available-rules */ const semver = require('semver'); const { error, warn, off, isTesting, } = require('../utils'); /** * Attributes order for rule `vue/attributes-or...
import { uiModules } from 'ui/modules'; import uiRoutes from 'ui/routes'; import chrome from 'ui/chrome'; import template from './templates/index.html'; import React from 'react'; import ReactDOM from 'react-dom'; import {EuiImage, EuiStepsHorizontal} from '@elastic/eui'; import Main from './components/main.js'; import...
import React from "react"; import { connect } from 'react-redux'; import { saveAs } from 'file-saver'; import axios from '../../axiosSet'; import TotalTasks from './DashboardComponents/totalTasks'; import PercentageTasks from './DashboardComponents/percentTasks'; import AssignedTasks from './DashboardComponents/assi...
import {BannerBody} from "./adsizes"; import {styles} from './dynamicstyles'; import tippy from "tippy.js"; const mainContent = document.querySelector('.main-content'); const adItems = document.querySelectorAll('.wmg-ad-slot'); const topStickyBanner = document.querySelector('.sticky-top-fluid'); const bottomStickyBanne...
'use strict'; //------ Libraries --------------- const express = require('express'); const superagent = require('superagent'); const cors = require('cors'); const pg = require('pg'); require('dotenv').config(); //------ Global Variables ------ const PORT = process.env.PORT || 3001; const app = express(); const client...
var express = require('express'); var router = express.Router(); var app = express(); var io = require('../app.js') ; var posts = require('../models/posts') ; var conversation = require('../models/conversation') ; var user = require('../models/user') ; /*var csrf = require('csurf') ; var csrfProtection = ...
/*! JsUtils 2022-01-05T08:09:37.912Z */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); // Undefined, Null function isUndefined(value) { return Object.is(value, undefined); } function isNull(value) { return Object.is(value, null); } function isNil(value) { return isUndefined(...
/* coco_kup */ /* * Allow use as CommonJS module */ var define, __slice = [].slice; if (typeof define !== 'function') { define = require('amdefine')(module); } /** * Define AMD module */ define(['./typeOf', './indexOf'], function(typeOf){ var doctypes, tags, addTag, addPartial, Template, render, load; doctype...
techtip.about = function (game) { var text; this.platforms = null; } var map; var layer; var marker; var facing = 'left'; var jumpTimer = 0; var text = ''; var jumpButton; var jump = 2; var counter = 0; var phaserDude; var counterdown = 3; var cnt = 1; var cnt1 = 2; var final_step = 0; var MAP_OBJECTS_INDEX...
import React, { Component } from 'react'; import ToolBar from './components/ToolBar'; import Button from 'react-toolbox/lib/button'; import { RadioGroup, RadioButton } from 'react-toolbox/lib/radio'; import { Area, ComposedChart, Line, CartesianGrid, XAxis, YAxis, Tooltip, Bar, Cell, ReferenceLine } from 'recharts'; im...
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOw...
import React, { Component, Fragment } from 'react' import { Link } from 'react-router-dom' import Grid from '@material-ui/core/Grid' import withStyles from '@material-ui/core/styles/withStyles' import ky from 'ky/umd' import PropTypes from 'prop-types' import PlaylistPreview from '../components/playlists/PlaylistPrevi...
var http = require('http'); var fs = require('fs'); var path = require('path'); var url = require('url'); var Templates = require('./templates'); var Sessions = require('./sessions'); var DB = require('./db'); const { debug } = require('console'); var DIR = path.resolve('.'); global.DIR = DIR; /** * tod...
if ($.cookie("theme_csspath")) { $('link#theme-stylesheet').attr("href", $.cookie("theme_csspath")); } $(function () { animations(); sliders(); fullScreenContainer(); utils(); sliding(); map(); counters(); parallax(); slider(); form(); adminDate(); ...
import { cardREG, commaREG, taskSplitREG, taskCompletedREG, cntrl, separator, stringTrim, nameREG, } from "./regex.js"; import { buildElement, createTask, popup, popupClose, creatreListCard, taskToObject, cardToObject, findAllTasks, findCard, sessionStorageUpdate, } from "./utils.js"...
/** * @author thucvv */ import axios from "axios"; import Api from "../utils/Api"; import { setProductDataImport, setListFileProductImport, setActivePagingImport, setActivePagingListFileImport, setNextPagingImport, setNextPagingListFileImport, setPageNumDataImport, resetDataExport, addNewDataExport...
/************************************************* Function: Common Class for JavaScript Author: Shu.KK 2005.10 *************************************************/ ////////////////////////////////////////////////////////////////////////////// //ClsMWin //can use like:var o = new ClsMWin(mwinID, sTitle, nX, nY, ...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.CollidableSprite = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false;...
"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...
// Generated by BUCKLESCRIPT VERSION 2.1.0, PLEASE EDIT WITH CARE 'use strict'; var $$Map = require("bs-platform/lib/js/map.js"); var List = require("bs-platform/lib/js/list.js"); var Block = require("bs-platform/lib/js/block.js"); var Curry = re...
import React, { useState } from "react"; import { useHistory } from "react-router-dom"; import Col from "../components/Col"; import Row from "../components/Row"; import NavTop from "../components/NavTop"; // import NavBottom from "../components/NavBottom"; import SaveGoalBtn from "../components/SaveGoalBtn"; import Des...
import { SELECTED_DOCUMENT_NEEDED, QUERY_RELEVANT, QUERY_DEACTIVATED } from '../_symbols'; import _ from 'lodash'; import Promise from 'bluebird'; import url from 'url'; import rp from 'request-promise'; import jsonpath from 'jsonpath'; import AbstractQuery from './abstract_query'; import QueryHelper from '../query_hel...
"use strict"; var testCase = require('nodeunit').testCase, path = require('path'), fs = require('fs'), avconv, AvStream; function read(stream, callback) { var output = [], err = []; stream.on('message', function(data) { output.push(data); }); stream.on('e...
const hasWindow = 'undefined' !== typeof window; const doc = hasWindow ? document : null; const escape = encodeURIComponent; const NULL = null; const toString = Object.prototype.toString; const ARRAY_TYPE = '[object Array]'; const OBJECT_TYPE = '[object Object]'; const TRUE = true; const FALSE = !TRUE; /** * 伪造的`prom...
import React, { useState, useEffect, useRef } from 'react'; import { Typography, Button, Grid, TextField, MenuItem, Dialog, DialogTitle, DialogContent, DialogContentText, DialogActions, } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; import Entr...
import { BoundingBox, TileScaling, TileScalingType } from '@ngageoint/geopackage' import isNil from 'lodash/isNil' import throttle from 'lodash/throttle' import imagemin from 'imagemin' import imageminPngquant from 'imagemin-pngquant' import { performSafeGeoPackageOperation, wait, prettyPrintMs, deleteGeoPackag...
import React from 'react'; import {connect} from 'react-redux'; import Pagination from "react-js-pagination"; import CategoryCreate from "./CategoryCreate"; import {startCreateCategory, startDeleteCategory, startEditCategory} from "../../actions/Category"; import Modal from './ModalCategoryDelete' import { notifyCr...
/* * parser/path.js * * Embrace an SVG path. Provide its geometry as solvables, implied constraints (with names local to the path), and * update the SVG path if the solvables ever change. * * References: * - d (MDN docs) * -> https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d */ import { derived, get as...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Helmet from 'react-helmet'; import R from 'ramda'; import qs from 'qs'; import { compose, withHandlers, setStatic, lifecycle } from 'recompose'; import ReactGA from 'react-ga'...
import Shaders from './shaders' class Renderer { constructor(canvas) { this.canvas = canvas; this.height = canvas.height; this.width = canvas.width; this.gl = canvas.getContext("webgl"); this.setBrush(5, 1); this.activationSource = ''; this.persistent = false; this.skip_frames = false; } compil...