text stringlengths 3.22k 29.5k |
|---|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RelayWriter = void 0;
const graphql_1 = require("graphql");
const Writer_1 = require("../Writer");
class RelayWriter extends Writer_1.Writer {
constructor(schema, stream, config) {
super(stream, config);
this.schema... |
/*************************************************************************
* ADOBE CONFIDENTIAL
* ___________________
*
* Copyright 2015 Adobe Systems Incorporated
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Adobe Systems Incorporated and its suppliers,
* if ... |
import { Table, Input, InputNumber, Popconfirm, Form ,Card,Button,Divider,Upload,Icon } from 'antd';
import React, { PureComponent } from 'react';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import uuid from 'uuid';
import {connect} from "dva/index";
import {message} from "antd/lib/index";
import {r... |
import _removeBinding from './removeBinding';
import _fsRemoveBinding from './fsRemoveBinding';
const _isObject = function(obj) {
return Object.prototype.toString.call(obj) === '[object Object]'
? true
: false;
};
const _toArray = function(snapshot) {
var arr = [];
snapshot.forEach(function(childSnapsho... |
const { initContracts } = require('../helpers/initContracts')
const { accounts, contract, web3 } = require("@openzeppelin/test-environment")
const { createSnapshot, restoreSnapshot } = require("../helpers/snapshot.js")
const { expectRevert, time } = require("@openzeppelin/test-helpers")
const crypto = require("crypto")... |
'use strict';
var messageForm = document.querySelector('#messageForm');
var messageInput = document.querySelector('#message');
var messageArea = document.querySelector('#messageArea');
var connectingElement = document.querySelector('.connecting');
var scoreTable = document.getElementById('score-table');
var game = n... |
import {
PerspectiveCamera,
BackSide,
BufferGeometry,
Object3D,
BufferAttribute,
Uint16BufferAttribute,
MeshBasicMaterial,
Mesh,
Scene,
TextureLoader,
} from 'three';
import {
Tween,
Easing,
} from 'tween';
import { get, memoize, pick } from 'lodash';
import { createSelector } from 'reselect';
i... |
import React from 'react';
import Grid from '@material-ui/core/Grid';
import TextField from '@material-ui/core/TextField';
import './styles.css'
import { getFinalAmount, startTransaction, postCreditCard } from '../fiat/index'
import ACSUI from '../carbon/ACSUI';
class Deposit extends React.Component {
constructor(... |
/* eslint-disable max-len */
'use strict';
import * as THREE from 'https://cdn.jsdelivr.net/npm/three@0.116.1/build/three.module.js';
import { EffectComposer } from 'https://cdn.jsdelivr.net/npm/three@0.116.1/examples/jsm/postprocessing/EffectComposer.js';
import { RenderPass } from 'https://cdn.jsdelivr.net/npm/three@... |
"use strict";
var $ = require("../../core/renderer"),
registerComponent = require("../../core/component_registrator"),
commonUtils = require("../../core/utils/common"),
typeUtils = require("../../core/utils/type"),
each = require("../../core/utils/iterator").each,
extend = require("../../core/utils... |
const Console = require("./console");
const fs = require("fs");
const request = require("./requests");
const semver = require("semver");
const path = require("path");
const http = require("http");
const https = require("https");
const targz = require('targz');
const { spawn } = require('child_process');
const config = ... |
/**
* @fileoverview
* @enhanceable
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return t... |
/*
* Copyright (c) 2015, Parse, LLC. All rights reserved.
*
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
* use, copy, modify, and distribute this software in source code or binary
* form for use in connection with the web services and APIs provided by Parse.
*
* As with any s... |
import React, { Component } from 'react';
import { clipboard, nativeImage, shell } from 'electron';
import electron from 'electron';
import pathlib from 'path';
import Search from './Search';
import TexturesGrid from './TexturesGrid';
import TagsGrid from './TagsGrid';
import Footer from './Footer';
import Scene from '... |
"use strict";
const Client = require('ssh2').Client,
async = require('async'),
{ exec, spawn } = require('child_process'),
path = require('path'),
readline = require('readline'),
pdsh = require('./pdsh'),
EOL ... |
const fetch = require('node-fetch')
const axios = require('axios');
const chalk = require('chalk')
const cheerio = require('cheerio');
const BodyForm = require('form-data')
const fs = require('fs')
const getBuffer = async (url, options) => {
try {
options ? options : {}
const res = await axios({
method: "get",
... |
import React from 'react';
import { Animated, StyleSheet, View } from 'react-native';
import { AppText as Text } from '../../../components/AppText';
import { PanGestureHandler, State } from 'react-native-gesture-handler';
import * as Constants from '../../../Constants';
import debounce from 'lodash.debounce';
const s... |
/**
*
* SourcePage
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Helmet } from 'react-helmet';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import _ from 'lodash';
import { Input, Row, Col, Button, notifi... |
import InfoIcon from "icons/info.svg";
import InfoIconV2 from "icons/infoV2.svg";
import UserSaysIcon from "icons/user-says.svg";
import BotSaysIcon from "icons/bot-says.svg";
import EntitiesIcon from "icons/entities.svg";
import ConnectionsIcon from "icons/connections.svg";
import ApiIcon from "icons/api.svg";
import ... |
import { Constants, Camera, FileSystem, Permissions, BarCodeScanner } from 'expo';
import React from 'react';
import { Alert, StyleSheet, Text, View, TouchableOpacity, Slider, Platform } from 'react-native';
import GalleryScreen from './GalleryScreen';
import isIPhoneX from 'react-native-is-iphonex';
import {
Ionico... |
import {getProduct} from "../../../services/productService";
import useForm from "../../../hooks/useForm";
import {NotificationContainer} from 'react-notifications';
import 'react-notifications/lib/notifications.css';
import * as brandsService from 'services/brandService';
import { useState } from "react";
const Up... |
import React from 'react';
import cookie from 'react-cookies';
import LanguageButton from "./LanguageButton";
import {possibleLanguages, getWord} from "./UIWords";
import PadletPostsContainer from "./PadletPostsContainer";
require('dotenv').config();
/*Component that Checks for posts added or removed in a public padl... |
// re-map values from 'from' to 'to'
//
// usage form #1 : map(val, from, to, loop)
// 'from', 'to' should be array with 2 numbers. like: [0, 1], [-10, 30], [0.5, 52.4] ...
// 'loop' could be 'true' to extrapolate beyond from[1] and to[1]
//
// examples
//
// map(val, [30, 40], [2, 3]); // assuming 'val' is in the rang... |
"use strict";
// convert layout-bmfont-text into layout
// https://github.com/Jam3/layout-bmfont-text
Object.defineProperty(exports, "__esModule", { value: true });
var X_HEIGHTS = ['x', 'e', 'a', 'o', 'n', 's', 'r', 'c', 'u', 'm', 'v', 'w', 'z'];
var M_WIDTHS = ['m', 'w'];
var CAP_HEIGHTS = ['H', 'I', 'N', 'E', 'F', '... |
moment.locale('zh-cn',
{
months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'),
monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
weekdaysMin: '日_一_二_三_... |
var ModelUpdateNothing = 0
var ModelUpdateInsert = 1
var ModelUpdateUpdate = 2
var ModelUpdateRange = function(type, length) {
this.type = type
this.length = length
}
exports.ModelUpdate = function() {
this.count = 0
this._reset()
}
exports.ModelUpdate.prototype.constructor = exports.ModelUpdate
exports.ModelUpd... |
/*
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... |
/**
* DevExtreme (ui/shared/accessibility.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";
function _typeof(obj) {
"@babel/help... |
/**
* @author <NAME>
* @description Keyboard component with message and interactive keys
*/
import React, { Component } from "react";
import { View, Image, Text, StyleSheet, Platform, Vibration, ViewPropTypes } from "react-native";
import Ripple from "react-native-material-ripple";
import PropTypes from "prop-types... |
import React from 'react';
import onRouteChangedHOC from 'react-onroutechanged';
import queryString from 'query-string';
import deepEqual from 'fast-deep-equal';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
... |
import {isString, isNumber, isArray, isDefined, isFunction, isObject} from '../utils/type';
import {toString} from '../utils/string';
import {createDiffingMap, objectDiff} from '../utils/object';
import nodeType from '../constants/node-type';
import {VOID_ELEMENTS} from '../constants/element';
import Component from '..... |
// Import the page's CSS. Webpack will know what to do with it.
import "../stylesheets/app.css";
// Import libraries we need.
import { default as Web3} from 'web3';
import { default as contract } from 'truffle-contract'
// Import our contract artifacts and turn them into usable abstractions.
import alice_token_artifa... |
import React, { PureComponent, Component, Fragment } from 'react';
import router from 'umi/router';
import moment from 'moment';
import { connect } from 'dva';
import {
Tabs,
Icon,
Row,
Col,
InputNumber,
Input,
Select,
Button,
Radio,
Table,
Modal,
Tag,
DatePicker
} from 'antd';
import styles ... |
import * as tslib_1 from "tslib";
import * as tf from '@tensorflow/tfjs-core';
import { BoundingBox } from '../classes/BoundingBox';
import { ObjectDetection } from '../classes/ObjectDetection';
import { convLayer } from '../common';
import { toNetInput } from '../dom';
import { NeuralNetwork } from '../NeuralNet... |
const requests = () => {
let time = 0;
let objectOfTabsToStop = {}
chrome.webRequest.onBeforeRequest.addListener(
(details) => {
if (!/^https:\/\/(lichess\.org|lichess\.dev|mskchess\.ru)\/(\w{8}|\w{12})(\/white|\/black)?$/.test(details.url)) return;
let tabId = details.tabId;
let debuggeeId... |
var refigure = window.refigure = {
Metapublication: null,
figures: []
};
var parser = {};
chrome.runtime.onMessage.addListener(function (request) {
switch (request.type) {
case _gConst.MSG_TYPE_REFIGURE_ADD_START:
window.refigurePopup.show();
break;
case _gConst.MSG... |
const radius = 3.5;
const margin = {top: 10, right: 10, bottom: 10, left: 10};
var app = null;
var currentClass = 0;
// Displays a danger alert message in the top of the screen.
function alertMessage(message) {
var alert = $('<div class="alert alert-danger alert-dismissible fade show mb-0 mt-0" role="alert">');
v... |
#!/usr/bin/env node
/**
* WebServer, 29.11.2013 Spaceify Inc.
*
* @class WebServer
*/
var fs = require("fs");
var url = require("url");
var kiwi = require("kiwi");
var http = require("http");
var https = require("https");
var qs = require("querystring");
var fibrous = require("fibrous");
var logger = require("./l... |
/**
* All drawn rectangles are stored in this array
*/
var drawnRectLayers = [];
/**
* All drawn circles are stored in this array
*/
var drawnCircleLayers = [];
let markedFriction = [];
/**
* Holds all stations that are marked with the draw tools.
*/
let markedStations = [];
/**
* Draw functionality
*/
c... |
import Grid from '@material-ui/core/Grid'
import { makeStyles } from '@material-ui/core/styles'
import { parse, format, isValid } from 'date-fns/fp'
import _ from 'lodash/fp'
import * as R from 'ramda'
import { useState, React } from 'react'
import * as Yup from 'yup'
import ImagePopper from 'src/components/ImagePoppe... |
let number = 4;
let rgx = /^(?:(?:https?|ftp):\/\/)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a... |
import {faAt, faBrowser, faPhone} from "@fortawesome/pro-light-svg-icons"
import {graphql} from "gatsby"
import {GatsbyImage, getImage} from "gatsby-plugin-image"
import React, {useContext, useMemo} from "react"
import {Icon} from "../components/icon"
import {Link} from "../components/link"
import {Text} from "../comp... |
import {reduceCalc} from './calc-parse.js';
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete... |
var beerCalc = 0.65;
var sodaCalc = 0.65;
var pizzaCalc = 0;
var icecreamCalc = 0.2;
var frutas = 0;
var beerCalcPrice = 95;
var sodaCalcPrice = 95;
var sodaCalcPriceDiet = 107;
var pizzaCalcPrice = 140;
var jitomateCalcPrice = 100;
var icecreamCalcPrice = 280;
var cucuruchPrice = 18;
var peopleQty = 0;
var totalPri... |
var lock = false;
var debugao = true;
var tempoA, tempoB;
var adicionadas = [];
var pararDeComprar = false;
var individuo = 0;
var geracao = 0;
const individuosPorGeracao = 42;
const quantidadeMelhoresIndividuos = 7;
var firstExecution = true;
var posterior = [];
var todosIndividuosDeTodasGeracoes = [];
var genesCr... |
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const Lang = imports.lang;
const Gio = imports.gi.Gio;
const St = imports.gi.St;
const Main = imports.ui.main;
const PanelMenu = imports.ui.panelMenu;
const PopupMenu = imports.ui.popupMenu;
const Slider = imports.ui.slider;
const Me = imports.misc.extens... |
/**
* BG搜索模块
* Date: 2017/6/19
* Author: zhuangchuhui
*/
import React from 'react';
import styles from './search-bar.less'
import moment from 'moment';
import { Menu, Dropdown, Button, Icon, DatePicker, Input, InputNumber, Select, Tag, Cascader } from 'antd';
const { MonthPicker, RangePicker } = DatePicker;
const... |
/**
* @license Copyright (c) 2003-2021, CKSource - <NAME>. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
import { keyCodes } from '@ckeditor/ckeditor5-utils/src/keyboard';
import Rect from '@ckeditor/ckeditor5-utils/src/dom/rect';
/**
* @module widget/v... |
'use strict';
var inherits = require('inherits');
var PropertiesActivator = require('../../PropertiesActivator');
var asyncCapableHelper = require('../../helper/AsyncCapableHelper'),
ImplementationTypeHelper = require('../../helper/ImplementationTypeHelper');
// bpmn properties
var processProps = require('../bp... |
import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger';
import Tooltip from 'react-bootstrap/lib/Tooltip';
import * as tooltips from './Tooltips';
import globals from '../../Globals';
import { getPathRoot } ... |
import React, { useEffect, useState, useCallback } from 'react';
import PropTypes from 'prop-types';
import { compose } from 'recompose';
import Button from '@material-ui/core/Button';
import NumberFormat from 'react-number-format';
import { bindActionCreators } from 'redux';
import { connectAccount, accountActionCreat... |
import { Container, Rectangle, Point, Sprite, Texture, Ticker } from 'pixi.js';
import ContainerElement from './Container';
const { abs, log, max, pow } = Math;
const VELOCITY_MIN = 0.1;
const DAMPING = 0.01;
const LOG_DAMPING = log(DAMPING);
const ticker = Ticker.shared;
const SCRATCH_POINT = new Point();
class S... |
import expect from 'expect.js';
import {currencies} from '../../../src/constants';
import {fix, check} from '../../../src/typography-fixer';
import rules from '../../../src/rules/en-UK';
const fixString = fix(rules);
const checkString = check(rules);
describe('en-UK ruleset', () => {
it('includes fraction rules', (... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _objectWithoutProperties3 = _inte... |
//grab my DOM objects
let qTitel = document.querySelector('#qNum');
let qText = document.querySelector('#qTxt');
let answrForm = document.querySelector('#answers');
let quiz = document.querySelector('#quiz');
let strtBtn = document.querySelector('#starter');
let intro = document.querySelector('#intro');
let clueBtn = d... |
import mainLogo from '@assets/logo_primary.png';
import tokenLogo from '@assets/logo_secondary.png';
import BigNumber from 'bignumber.js';
export const currency = {
name: 'eCash',
ticker: 'XEC',
logo: mainLogo,
legacyPrefix: 'bitcoincash',
prefixes: ['ecash'],
coingeckoId: 'ecash',
defaultF... |
import React, {
PureComponent,
} from 'react';
import { PropTypes } from 'prop-types';
import SvgSaver from 'svgsaver';
import { schemePaired } from 'd3-scale-chromatic';
import { select } from 'd3-selection';
import { extent } from 'd3-array';
import {
sankey,
sankeyLinkHorizontal,
} from 'd3-sankey';
impo... |
"use strict"
/**
* From mocha-teamcity-reporter
* The MIT License
* Copyright (c) 2016 <NAME>
*/
const TEST_IGNORED = `##teamcity[testIgnored name='%s' message='%s' flowId='%s']`
const SUITE_START = `##teamcity[testSuiteStarted name='%s' flowId='%s']`
const SUITE_END = `##teamcity[testSuiteFinished name='%s' durat... |
import React, { useState,useEffect } from 'react';
import clsx from 'clsx';
import PropTypes from 'prop-types';
// import moment from 'moment';
import PerfectScrollbar from 'react-perfect-scrollbar';
import {connect} from 'react-redux';
import {fetchCollectionsStartAsync,updateData,deleteData} from '../../../redux/mr/m... |
import { select } from 'd3';
import Hammer from 'hammerjs';
import {
applySettings,
CssSize,
DockPoint,
Enum,
methodBoolean,
methodCssSize,
methodDockPoint,
methodEnum,
methodFunction,
PIXELS
} from 'type-enforcer-ui';
import { CONTROL_PROP } from '../Control';
import controlTypes from '../controlTypes';
impo... |
function init() {
canvas = document.createElement( "canvas" );
ctx = canvas.getContext( "2d" );
canvas.width = 1260;
canvas.height = 700;
canvas.style.backgroundColor = "#ddd";
document.body.appendChild( canvas );
window.addEventListener( "mousemove", mouseMove );
window.addEventListener(... |
'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]; } } }... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _EditorDom = require("./EditorDom");
var _EditorDom2 = _interopRequireDefault(_EditorDom);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
NodeList.prototype.toArray = function () {
... |
'use strict';
const { isFirstUpper, toLowerCamel } = require('metautil');
const { TYPES } = require('./types.js');
const KIND_ENT = ['entity', 'registry', 'dictionary'];
const KIND_AUX = ['journal', 'details', 'relation', 'view'];
const KIND_STORED = [...KIND_ENT, ...KIND_AUX];
const KIND_MEMORY = ['struct', 'scalar'... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.setThrottleMilliseconds = exports.delayload = exports["default"] = void 0;
var _react = require("react");
var _propTypes = _interopRequireDefault(require("prop-types"));
var _reactDom = require("react-dom");
var _lodash = requir... |
import {RecipeModel} from '@/models';
import {insertIndex, insertOrder, INSERT_BY_ID} from '@/services/db/ordering';
import generateID from '@/services/db/id';
import {mutationTypes as appMutationTypes} from '@/modules/app/store';
import config from 'config';
const ERROR_LOAD_FAILED = new Error("Er ging iets mis bij h... |
import React from 'react';
import { Image, StyleSheet,View ,ImageBackground,Linking } from 'react-native';
import { Container,Header, Content, Button, Input, Item, Text ,Icon,Switch, Left, Right } from 'native-base';
import { Col, Row, Grid } from 'react-native-easy-grid';
import { FontAwesomeIcon } from '@fortawesome/... |
var CreatedOKLodop7766 = null;
let lodopDiv = null
export function getLodopDiv (obj) {
lodopDiv = obj
}
//====判断是否需要安装CLodop云打印服务器:====
export function needCLodop () {
try {
var ua = navigator.userAgent;
if (ua.match(/Windows\sPhone/i) != null) return true;
if (ua.match(/iPhone|iPod/i) != null) ret... |
/**
* MIT License
*
* Copyright (c) 2017-present, Elasticsearch BV
*
* 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 ... |
var wordsAway = new WordsAway();
var wordsHide = new WordsHide();
//输出结果
function setText(text) {
$('.process-result pre.result').text(text);
$('.process-result .to-copy').attr('data-clipboard-text', text);
}
function setBackText(text) {
$('.back-result pre.result').text(text);
$('.back-result .to-cop... |
/*
* (c) Copyright IBM Corp. 2021
* (c) Copyright Instana Inc. and contributors 2020
*/
'use strict';
let logger = require('@instana/core').logger.getLogger('shared-metrics/native-module-retry');
const EventEmitter = require('events');
const copy = require('recursive-copy');
const fs = require('fs');
const os = r... |
$(document).ready(function(){
// svg del arbol
leaft = false;
root = null;
var min_zoom = 0.1;
var max_zoom = 7;
var zoom = d3.behavior.zoom().scaleExtent([min_zoom,max_zoom]);
var width = 900,
height = 500;
force = d3.layout.force()
.linkDistance(100)
.charge(-... |
const fs = require("fs");
dealerships = [
"Autos del Sur - Av. Cabrera (ex Sarmiento) 4189 - Bahía Blanca \n - Buenos Aires",
"Autosiglo - Calle 44 nº 2186 (e/138 y 139) - La Plata - Buenos\n Aires",
"Autosiglo - Av. Constitucion 7501 - Mar del Plata ... |
/// <reference path="../webglutil.js"/>
/// <reference path="../cuon-matrix.js"/>
let ANGLE_STEP = 20.0;
function main() {
const canvas = document.getElementById('webgl');
const gl = getWebGLContext(canvas);
const vs = document.getElementById('vs').textContent;
const fs = document.getElementById('fs'... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import Http from '../Http';
class Dashboard extends Component {
constructor(props) {
super(props);
// Initial state.
this.state = {
name: '',
email: '',
phone: '',
address: '',
progress: 50,
... |
import React, { useEffect, useState } from "react";
import { useSelector } from "react-redux";
import DeliverablesSkeleton from "./components/DeliverablesSkeleton";
import { Box, Stack, Typography } from "@mui/material";
import Link from "@mui/material/Link";
import { DataStore, Predicates, SortDirection } from "aws-am... |
import React from 'react';
import PropTypes from 'prop-types';
import enhancleBeatle from './damo/index';
import Beatle from './base/beatle';
import {Link} from 'react-router-dom';
import Ajax from './utils/ajax';
import Poller from './utils/poller';
import ReduxSeed from './seed';
import modelChecker from './base/mode... |
// JavaScript Document
//为了解决alert在ios版微信中显示url的问题
var isIPhone = /(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent);
if (isIPhone) {
window.alert = function(name) {
var iframe = document.createElement("IFRAME");
iframe.style.display = "none";
iframe.setAttribute("src", 'data:text/plain,');
d... |
/* eslint-disable no-undef */
/* eslint-env es5 */
/** !
* DLE-YandexMaps — Бесплатный модуль Яндекс Карт для DLE
*
* @author ПафНутиЙ <<EMAIL>>
* @link https://git.io/v9irg
*/
/**
* @typedef {object} mapConfig
*
* @property {string} mapSelector
* @property {array} scripts
* @property {array} cont... |
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import DrawService from "../../service/DrawService";
import {addWinner} from '../../redux/actions/lotteryPool';
import maskPhone from '../../utils/phone_mask';
import {connect} from 'react-redux';
import TagCloud from "../common/tag-clo... |
ResizeMovieACJ = 0;
ACJOBS_GRID_UNIQUE_ID = 'ActiveJobs';
var worksOnAllGridComplete = function(Table)
{
var RowDataArrays = Table.jqGrid('getRowData');
return ;
//If no record is found the show no record found at the centre
if(RowDataArrays.length == 0) //If no records are found then maintain some height... |
import { PanoramaToCubeMapTools } from "./panoramaToCubemap";
/**
* This groups tools to convert HDR texture to native colors array.
*/
var HDRTools = /** @class */ (function () {
function HDRTools() {
}
HDRTools.Ldexp = function (mantissa, exponent) {
if (exponent > 1023) {
r... |
let wf_data = {
import: function(json) {
let data = {};
if ('Background' in json)
data.bg = json.Background;
if ('Time' in json) {
data.time = json.Time;
if ('Seconds' in json.Time) {
data.seconds = json.Time.Seconds;
Reflec... |
import React, { Component } from 'react'
import { StyleSheet, TouchableOpacity, View, Text, Image, TextInput, Platform, ScrollView } from 'react-native'
import client, { Avatar, Color, translate as t } from '@doubledutch/rn-client'
export default class MakeReportModal extends Component {
constructor(props) {
sup... |
import { action, computed, decorate, observable } from 'mobx';
import { fetchCachedChildren, fetchFlaggedQuizData, fetchLastSearch, fetchLocationUrl, fetchRelevantChildren, fetchUserQuizData, fetchUserQuizDataV2, fetchUserQuizItemData, orgUnitSearch } from './dataApiClient.js';
import { OrgUnitSelectorFilter } from '.... |
import React, { Component } from 'react';
import { NavigationActions } from 'react-navigation';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import {
ActivityIndicator,
DeviceEventEmitter,
FlatList,
Image,
RefreshControl,
TextInput,
TouchableOpacity,
View,
... |
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof o... |
"use strict";
require("requirish")._(module);
Error.stackTraceLimit = Infinity;
var argv = require('yargs')
.wrap(132)
.string("alternateHostname")
.describe("alternateHostname")
.alias('a','alternateHostname')
.string("port")
.describe("port")
.alias('p','port')
.argv;
v... |
/** @typedef {import('./types').TypedArrayConstructor} TypedArrayConstructor */
/** @typedef {import('./types').TypedArray} TypedArray */
/** @typedef {import('./types').RingBuffer} IRingBuffer */
/** @typedef {typeof import('./types').RingBuffer} RingBufferConstructor */
/** @typedef {import('./types').AudioWorkletGlo... |
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 _classCallCheck(instance, Constructor) { if (!(insta... |
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... |
/*
* Copyright 2011 Research In Motion Limited.
*
* 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 ... |
// Copyright © 2021 The Things Network Foundation, The Things Industries B.V.
//
// 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
//
// Un... |
'use strict';
const context = document.getElementById('canvas').getContext('2d');
const graphCenterX = 700;
const graphCenterY = 460;
const radius = 30;
const coordX = [];
const coordY = [];
const vertexList = [];
const matrix = [
[1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1],
[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0],
[1, 0, 0,... |
$(document).ready(function() {
var max_fields = 8; //maximum input boxes allowed
var wrapper = $(".input_fields_wrap"); //Fields wrapper
var add_button = $(".add_field_button"); //Add button ID
var x = 1;
var a = 1;
var b = 1;
var c = 1;
var d = 1;
$(add_button).c... |
/**
* Module dependencies
*/
var Readable = require('stream').Readable;
var Writable = require('stream').Writable; // (for the leaky pipe)
var _ = require('lodash');
var log = require('./logger');
var util = require('util');
var path = require('path');
var SkipperDisk = require('skipper-disk');
// Extend Readable
u... |
// Import the CMS foundation in order to support editing, toolbar, panel functionality
import '@concretecms/bedrock/assets/cms/js/base';
// Import the frontend foundation for themes.
// Has to come after cms base because cms base registers the Vue Manager
import '@concretecms/bedrock/assets/bedrock/js/frontend';
// I... |
const CSS_STYLE = 'style.min.css';
const JS_PLUGIN = 'plugins.min.js';
//Variable
var gulp = require("gulp");
var jquery = require('gulp-jquery');
var plugins = require('gulp-load-plugins')();
var paths = require('./gulp.config.json');
var del = require("del");
var browserify = require("browserify");
var source = requi... |
// name: admin_update_customer.js, creator: <NAME>, date: 1/31/21
// handles buttons within the admin update customer handlebars
// ///////////////////////////////////
// ADMIN PAGE -- Update/Delete
// //////////////////////////////////
// ***************************************
// ********** Search Customers ****... |
const ENTITIES = {
VOID: 0,
PACMAN: 1,
WALL: 2,
FOOD: 3,
GHOST: 4,
}
const CONTROLS = {
ARROW_UP: 38,
ARROW_DOWN: 40,
ARROW_LEFT: 37,
ARROW_RIGHT: 39,
}
const POINTS_PER_FOOD = 10;
const GHOST_DAMAGE = 10;
const mapElement = document.getElementById('map');
const msgElement = document.getElementById('msg... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.