text stringlengths 3.22k 29.5k |
|---|
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
var d = new Date();
var year = d.getFullYear();
var getDate = function(e) {
var t = new Date(e);
var n = t.getDate();
var r = t.getMonth() + 1;
var i = t.getFullYear();
if (n < 10) {
n = "0" + n
}
if (r < 10) {
r = "0" + r
}
t = i + "-" + r + "-" + n;
return t
... |
import * as d3 from 'd3'
import NeoD3Geometry from './graphGeometry'
import * as vizRenderers from '../renders/init'
import { menu as menuRenderer } from '../renders/menu'
import vizClickHandler from '../utils/clickHandler'
const vizFn = function(el, measureSize, graph, layout, style) {
const viz = { style }
cons... |
#!/usr/bin/env node
// increase the libuv threadpool size to 1.5x the number of logical CPUs.
process.env.UV_THREADPOOL_SIZE = Math.ceil(Math.max(4, require('os').cpus().length * 1.5));
var _ = require('underscore');
var qs = require('querystring');
var tm = require('./lib/tm');
var fs = require('fs');
var path = req... |
let OurUser = null;
let OurSite = null;
var BackendHelper = null;
// This loads the UI with the defaults for the various controls
$( document ).ready(function() {
PageInit()
.catch(function (error) {
console.log(error);
})
});
async function PageInit() {
BackendHelper = new C_Back... |
import React from "react";
import PropTypes from "prop-types";
import classnames from "classnames";
import _ from "lodash";
import moment from "moment";
import Context from "@gisatcz/cross-package-react-context";
import "./style.scss";
class Point extends React.PureComponent {
static contextType = Context.getContex... |
const $scoreDisplay = $("#score-display");
const Branddeur = function (canvas, w, h, x, y, dx, dy) {
const self = this;
this.width = w;
this.height = h;
this.x = x;
this.y = y;
this.dx = dx;
this.dy = dy;
this.loaded = false;
this.image = null;
this.out_of_bounds = false;
this.load_image = function ... |
const fs = require('fs')
const path = require('path')
const arg = process.argv[2]
const IS_REPLACE = true
let unSetting = []
let allSetting = []
if (arg === 'all') {
const modulesChildren = fs.readdirSync(resolve('src'))
modulesChildren.forEach(dir => {
var fsInfo = fs.statSync(resolve(`src/${dir}`))
if... |
/**
* Copyright (c) 2017-present, Viro, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import React, ... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
//IMPORTANT CONFIG VARIABLES
var get_place_radius = 500; //in meters
var retry_delay = 500;
var reset_keys_delay = 2000;
var place_name_threshold = 0.8
var geonames_user = 'arxii';
var keys = [[
'<KEY>',
'<KEY>',
'<KEY>',
''
],[
'<KEY>',
'<KEY>',
'<KEY>',
]];
/*------ APIS -------*/
var places_api = ... |
// D3 helper functions
//utility function
function theItem(d){return d};
// Cast fields to appropriate data type during load of CSV
function castFields(row, skipFields){
var fields = d3.keys(row);
if (skipFields){
fields = fields.filter(function(d){return skipFields.indexOf(d) == -1});
... |
#!/usr/bin/env node
/**
* Copyright (c) 2018-present, <NAME>
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
const aws = require('aws-sdk');
const colors = require('colors/safe');
const fastGlob = require('fast-glob');
const fs = req... |
import React, { useState, useEffect, useRef } from "react";
import {
Button,
Dimensions,
ActivityIndicator,
StyleSheet,
Text,
Image,
TouchableOpacity,
Modal,
View,
} from "react-native";
import * as Device from "expo-device";
import * as Location from "expo-location";
import { Camera } from "expo-came... |
'use strict'
import 'numeral';
import { format } from 'date-fns';
const Constant = {
numberFormat: '0,0',
currencyFormat: '$0,0[.]00',
dateFormat: 'YYYY-MM-DD',
datetimeFormat: 'YYYY-MM-DD h:mm',
urlRegex: /(https?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&%\$#_]*)... |
import React, { useState } from 'react';
import T from 'prop-types';
import styled, { css } from 'styled-components';
import get from 'lodash.get';
import { AccordionFoldTrigger } from '../../../components/accordion';
import { glsp } from '../../../styles/utils/theme-values';
import { themeVal } from '../../../styles/... |
/**
* Created by rishabhkhanna on 14/11/16.
*/
const express = require('express');
const app = express();
const Parse = require('parse/node');
const path = require('path');
const cookieParser = require('cookie-parser');
const bodyParser = require('body-parser');
const expressSession = require('express-session');
v... |
const { Component } = require('@serverless/core')
const tencentAuth = require('serverless-tencent-auth-tool')
const util = require('util')
const klawSync = require('klaw-sync')
const path = require('path')
const fs = require('fs')
const COS = require('cos-nodejs-sdk-v5')
const { utils } = require('@serverless/core')
/... |
import { __assign, __extends } from "tslib";
import { jsx as _jsx } from "react/jsx-runtime";
/**
* Copyright (c) 2018-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
*/
import * as React from 'react';
import { PluginUICom... |
import React, { useState, useEffect } from 'react';
import { Typography, Paper, Table, TableBody, TableCell, TableContainer, TableHead, TableRow } from '@material-ui/core';
import { withStyles } from '@material-ui/core/styles';
import { checker } from '../utils';
import { replies, COLORS } from './staticsvars';
import ... |
let underscore = require('underscore')
let mkdirp = require('mkdirp');
let extract = require('extract-zip')
let isInUnitsComponent = false
let isInVideosComponent = false
let justLoggedOutFlag = false
const Downloader = require('./assets/lib/filedownloader')
let downloadInstances = []
let downloadInstanceKey = 0
var ht... |
// Cambia id de los campoubi relacionados con el control de ubicacionpre
// expandible en 2 filas, que tengan id 0.
function sip_ubicacionpre_expandible_cambia_ids(campoubi, cocoonid) {
control = $('#ubicacionpre-' + campoubi + '-0').parent()
control.find('#ubicacionpre-' + campoubi + '-0').attr('id',
'ubicac... |
/*
* 后台响应数据节点名称
*/
XML_DEFAULT_TOOLBAR = "DefaultToolBar";
XML_MAIN_TREE = "RuleTree";
XML_RULE_INFO = "RuleInfo";
XML_RULE_TO_ROLE_TREE = "Rule2RoleTree";
XML_RULE_TO_ROLE_EXIST_TREE = "Rule2RoleExistTree";
XML_RULE_TO_GROUP_TREE = "Rule2GroupTree";
XML_RULE_TO_GROUP_EXIST_TRE... |
//Canvas Width:400px, Height:400px
//Intro Splash Screen
//Add Original Idea
//Request Animation Frame
//Adding Sound
//Play again feature
//Constants
const canvas = document.querySelector("#canvas");
const context = canvas.getContext('2d');
const middlex = canvas.width/2;
const middley = canvas.height/2;
const scal... |
// Represents a place actors can stand.
function Room(game, x, y, sprite) {
var room = this
room.game = game
room.x = x
room.y = y
room.links = {}
room.entered = new SprigganEventRecurring()
room.left = new SprigganEventRecurring()
room.entered = new SprigganEventRecurring()
room.act... |
/**
* ColorSpace
*
* A singleton containing helpers to easily manipulate colors between different colorspaces.
*/
class ColorSpace {
RGB (R, G, B) {
if (typeof R == 'undefined' || typeof G == 'undefined' || typeof B == 'undefined') {
throw new Error('Invalid parameter(s) provided for "Colo... |
/*jshint node:true strict:false sub:true*/
// Dependencies
var parse = require('connect/lib/utils').parseUrl,
fs = require('fs'),
nPath = require('path');
// Export middleware factory
module.exports = createMiddleware;
// Generate CSS Regex
var cssRegex = function (path) {
return new RegExp((path || '') + '... |
$(document).on("ready",inicio);
function inicio(){
buscar_por_fecha();
}
function convertDateFormat(string){
var info = "";
if(string != null){
info = string.split('-').reverse().join('/');
}
return info;
}
/*aumenta un cero a un digito; es para las horas*/
function aumentar_cero(n... |
import React, {Component} from 'react';
import {
Image, SectionList, Text, TouchableHighlight, TouchableNativeFeedback, View, StyleSheet,
ActivityIndicator, ToastAndroid, Dimensions,
} from "react-native";
import NumberUtils from "../../utils/NumberUtils";
import DateUtils from "../../utils/DateUtils";
import H... |
import { asn1, pki, MCPCertificate as pkiCertificate, OID } from 'mirau'
export function getCrypto () {
return pki.getEngine().subtle
}
export class MCPCertificate extends pkiCertificate {
constructor (subjectOrPEM) {
if (typeof subjectOrPEM === 'string') {
super(subjectOrPEM)
} else if (typeof su... |
"use strict";
const chai = require('chai');
const _ = require('underscore');
const { go } = require('ts-csp');
const registry = require('../../apiSpecification/registry');
const schemaValid = require('../helpers/schema-valid');
const testdb = require('@dawadk/test-util/src/testdb');
const expect = chai.expect;
chai.... |
class DiffRentMethod {
data = null
allData = []
init = (d) => {
console.log(JSON.stringify(d))
d.tariffs = d.tariffs.map((item) => {
return item.map((tariff) => {
return {
value: tariff.value,
inventory: null,
check: false,
checkGlobal: false
... |
/*
* Copyright (c) 2015, <NAME>, https://github.com/sgt-kabukiman
*
* This file is released under the terms of the MIT license. You can find the
* complete text in the attached LICENSE file or online at:
*
* http://www.opensource.org/licenses/mit-license.php
*/
var
BasePlugin = require('./../Base.js'),
utils ... |
const initscrape=require('./initscrape.js')
const puppeteer = require('puppeteer-core');
var io = require('socket.io-client');
const $ = require('cheerio');
const fs = require("fs")
const request=require("request")
const download=require("./download.js")
var url = require('url');
const hlp=require('./helper.js')
funct... |
'use-strict';
const validMagicStrings = [
'webpackMode',
// 'webpackMagicChunkName' gets dealt with current implementation & naming/renaming strategy
'webpackInclude',
'webpackExclude',
'webpackIgnore',
'webpackPreload',
'webpackPrefetch'
];
import traverse from 'babel-traverse';
var protocolAndDomainR... |
'use strict';
/**
* @module
* @copyright paywell Team at byteskode <www.byteskode.com>
* @description bills for paywell virtual wallet
* @since 0.1.0
* @author <NAME><<EMAIL>, <EMAIL>>
* @singleton
* @public
*/
//TODO make use of event emitter
//dependencies
const _ = require('lodash');
const async = requir... |
import React, { useState, useEffect } from 'react';
import {
Checkbox,
Form,
TextArea,
Button,
Confirm,
GridColumn,
Grid,
Divider,
} from 'semantic-ui-react'
const optionsCareType = [
{ key: 'null', text: 'Filtrera Vårdtyp', value: 'null' },
{ key: 'old', text: 'Äldreomsorg', value: 'old' },
{ key: 'youn... |
// pages/findPerson/findPerson.js
var timeUtil = require('../../../utils/timeUtils.js');
var maps = require('../../../utils/maps.js');
var publisTrip = require('../../../services/publish.js');
var common = require('../../../services/common.js');
const user = require('../../../services/user.js');
var app = getApp();
Pag... |
import oidc from '../api/oidc/oidc';
import cl from '../api/oidc/client/clients';
import Boom from '@hapi/boom';
import iat from '../api/oidc/initialAccess/iat';
import account from '../api/accounts/account';
import group from '../api/authGroup/group';
const config = require('../config');
const core = {
async getUse... |
/* eslint-disable react/jsx-props-no-spreading */
/* eslint-disable no-unused-vars */
import React, { useContext, useState, useEffect } from 'react';
import {
Dialog,
DialogTitle,
DialogContent,
DialogActions,
Typography,
Divider,
Button,
Grid,
Select,
MenuItem,
FormControlLabel,
Swi... |
/*
* Copyright 2018 Adobe. All rights reserved.
* This file is licensed to you 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 appli... |
/* eslint max-len: 0 */
import 'react-tooltip-component/lib/tooltip.css';
import React from 'react';
import capitalize from 'capitalize';
import Tooltip from 'react-tooltip-component';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const modelTypes = {
MODEL_S: 'Model S',
MODEL_X: 'Mode... |
// author wudong
// date 20190912
//
// 北京市
// 经度:116.40
// 纬度:39.90
// 经度:116.50
// 纬度:40.90
//山东省 烟台市 烟台市
// 经度:121.43
// 纬度:37.45
// 山西省 吕梁市 交城县
// 经度:112.15
// 纬度:37.55
// 山东临沂
// 34.5,118.5
function mark_2d(view, dir_path, scene) {
positionArr = [[116.40, 39.90], [116.70, 40.20], [121.43, 37.45], [11... |
/**
* Command-line interface.
*
* @module cli
*/
/*jshint boss:true, laxbreak:true*/
function resourceListToString(resourceList, short) {
var nK = resourceList.length,
result = ["\nAvailable resources (", nK, "):\n"],
sIndent = " ",
nI, resource;
for (nI = 0; nI < nK; nI++) {
... |
var fs = require('fs');
var path = require('path');
var unzip = require('unzip');
var exec = require('child_process').exec;
var settings = require('./settings');
var sequentialForEach = require('./functions').sequentialForEach;
var OUT_DIR = settings.get('outputDir');
var REPORTS_DIR = settings.get('reportsDir');
var ... |
//audio node variables
var context;
var convolver;
var compressor;
var masterGainNode;
var effectLevelNode;
var lowPassFilterNode;
var noteTime;
var startTime;
var lastDrawTime = -1;
var LOOP_LENGTH = 16;
var rhythmIndex = 0;
var timeoutId;
var testBuffer = null;
var currentKit = null;
var reverbImpulseResponse = nul... |
var contador = 0, contador2 = 0;
var texto;
/*
* Metodos executados assim que as paginas estivere carregadas
*
* **/
$(document).ready(function(){
$('.ul_li_item li').click(function(){
$('li.current ').removeClass('current').css({'background':'white', 'color':'black'});
$(this).closest('li').add... |
/**
* @module services/Location/transformers
*/
import moment from 'moment';
import environment from 'platform/utilities/environment';
import { VHA_FHIR_ID } from '../../utils/constants';
/**
* Transforms /vaos/systems/983/direct_scheduling_facilities?type_of_care_id=323&parent_code=983GB to
* /Location?organizat... |
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
const { TextDecoder, TextEncoder } = require('util');
const { ReadableStream } = require('web-streams-polyfill');
/**
* @typedef {Object} KVValue
* @property {string} value
* @property {number} expiration
* @property {(* | null)} metadata
*/
/**
* @typedef {Object} KVNamespaceOptions
* @property {function(key:... |
"use strict";
/*
* Wazuh app - Integrity monitoring components
* Copyright (C) 2015-2020 Wazuh, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
... |
var express = require('express');
var router = express.Router();
var MongoClient = require('mongodb').MongoClient;
var url = "mongodb://localhost:27017/";
var visitedCountries = [];
//List of countries by continent
var africa = ['Algeria', 'Angola', 'Benin', 'Botswana', 'Burkina', 'Burundi', 'Cameroon',
'Cape Ver... |
var RegistroPublicacion = '';
var limpiarPublicaciones=actulizarFecha=0;
var parametroAjax = {
'token': $('input[name=_token]').val(),
'tipo': 'POST',
'data': {},
'ruta': '',
'async': false
};
var ManejoRespuestaProcesar = function (respuesta){
if(respuesta.code==200){
var res = JSON.parse(r... |
// ================= Global ========================
var openHours = ['6am ', '7am ', '8am ', '9am ', '10am ', '11am ', '12pm ', '1pm ', '2pm ', '3pm ', '4pm ', '5pm ', '6pm ', '7pm '];
var theBranches = [];
// ================= Random Number Generator ============
function randomNumber(min, max) {
min = Math.ceil(... |
/**
* Copyright 2012-2017, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var Lib = require('../../lib');
var Axes = require('../../plots/cartesian/axes');
var binFunctions = require('... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/*
Study = GBIF dataset
A study has multiple samples. We map those to events.
A sample can be analyzed. this is dones in runs with a pipeline and can the be analysed with multiple intruments
An analyses has a list of taxonomies based on the SSU and LSU (short/long sub-units) - These are mapped to occurrences for that e... |
/**
* @license
* Copyright (c) 2016 srikkbhat. All rights reserved.
*/
// jshint node:true
'use strict';
var async = require('async');
var hydrolysis = require('hydrolysis');
var mkdirp = require('mkdirp');
var url = require('url');
var Vulcan = require('vulcanize');
var fs = require('fs');
var rimraf = require('rim... |
/*jslint node: true */
"use strict";
const _ = require('lodash'),
debug = require('debug')('node-registry:registry'),
EventEmitter = require('../event-emitter'),
OrderedConfiguration = require('../ordered-configuration'),
utils = require('../utils'),
server = require('../server'),
Environment = require('../envir... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { getArchivedOrdersDetail, searchOrders, getDeliveredOrdersDetail, getOrderCount, getN11OrderCount, getN11ArchivedOrdersDetail } from '../actions/index';
import DeliveredOrderDetailItem from './deliveredorderdetail';
import OrderDet... |
import React, { memo, forwardRef, useState, Component, PureComponent, useContext } from 'react';
import { Form, Upload, Button, Icon, message, Modal } from 'antd';
import { isBoolean } from '../../../utils';
import FormService from '../../service';
import { VALIDATE, VALIDATION_MSG } from '../../constants';
import {
... |
var map, mapOptions, featureOpts,
mapContainer = document.getElementById('map-canvas'),
copyContainer = document.getElementById('copy-canvas'),
height = mapContainer.clientHeight,
width = mapContainer.clientWidth,
ctx, imgd,
foreground = [255,0,255,255],
background = [0,0,0,0],
sourceNode, targetNode,
MY_MAPT... |
// eslint-disable-next-line
import * as loginService from '@/views/user/user.service'
// eslint-disable-next-line
import { BasicLayout, BlankLayout, PageView, RouteView } from '@/layouts'
// 前端路由表
const constantRouterComponents = {
// 基础页面 layout 必须引入
BasicLayout: BasicLayout,
BlankLayout: BlankLayout,
RouteVi... |
import React, { Component } from 'react';
import axios from 'axios';
/* import Fuse from 'fuse.js'; */
import Paper from '@material-ui/core/Paper';
import Grid from '@material-ui/core/Grid';
import TableCell from '@material-ui/core/TableCell';
import TableHead from '@material-ui/core/TableHead';
import TableRow from '@... |
import base64 from './base64';
/** typedef noteEvent
* @typedef noteEvent
* @property {int} channel
* @property {int} note
* @property {float|undefined} length
* @property {float} timestamp
* @property {int} track
* @property {string} type
* @property {int|undefined} velocity
*/
/**
* @description Class for... |
/**
List of draggable objects (subclass of List.js)
DragLists should be initialized via the taglib.
Example:
<o2 use Html::DragList/>
<o2 dragList id="myDragList"/>
Other attributes available on draglist element:
allowClass="O2CMS::Obj::Article,O2::Obj::Image" - only allow drop of Article and Image objects
removeOnDr... |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __decorate = (this && this.__decorate) || fu... |
import React from 'react';
import {vExpandRel, vCloseRel, V_SET_ACTIVE, deleteItem} from './ViewActions'; // eslint-disable-line no-unused-vars
import FilterQuery from './FilterQuery';
import {E_SET_EDITITEM} from './EditActions';
// import {I_SET_CLONE} from './InsertActions';
import {routeActions} from 'redux-simple-... |
'use strict';
var byline = require("byline"),
fs = require("fs"),
Polygon = require (__dirname + "/elements/polygon"),
Circle = require (__dirname + "/elements/circle"),
Text = require (__dirname + "/elements/text"),
Point = require (__dirname + "/elements/... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =... |
/**
* @fileoverview Enforce a particular style and formatting for resmoke.py tags.
*/
"use strict";
const jsdiff = require("diff");
const yaml = require("yaml").default;
// The LINEBREAK_MATCHER constant is copied from v5.1.0 of the ast-utils library.
const LINEBREAK_MATCHER = /\r\n|[\r\n\u2028\u2029]/;
const JSTES... |
var cordova = require("cordova");
var httpProxy = require("http-proxy");
var http = require("http");
var fs = require("fs-extra");
module.exports = function(grunt) {
var bowerjson = null;
var dojoModules = new Object();
var dojoNls = new Object();
var dojoOtherFiles = new Object();
grunt.initCon... |
/*******************************************************************************
* Copyright (c) 2015-2019 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... |
const debug = require( 'debug' )( 'get-money' )
const moment = require( 'moment' )
const money = require( 'money-math' )
const Ledger = require( 'ledger-cli' ).Ledger
const l = new Ledger( { file: process.env.BUDGET_FILE } )
module.exports = {
balance: function( done ) {
var cashAssets = {
fallback: 'Total... |
const router = require('koa-router')()
const Goods = require('../models/goods')
const Category = require('../models/category')
const Spec = require('../models/specification')
const fs = require('fs')
const mongoose = require('mongoose')
router.prefix('/goods')
const createItem = function (obj) {
let itemObj = {
... |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { withApollo } from 'react-apollo';
import { Button, Select } from '@digix/gov-ui/components/common/elements/index';
import { Title, CommentFilter, CommentList } from '@digix/gov-ui/pages/proposals/comment/styl... |
var lCropperInstance = [];
var ageInput = false;
var priceInput = false;
var areaInput = false;
var titleInput = false;
var nameInput = false;
var haveAddPic = 0;
var agencyList =[];
var labelList=[];
var latlng = [30.6573435,104.0659188];//天府广场坐标
var formData = new FormData();
window.onload = function () {
'use ... |
var assert = require('assert');
var async = require('async');
var helper = require('../test-helper.js');
var ControlConnection = require('../../lib/control-connection.js');
var Host = require('../../lib/host').Host;
var utils = require('../../lib/utils');
var Metadata = require('../../lib/metadata');
var types = requi... |
const { assert } = require("chai");
//const { parseToken } = require("ethers/lib/utils");
const { ethers, env, mangrove, network } = require("hardhat");
const lc = require("../lib/libcommon.js");
const chalk = require("chalk");
let testSigner = null;
function Big(x) {
return lc.Big(x);
}
describe("Running tests...... |
var Future = require('fibers/future');
var readline = require('readline');
var _ = require('underscore');
var archinfo = require('./archinfo.js');
var files = require('./files.js');
var semver = require('semver');
var os = require('os');
var fs = require('fs');
var utils = exports;
// options:
// - echo (boolean): ... |
import BudgetApp from "./lib/class-budget-app.js";
import Notification from "./lib/class-notification.js";
import getCurrencyFormat from "./lib/utils/currency.js";
const app = new BudgetApp("Budget", "Anonymous");
const ui = {
budget: {
remaining: document.getElementById("budget-remaining"),
spent: document.... |
/** ************************************************************************
*
* Performs the query.
*
* query.js is just a literal object that contains a set of functions.
* It can't be instantiated.
*
* Private Functions:
* . _isHavingNotOperator returns object keys of the not,
* . _isHavingANDandOR... |
import React, { useEffect, useState } from "react";
import { Tabs, Tab, TabPanel, TabList } from "react-web-tabs";
import { Auth } from "aws-amplify";
import { navigate } from "gatsby";
import { toast } from "react-toastify";
import SEO from "../components/seo";
import { signOut } from "../services/authService";
import... |
// pages/myOrder/myOrder.js
Page({
/**
* 页面的初始数据
*/
data: {
hide:false,//隐藏物流
type:0,//切换状态时的参数
hide:false,//暂时没用
hide1:false,//暂时没用
imageUrl: '',//别问,看下面
show: false,//控制下拉列表的显示隐藏,false隐藏、true显示
selectData: [],//下拉列表的数据
index: 0,//选择的下拉列表下标
name:'',//所选的物流公司的名字
i... |
var CONNECTIONS = {};
var STREAMS = {};
var SPRITES = {};
var GAINS = {};
var FILTERS = {};
var MY_PEER_ID = null;
var MY_VELOCITY = [0,0];
var MOUSE_DOWN = false;
var FRICTION = 100; // velocity / s
var LAST_TIME = null;
var app;
var audioCtx;
window.VIDEO_DIAMETER = 72;
window.VIDEO_RADIUS = window.VIDEO_DIAMETER / ... |
import * as i0 from '@angular/core';
import { EventEmitter, ɵisListLikeIterable, TemplateRef, ViewContainerRef, Component, ViewChild, Output, ContentChild, Input, InjectionToken, Directive, Inject, Host, forwardRef, ChangeDetectionStrategy, NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
import { Pager, PagerItem, P... |
/*
* Copyright 2012 LinkedIn Corp.
*
* 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 t... |
/**
* FCViz
* Payload script for summary page - portfolio summary graph
*/
// Portfolio Summary Rendering ------------------------------------------------
function calculateNewTotals() {
return $('.portfolio-component.clicked')
.map((i, e) => +$(e).html())
.toArray()
.reduce((x, y) => x + y, 0)
.t... |
import React, {Component} from 'react'
import {connect} from 'react-redux'
import {EditorState, convertToRaw, convertFromRaw, ContentState} from 'draft-js'
import {Editor} from 'react-draft-wysiwyg'
import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css'
import Mark from 'mark.js'
import {createSentimentAnalysis} fro... |
import React, { Fragment } from 'react';
import { Layout, Menu, Icon, Dropdown, Avatar, Tag } from 'antd';
import { Route, Redirect, Switch } from 'dva/router';
import { getRoutes } from '../utils/utils';
import Authorized from '../utils/Authorized';
import NotFound from '../routes/Exception/404';
import { Link } from ... |
/*淘宝搜索店铺 酷设网 查看更多
* 作者:Poya QQ:931989338
* 购买: 定制主题
* 微信:SoSoITCenter
* 公众平台:SoSoIT
* 讨论群:149663025
* 广告:本人承接各类大中小型管理系统的软件的设计与前端开发、主题开发,有需要的朋友联系我啦
* 模板:https://shop155629335.taobao.com/?spm=a230r.7195193.1997079397.2.diL9ud
* 主题样式:开源版
*/
var _menus_oneLeve=[{"menuid":"0","menuname":"首页","icon":"fa-home"},{"menuid":"1... |
import Document, { Html, Head, Main, NextScript } from 'next/document'
// Disable onContextMenu, except in development
const onContextMenu = process.env.NODE_ENV === 'development'
? ''
: 'document.oncontextmenu = (e) => e.preventDefault()'
class MyDocument extends Document {
static async getInitialProps (ctx) {... |
/**
* Created by alammar on 2/3/17.
*/
var reluGraph = function (containerElement, xStart, xEnd, xDefault, sliderElement, reluInputElement,
reluFormulaInputElement, reluResult, reluGraphResult) {
this.containerElement = containerElement;
this.graphWidth = 400;
this.graphHeigh... |
'use strict';
require('dotenv').config();
var utils = require('../../utils'),
q = require('q'),
_ = require('underscore'),
filename = 'embed/embed-controller.js',
EmbedHash = require('../../models/embedHash'),
pageScan = require('../../api-requests/requests/pageScan'),
PageScanOptions = re... |
'use strict';
const config = require('config');
const http = require('http');
const chai = require('chai');
const gp = require('../services/gpxplayer');
const should = chai.should();
let server;
let gpxPlayer = {};
let points = [];
const test7p1s = { api_key: 'testkey', identifier: '7p1s' };
const test4p2s = { api_ke... |
class Wavepad {
constructor(id, options) {
// default options
this.options = {
waveform: 'square',
filter: 'lowpass',
delay: 0.500,
feedback: 0.4,
barColor: '#1d1c25'
};
// set configurable options
if (typeof optio... |
// **********************************************************
// STARTING JS FILE
// Declaring variables
var mic;
var vol = 0;
var avgVol = 0;
var micInput = 2;
var colorNum;
var idString;
var sound = [];
var thisDevice;
var buttonStatusList = [];
var myActiveButtons = [false,false,false,false,false,false,false,false,... |
// Left and Right Slider
function openLeftSide()
{
let Slide=document.getElementById('leftSlide')
if(screen.width<460)
{
Slide.style.width='205px'
}
else{
Slide.style.width='260px'
}
Slide.style.display='block'
let img=document.getElementById('innerImg')
img.style.... |
import React, { useState, useEffect } from "react";
import { NavLink, useHistory } from "react-router-dom";
import { useSelector, useDispatch } from "react-redux";
import { createComment } from "../../store/posts";
import { Modal } from "../../context/Modal";
// import { IoIosHeart, IoIosHeartEmpty } from "react-icons/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.