text stringlengths 3.22k 29.5k |
|---|
import React, { Fragment } from 'react';
import ReactDOM from 'react-dom';
import classNames from 'classnames';
import './assets/globals.css';
import styles from './App.css';
import { Desktop, Camera, Mic, Mute, Sound } from './assets/svg';
import AppearAfter from './AppearAfter';
import Source from './Source';
import ... |
/**
* HTTP后端数据发送处理函数
* 更新: 2016/04/25
*/
'use strict';
const fs = require('fs'),
iconv = require('iconv-lite'),
logger = require('log4js').getLogger('Request'),
through = require('through'),
superagent = require('superagent'),
superagentProxy = require('superagent-proxy');
// 请求UA
const USER_AGENT = 'an... |
// Content Areas
// Modal
let quizModal = document.querySelector('#quizModal');
// Modal/Quiz
let quizContainerEl = document.querySelector('.quiz');
// Modal/Question and Label
let quizQuestionLabelEl = document.querySelector('.question-label')
let quizCurrentQuestionEl = document.querySelector('#question');
// Modal/... |
/* */
var $ = require("./$"),
cel = require("./$.dom-create"),
cof = require("./$.cof"),
$def = require("./$.def"),
invoke = require("./$.invoke"),
arrayMethod = require("./$.array-methods"),
IE_PROTO = require("./$.uid").safe('__proto__'),
assert = require("./$.assert"),
assertObject =... |
// Begin CONFIG======
const tzDicTitle = "字典";
const tzDicWelcome = "請輸入並按下開始";
const cssUI =
".dicWinMin {position:absolute;top:0;right:0;font-size:24px;cursor: pointer;user-select: none;padding:0 10px 0 10px; overflow:hidden;} "
+ ".dicWin{background: linear-gradient(45deg, rgba(16, 16, 16, 0.7) 0%, rgba(0,0,0,0.9... |
"use strict";
const project = require('./package.json');
const packageName = project.name;
const packageLoader = require('@steedos/service-package-loader');
const objectql = require("@steedos/objectql");
const _ = require('lodash');
const express = require('express');
const path = require('path');
const getQueries = as... |
"use strict";
var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; };
var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } };
var os = _interopRequire(require("os"));
var ... |
const THREE = require('three');
const vertShader = "" +
"varying vec3 vNormal; \n" +
"varying float vType; \n" +
"varying vec3 vAbsolutePosition; \n" +
"attribute float type; \n"+
"uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHTS ]; \n" +
"varying vec4 vDirectionalShadowCoord; \n" +
"v... |
import _ from 'lodash'
import Vue from 'vue'
import Base from './Base'
class ModelPlus extends Base {
get $() {
return this._original
}
get attributes() {
return this._attributes
}
get exists() {
return !! this._attributes.id
}
constructor(attributes = {}, options ... |
/**
* DevExtreme (ui/scheduler/compactAppointmentsHelper.js)
* Version: 20.1.3
* Build date: Fri Apr 24 2020
*
* Copyright (c) 2012 - 2020 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
Object.defineProperty(export... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = positions;
var _getDirection = _interopRequireDefault(require("./getDirection"));
var _positionHelper = require("./positionHelper");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "defa... |
/* eslint-disable prefer-destructuring */
import React, { PureComponent } from 'react';
import {
Card,
Tooltip,
Popconfirm,
Button,
Modal,
message,
Row,
Form,
Input,
Select,
InputNumber,
Tabs,
} from 'antd';
import StandardTable from '@/components/StandardTable';
import TextArea from 'antd/lib/... |
const HttpHelper = require('../http-helper');
const { JSDOM } = require('jsdom');
const HOST = 'mangapark.me';
const ID = 'mangaparkme';
module.exports = class MangaPark {
static get id() {
return ID;
}
static get hostInfo() {
return {
url: HOST,
id: ID,
};
}
static async search(query) {
const re... |
import React from 'react';
import PropTypes from 'prop-types';
import { Trans, translate } from 'react-i18next';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import { withStyles } from '@material-ui/core/styles';
import Decimal from 'decimal.js-light';
import Amount from '../_... |
const path = require('path');
const extend = require('extend');
const { provider } = require('jimple');
/**
* This service reads the targets information and generates what would be the contents of a
* `webpack.config.js` for them.
*/
class WebpackConfiguration {
/**
* Class constructor.
* @param {BuildVersio... |
var UtilsJavascript = require('app/common/utils/utils_javascript');
/****************************************************************************
Batch
var Batch = cc.Class
Batch.create()
// this batch is intended for more flexible or non-standard batching
// (see cc.SpriteBatchNode for basic sprite batching, it ... |
const path = require("path");
require("dotenv").config({
path: path.resolve(__dirname, "..", ".env"),
});
/////
const constants = require("./constants.js");
const bodyParser = require("body-parser");
const express = require("express");
const fetch = require("node-fetch");
const morgan = require("morgan");
const url... |
'use strict';
import hogan from 'hogan.js';
const config = {
serverHost: 'http://127.0.0.1:8088'
};
const token = '';
var _bee = {
renderHtml:function(html, data){
var htmlTemplate = hogan.compile(html);
return htmlTemplate.render(data);
},
ajax: function(param){
console.log( _bee.getToken())
$.ajax({
... |
import pluralize from 'pluralize';
import entityTypes from 'constants/entityTypes';
import useCases from 'constants/useCaseTypes';
import decodeBase64 from 'utils/decodeBase64/decodeBase64';
import { NODE_FRAGMENT } from 'queries/node';
import { DEPLOYMENT_FRAGMENT } from 'queries/deployment';
import { NAMESPACE_FRAGM... |
// Filter for "check"
import React, { Component } from "react";
import { Link } from "react-router-dom";
// import { Route } from "react-router-dom";
import "./recording-styles.css";
import firebase from "../../firebase";
const db = firebase.firestore();
// Add mongoDB and PostgreSQL endpoints as well
class Recording ... |
const SYMBOL_ID_A = 0;
const SYMBOL_ID_J = 1;
const SYMBOL_ID_Q = 2;
const SYMBOL_ID_K = 3;
const SYMBOL_ID_10 = 4;
const SYMBOL_ID_MID_1 = 5;
const SYMBOL_ID_MID_2 = 6;
const SYMBOL_ID_MID_3 = 7;
const SYMBOL_ID_MID_4 = 8;
const SYMBOL_ID_MID_5 = 9;
const SYMBOL_ID_WILD = 10;
const SYMBOL_ID_SCATTER = 11;
const SYMB... |
/**
* Original writed by DGmike
* Forked to implement new usability by <NAME> github.com/mpatrick
* Hosted on CODELAND's github page gituhub.com/codelandev/continent-country
*/
/* Dom Ready */
window.onDomReady = function dgDomReady(fn) {
if (document.addEventListener)
document.addEventListener('DOMCo... |
import { useDispatch, useSelector} from 'react-redux';
import { addNote, deleteNote } from '../reducers/discussionImageNotes';
import { deleteImage } from '../reducers/discussionImages';
import {addImage} from '../reducers/discussionImages';
import Popup from 'reactjs-popup';
import {useEffect, useState} from 'react';
... |
/**
*
*/
"use strict";
var React = require('react');
var TextWithAnnotations = require('./vis/TextWithAnnotations.js')
var AnnotationsSelector = require('./vis/AnnotationsSelector.js')
var Help = require('./help/Help.js')
//import React from 'react/addons';
//import Router from 'react-router';
// not using... |
import Axios from 'axios';
import {getUid, extractXAuthToken, tokensToHeaders, tokensToHeadersMultiPart, withPageAndCount, SessionKeys, useUserDispatch } from '../context/UserContext';
import {log, restBaseUrl} from '../utils/Util';
if (restBaseUrl) {
log(`Setting baseURL to ${restBaseUrl}`);
Axios.defaults.baseU... |
/*
Copyright 2015, 2016 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import withStyles from 'isomorphic-style-loader/withStyles';
import { defineMessages, FormattedMessage, FormattedDate } from 'react-intl';
import { fetchUser, deleteUser } from '../../actions/user';
import { getUser, ... |
// Start here
//var apiKey = "<KEY>"; // My Bing API key. Please get your own at http://bingmapsportal.com/ and use that instead.
var apiKey = "<KEY>"; //Katie's BIN API Key.
var map;
var i_map;
var areaMapStrategy;
var detailMapStrategy;
var detailProtocol;
var wgs = new OpenLayers.Projection("EPSG:4326");
var sm = ... |
var obergrenze=6;
function lade_seite() {
$('#table_ausgabe').replaceWith('<table id="table_ausgabe"></table>');
$('#t_ausgabe').hide();
$('#table_formularinhalt').wrap('<form>').parent('form').trigger('reset');
$('#table_formularinhalt').unwrap();
$('#s_redm option').removeAttr('disabled');
$(... |
const Style = require("./style.js")
const Format = require("./format.js")
/**
* Converts arrays of data into arrays of cell strings
* @param {TtyTable.Config} config
* @param {Array<Array<string>|object|TtyTable.Formatter>} inputData
* @returns {Array<string>}
*/
module.exports.stringifyData = (config, inputData)... |
const Url = Jymfony.Component.Validator.Constraints.Url;
const UrlValidator = Jymfony.Component.Validator.Constraints.UrlValidator;
const { expect } = require('chai');
describe('[Validator] Constraint.UrlValidator', function () {
it ('null should be valid', async () => {
await expect(null).to.be.validated.... |
/* global window _gaq */
import React, { Component } from 'react';
import Autosuggest from 'react-autosuggest';
import FunniesComponent from 'funnies/dist/react';
import axios from 'axios';
import classnames from 'classnames';
import { setInStorage, getFromStorage } from '../../utils/storageUtils';
import getUserOrgan... |
// Refactor this code
// GLOBAL VARIABLES
// svg items class names
const CHRISTMAS_ITEMS = [
"pine",
"top-left-circle",
"top-right-circle",
"center-left-circle",
"center-right-circle",
"bottom-left-circle",
"bottom-right-circle"
];
// sort order current state
let ascendingOrder = {};
const CHRISTMAS_BA... |
import React, { Component } from "react";
import {
Grid,
Form,
Button,
Input,
Message,
Select,
Icon,
Table,
Card
} from "semantic-ui-react";
import Layout from "../../components/Layout";
import investMintFactory from "../../ethereum/investMintFactory";
import web3 from "../../ethereum/web3";
import { ... |
import React, { useMemo } from 'react';
import { Divider, Button } from 'antd';
import classnames from 'classnames';
import { formatMessage, defineMessages } from 'umi/locale';
import constant from '../../constant';
import styles from './index.less';
const messages = defineMessages({
fullMarkLabel: { id: 'app.examin... |
import fs from 'fs'
import aws from 'aws-sdk'
import { promisify, promisifyAll } from 'bluebird'
import gm from 'gm'
import meta from 'musicmetadata'
import mmm from 'mmmagic'
import _ from 'lodash'
import { load as configLoader } from "../../config/config"
let config = configLoader()
promisifyAll(fs)
const mimeMa... |
const EventEmitter = require('events').EventEmitter;
const util = require('util');
const FeedMe = require('feedme');
const NewsEmitter = require('newsemitter');
const http = require('http');
const https = require('https');
const url = require('url');
const zlib = require('... |
import {
View,
StyleSheet,
TouchableOpacity,
Text,
ActivityIndicator,
} from "react-native";
import React, { useState } from "react";
import * as yup from "yup";
import { withFormik } from "formik";
import FieldAdapter from "../Adapter/FieldAdapter";
import RenderField from "../renderField";
import RenderSele... |
const steem = require("steem");
const client = require("./client.js");
const crypto = require ('./crypto');
const config = require('./config.json');
const UIlib = require('./UIlib.js');
const UI = require('./UI.js');
const login = require('./login.js')
cons... |
import React, { Component } from "react";
import * as d3 from 'd3';
import ReactDOM from "react-dom";
import {isEqual} from 'underscore';
var width = (window.innerWidth > 1140? 1140:window.innerWidth) - 60;
var height = window.innerHeight *0.75;
/**
* Graph class handling dynamic and static rendering for ne... |
const debug = require('debug')('dusgarage')
var express = require('express');
var cookieParser = require('cookie-parser')
var bodyParser = require('body-parser')
var app = express();
var request = require('request')
var http = require('http');
var server = http.createServer(app);
var io = require('socket.io').lis... |
var achievements =
{
"slams": {
"message": "<strong>Congratulations!</strong> Now you contribute to the global slams, along with the other haters",
"unlocked": false
},
"sound": {
"message": "<strong>Congratulations!</strong> You have reached your first milestone! Sound unlocked!",
"unlocked": fal... |
var LabelRandomSentence = React.createClass({
getInitialState() {
return {
started: false,
actionStarted: false,
sentence: null
}
},
beginLabeling() {
this.setState({started: true});
this.refs.randomSentence.sendNewRequest({count: 1});
... |
const SmartApp = require('@smartthings/smartapp');
// const stateVariable = require('./state-variable');
const stateVariable = require('@katesthings/smartstate');
/* Define the SmartApp */
module.exports = new SmartApp()
.enableEventLogging() // logs requests and responses as pretty-printed JSON
.configureI18n() ... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var Winston = require("winston");
var BodyParser = require("body-parser");
var request = require("request");
var xml2js = require("xml2js");
var _ = require("underscore");
var Utils = require("../helpers/Utils");
/** CIS datasource
* Provide... |
var test = require('tape')
var ginga = require('ginga')
var transaction = require('level-transactions')
var levi = require('../')
var H = require('highland')
var lv
test('clean up', function (t) {
levi.destroy('./test/db', function (err) {
t.notOk(err, 'destroy')
lv = levi('./test/db')
.use(levi.tokeni... |
/* eslint-disable eqeqeq */
/* eslint-disable no-useless-escape */
/* eslint-disable no-control-regex */
/* eslint-disable no-unused-vars */
/* eslint-disable no-cond-assign */
/* eslint-disable no-redeclare */
var isDecimal_re = /^\s*(\+|-)?((\d+([,\.]\d+)?)|([,\.]\d+))\s*$/;
var CSVParser = {
//------------------... |
'use strict';
var socketio = require('socket.io');
var io = null;
var Row = require('mongoose').model('Row');
var Cell = require('mongoose').model('Cell');
var _ = require('lodash');
var http = require('http');
var Promise = require('bluebird');
// var redis = require('redis');
// var ioredis = require('socket.io-redi... |
// 'use strict';
var util = require('util'),
EventEmitter = require('events'),
Concentrate = require('concentrate'),
DChunks = require('dissolve-chunks'),
ru = DChunks().Rule();
var cmdType = {
"POLL": 0,
"SREQ": 1,
"AREQ": 2,
"SRSP": 3,
"RES0": 4,
"RES1": 5,
"RES2": 6,
... |
////////////////////////
// Write a function named calculateDogAge that:
// takes 1 argument: your puppy's age.
// calculates your dog's age based on the conversion rate of 1 human year to 7 dog years.
// outputs the result to the screen like so: "Your doggie is NN years old in dog years!"
// Add an additional argument... |
function call_getMenu_with_pills(dataIn2, dDiv2, treeType2){
var dataIn2Test = [{"id": "1", "first_name": "name_1", "parent_idr": "1", "depth": "1"},
{"id": "2", "first_name": "name_2", "parent_idr": "1", "depth": "1"},
{"id": "3", "first_name": "name_3",... |
/**
* MIT licensed.
*/
'use strict';
var lodash = require('lodash');
var async = require('async');
var GoogleAuth = require('google-auth-library');
var ResponseParser = require('./response-parser');
var CreateContactXML = require('./create-contact-xml');
var googleAuth = new GoogleAuth();
var GOOGLE_C... |
var networkIds = ['bixi-montreal', 'bixi-toronto', 'capital-bixi', 'hubway',
'capital-bikeshare', 'citi-bike-nyc', 'barclays-cycle-hire'];
var iconCache = {};
function getIcon(freeBikes, emptySlots) {
var cacheKey = freeBikes + '-' + emptySlots;
if (iconCache[cacheKey]) {
return icon... |
import React, { Component } from 'react'
import GMTtoTime from './gmtToTime'
import './questionAtomic.css'
import io from '../../server'
import FlatButton from 'material-ui/FlatButton'
//问题详情,动态页面的问题
const focusLabelStyle = {
color: "#0A964C"
}
const focusStyle = {
float:"left",
height:"20px",
lineHeight:"13px"... |
const isArray = require("./is-array.js");
const isFunction = require("./is-function.js");
const isNumber = require("./is-number.js");
const isPlainObjectInno = require("./internal/is-plain-object-inno.js");
const undefinish = require("@hugoalh/undefinish");
/**
* @private
* @function $checkJSONValue
* @param {any} i... |
'use strict';
/* TODO:
* V build game matrix (4X4).
* V fill board with mines (2).
* V fill numbers next to mines.
* V render board.
* V cover board mith buttons.
* V uncover buttons when clicked .
* V and flag with rightClick and lock button. Remove flag with rightClick.
* V end game when hit mine.
* V reveal neighbo... |
const { SwapProof } = require('./swapProof.js');
const { coerceAddress } = require('./conversions.js');
const { coerceBuffer } = require('./conversions.js');
const assert = require('assert').strict;
const readline = require('readline');
function linearReductionStrategy(
startTime,
endTime,
startPrice,
endPrice... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
function redirect_href(href){
window.location.href = href;
}
function save_driver1(){
$.ajaxSetup({ headers: {'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content')}});
var mobail=$('#mobail_driver_first').val();
var patt =/^[0-9]{10}$/;
if(patt.test(mobail)){mobail = 0 + mobail;}
$.ajax({
... |
var port = 8000;
var express = require('express');
var app = express();
const { Pool } = require('pg')
const pool = new Pool({
user: 'webdbuser',
host: 'localhost',
database: 'webdb',
password: 'password',
port: 5432
});
const bodyParser = require('body-parser'); // we used this middleware to par... |
/*
*
* ENG1003 S2 2017 Assignment 1 Toposcope app
*
* Copyright (c) 2017 Monash University
*
* Written by <NAME>, <NAME>, <NAME> and <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the... |
import React, { Component } from 'react';
import { Grid, Row, Col } from 'react-flexbox-grid';
import ChessBoard from "chessboardjs";
import $ from 'jquery';
import Chess from 'chess.js';
import '../chessboard-0.3.0.css';
import { withRouter } from 'react-router-dom';
import axios from 'axios';
import FlatButton from '... |
"use strict";
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
exports.__esModule = true;
exports.ruleTypeToString = ruleTypeToString;
exports.RuleRepeat = exports.RuleAny = exports.RuleIf = exports.RuleNever = exports.RuleNothing = exports.Rule = void 0;
var _construct =... |
function bold(html) { return "<b>"+html+"</b>"; }
function underline(html) { return "<u>"+html+"</u>"; }
const br = '<br />';
function resolveConnectionBySocket(connections, socket) {
for (var c = 0; c < connections.length; c++) {
if (connections[c].socket.remoteAddress == socket.remoteAddress &&
connect... |
let modelLoaded = false
let minFaceSize = 50
let minConfidence = 0.85
let forwardTimes = []
let stop = false
let bgColor = '#ffffff'
let drawLines = false
let pointQ = new Queue();
let OFF = false
let end_time = 0
let TRAIN = true
let mobilenet
let model
let label_time
let NUM_CLASSES = 2
let videoEl
let LOADED = fal... |
var ConfigHandler = require('./handlers/ConfigHandler');
var Ajax = require('../util/Ajax');
var RSVP = require('../util/rsvp');
var StringUtils = require('../util/StringUtils');
var PromiseUtils = require('../util/PromiseUtils');
var ArrayUtils = require('../util/ArrayUtils');
var ShapeCreatorMemoized = require('../ut... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }... |
// Washington State DoH hosts data for multiple states for some providers where
// they have API access. (In practice, this is pretty much only Costco.)
const Sentry = require("@sentry/node");
const { Available, LocationType } = require("../model");
const { httpClient, matchVaccineProduct } = require("../utils");
cons... |
'use strict';
/** @namespace DevKit */
var DevKit;
(function (DevKit) {
'use strict';
DevKit.SharePointDocumentApi = function (e) {
var EMPTY_STRING = '';
var f = '@OData.Community.Display.V1.FormattedValue';
function webApiField(entity, logicalName, schemaName, entityLogicalCollectionName, entityLogical... |
import { Camera } from './Camera.js';
import * as MathUtils from '../math/MathUtils.js';
class PerspectiveCamera extends Camera {
constructor( fov = 50, aspect = 1, near = 0.1, far = 2000 ) {
super();
this.type = 'PerspectiveCamera';
this.fov = fov;
this.zoom = 1;
this.near = near;
this.far = far;
... |
var createChangeManagerView = function () {
var self ={};
var objectIsActive = false;
var currentVisibleList = undefined;
var init = function () {
connections()
}
var connections =function () {
document.addEventListener("storeUpdated", async function () {
if (objectIsActive && currentVisible... |
'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 ("va... |
/**
* 获取参数
* @param name
* @returns {null}
*/
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
}
//datagrid加载
var initLoadGridData = function(datagrid_id,... |
/*global gui bgp Html Tooltip Locale SmartTable*/
export default {
hasCSS: true,
init,
update,
getState,
setState,
requires: ['events']
};
const kinds = {
achievements: { event: 'event_id' },
addons: {},
artifacts: {},
atlass: { folder: 'map/' },
backgrounds: {},
buildin... |
import React from 'react'
import {connect} from 'react-redux'
import {
setRecipeDraft,
submitRecipe,
resetRecipeState
} from '../store/singleRecipe'
import {deleteDraftThunk} from '../store/recipes'
import history from '../history'
import styled from 'styled-components'
import RecipeForm from './RecipeForm'
impor... |
var instance_skel = require('../../instance_skel')
var udp = require('../../udp')
var debug
var log
var keycodes = [
{ id: '0', label: '[NONE]' },
{ id: '8', label: 'BACKSPACE' },
{ id: '9', label: 'TAB' },
{ id: '12', label: 'CLEAR' },
{ id: '13', label: 'ENTER' },
{ id: '16', label: 'SHIFT' },
{ id: '17', lab... |
$( document ).ready(function() {
//Adding operation dates
$(function()
{
$(document).on('click', '.btn-add', function(e)
{
e.preventDefault();
var controlForm = $('.trip_dates div:first'),
currentEntry = $(this).parents('.entry:first'),
... |
'use strict'
const co = require('co')
const assert = require('assert')
const agent = require('superagent')
const uuid = require('uuid/v4')
const moment = require('moment')
const BigNumber = require('bignumber.js')
const ILQP = require('./ilqp')
const PSK = require('./psk')
const { xor } = require('../utils')
const to... |
import React, { useContext, useEffect, useState } from 'react';
import getCommerce from '../utils/commerce';
import Layout from '../components/Layout';
import {
Box,
Button,
Card,
CircularProgress,
FormControl,
Grid,
InputLabel,
List,
ListItem,
MenuItem,
Select,
Step,
... |
import React, { Component } from 'react';
import { Icon } from 'ming-ui';
import { Menu, Dropdown, Tooltip } from 'antd';
import WithoutFidldItem from './WithoutFidldItem';
import RenameModal from './RenameModal';
import {
timeParticleSizeDropdownData,
areaParticleSizeDropdownData,
timeDataParticle,
timeGatherP... |
import {
AddFixedWaterBackground,Teleporter,GetSwitchDoors,KeyDoor,PickupField,Fissure,AntiPlayer,MessageChain
} from "../helper.js";
import ObjectiveText from "../../helper/other/objective-text.js";
function GraveHell({world,inventory}) {
world.setMap("c1-grave");
world.camera.padding = true;
AddFixed... |
const fs = require('fs');
const Xray = require('x-ray');
const xray = Xray();
const sqlite3 = require('sqlite3').verbose();
const logger = require('./logger');
const Parser = require('./parser');
const parse = Parser.parse;
const level = process.env.LOG_LEVEL || 'info';
class Scraper {
constructor(){
con... |
//REQUERINDO MODULOS
const { decryptMedia } = require('@open-wa/wa-decrypt')
const menu = require('../lib/menu')
const moment = require("moment-timezone")
const { version } = require('../package.json');
const msgs_texto = require('../lib/msgs')
const {criarTexto,erroComandoMsg, removerNegritoComando, timestampParaData}... |
var async = require('async')
, config = require('../config')
, log = require('../log')
, models = require('../models')
, moment = require('moment')
, mongoose = require('mongoose')
, RedisStore = require('socket.io/lib/stores/redis')
, redis = require('socket.io/node_modules/redis')
, services = requir... |
var renderer = null,
scene = null,
camera = null,
root = null,
group = null,
bunny = null,
directionalLight = null;
var duration = 10, // sec
crateAnimator = null,
animateCrate = true,
lightAnimator = null,
loopAnimation = true;
var objLoader = null;
var currentTime = Date.now();
var SHADOW_MAP_WIDTH = 2048, SHA... |
'use strict';
const MiB = 1024 * 1024;
Vue.component('v-select', VueSelect.VueSelect);
const menu = new Vue({
el: '#menu',
data: {
sampleArr: null,
guidValueInfo: null,
browser: null,
subprocess: null,
component: null,
size: null,
metricNames: null,
browserOptions: [],
subpro... |
const express = require('express');
var execFile = require('child_process').execFile;
const app = express();
var http = require('http').Server(app);
const io = require('socket.io')(http);
const fs = require("fs");
var bodyParser = require("body-parser");
const config = require("config");
var db = require('./models');
v... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const queryString = require("query-string");
const jsontokens_1 = require("jsontokens");
const authVerification_1 = require("./authVerification");
const utils_1 = require("../utils");
const fetchUtil_1 = requi... |
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
View,
TouchableOpacity,
Image,
TextInput, Dimensions, ScrollView, NativeModules, Alert, KeyboardAvoidingView
} from 'react-native';
import DatePicker from 'react-native-datepicker';
import constants fro... |
import Phaser from "phaser";
import Kontra from "./classes/Kontra.class";
import Turret from "./classes/Turret.class";
import Bullet from "./classes/Bullet.class";
import { makeGrid } from "./helpers/grid.helpers";
import { placeTurret } from "./helpers/turret.helpers";
import { damageEnemy } from "./helpers/enemy.help... |
import React, { createElement, cloneElement, Component, isValidElement } from 'react';
import { Text } from 'react-native';
import dlv from 'dlv';
import copy from 'fast-copy';
import { connect } from 'react-redux';
import { object, any, string, array, oneOfType, shape, arrayOf } from 'prop-types';
import { isObject, i... |
import React from 'react';
import { connect } from 'react-redux'
import { Dimensions, DeviceEventEmitter, InteractionManager, ListView, StyleSheet, View, RefreshControl, Text, ScrollView, Image, Platform, StatusBar, TextInput, ImageBackground } from 'react-native';
import { TabViewAnimated, TabBar, SceneMap } from 'rea... |
import Config from '../../data/config';
import MQTT from 'paho-mqtt';
import Obstacle from '../components/obstacle';
import Robot from '../components/robot';
import { getCredentials } from '../helpers/urlHelper';
// -----------------------------------------------------------------------------
// MQTT Topics
// -----... |
"use strict";
var __values = (this && this.__values) || function(o) {
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
if (m) return m.call(o);
if (o && typeof o.length === "number") return {
next: function () {
if (o && i >= o.length) o = void 0;
... |
/****************************************
*
* background.js
* Script file for Binger extension.
* Runs in the background.
*
****************************************/
document.addEventListener('DOMContentLoaded', function () {
var startButton = document.getElementById('startButton');
var title = document.getElement... |
import React from 'react';
import {
Box,
Callout,
Caption,
Checkbox,
Code,
Collection,
Cover,
Divider,
Flex,
Heading,
Iframe,
Image,
Link,
ListItem,
OrderedList,
PageIcon,
Quote,
Strong,
Text,
Toggle,
Typeform,
UnorderedList,
} from 'react-potion';
import { omitNil } from '..... |
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] =... |
import React, { PureComponent } from 'react';
import { Modal, Form, Input, Select, InputNumber, Table } from 'hzero-ui';
import { Lov as C7nLov } from 'choerodon-ui/pro';
import { Bind } from 'lodash-decorators';
import PropTypes from 'prop-types';
import { isEmpty, isNumber } from 'lodash';
import Switch from 'compon... |
import React, { Component } from "react";
import CostCodeDataService from "./../../../services/costcode.service";
import ProjectDataService from "./../../../services/project.service";
import { Link } from "react-router-dom";
import { Modal,ListGroup } from "react-bootstrap";
import Chip from "@material-ui/core/Chip";
i... |
//text-boxes
const userNameInput = document.getElementById('userNameInput')
const emailInput = document.getElementById('emailInput')
const passwordInput = document.getElementById('passwordInput')
const confirmPasswordInput = document.getElementById('confirmPasswordInput')
const verificationCodeInput = document.get... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.