text stringlengths 3.07k 16k |
|---|
'use strict';
var React = require('react-native');
var {
StyleSheet,
Text,
TextInput,
View,
TouchableHighlight,
Component,
AsyncStorage,
NavigatorIOS,
PickerIOS
} = React;
var PickerItemIOS = PickerIOS.Item;
var LISTS = ['daily', 'weekly', 'monthy', 'yearly'];
var DAILY = '@GV:daily';
var DATA = [{... |
// Copyright 2010-2020 <NAME> Multimedia GmbH
//
// 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 applicabl... |
import React from 'react'
import {
Modal,
View,
TouchableOpacity,
Text,
ScrollView,
Animated,
Easing,
Image,
findNodeHandle,
UIManager,
Keyboard,
SafeAreaView,
} from 'react-native'
import PropTypes from 'prop-types'
import { WithTheme } from '../style'
import ActionSheet... |
/*
* Even bots want to trade sometimes.
*
* That's why we created an example that demonstrates how easy it is
* to find a villager and trade.
*
* You can ask the bot to trade with a villager, display the villagers in range
* and show what trades a villager has by sending a chat message.
*/
const mineflayer = re... |
/*
* 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 may ... |
let messages = {
history: $('.msg_history'),
activeContact: '',
scrollNumber: 0,
failedMessage: function (errorMessage) {
messages.history.after(`<div class="text-danger mb-3">${errorMessage}</div>`);
},
//Component for the sent message
sentMessage: function (messageData) {
$... |
/* Draw GeoJSON
https://github.com/jdomingu/ThreeGeoJSON
Iterates through the latitude and longitude values, converts the values to XYZ coordinates, and draws the geoJSON geometries.
*/
var x_values = [];
var y_values = [];
var z_values = [];
function drawThreeGeo ( json, radius, shape, options ) {
group = new T... |
function checkMobile(){
if( navigator.userAgent.match(/Android/i)
|| navigator.userAgent.match(/webOS/i)
|| navigator.userAgent.match(/iPhone/i)
|| navigator.userAgent.match(/iPad/i)
|| navigator.userAgent.match(/iPod/i)
|| navigator.userAgent.match(/BlackBerry/i)
|| ... |
import React, { useEffect, useState } from 'react'
import get from 'lodash/get'
import fbt from 'fbt'
import useBackendApi from 'utils/useBackendApi'
import { isValidDNSName, isUnstoppableName } from '@origin/utils/dns'
import { useStateValue } from 'data/state'
const DomainInstructions = ({ domain, close, netId, hos... |
// Copyright 2013 Traceur Authors.
//
// 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 ... |
import React from 'react';
import { Card, Table, Popconfirm } from 'antd';
import { formatMessage } from 'umi/locale';
import { OPCODE } from '@/constants/mqttStore';
import { formatRelativeTime } from '@/utils/utils';
import styles from './Network.less';
class DeviceList extends React.PureComponent {
constructor(pro... |
var mongodb = process.env['TEST_NATIVE'] != null ? require('../lib/mongodb').native() : require('../lib/mongodb').pure();
var useSSL = process.env['USE_SSL'] != null ? true : false;
var testCase = require('../deps/nodeunit').testCase,
debug = require('util').debug,
inspect = require('util').inspect,
nodeunit = r... |
var homeTemplate = $("#homeTemplate").html();
var mapTemplate = $("#mapTemplate").html();
var mapDfd;
var markers = [];
var currentBestStations = [];
var currentPosition;
var currentColor;
var stopped = false;
var currentData;
var moving = false;
var index = 0;
var position = {
lat: 52.502230,
lng: 13.413197
};
v... |
/* eslint-disable max-nested-callbacks, max-len */
const assume = require('assume');
const sinon = require('sinon');
const proxyquire = require('proxyquire');
const path = require('path');
const emptyDocsConfigSet = {
app: {
name: 'test-app',
description: 'Some test app',
link: 'README.md#overview',
... |
const express = require('express');
const router = express.Router();
const fs = require('fs');
const myers = require('myers-diff');
router.use('/', function(req, res, next) {
let data = JSON.parse(req.body.data);
const currentFile = data.diffNum;
const userCode = data.userCode;
let mysql = require(... |
var SModule = require('./../SModule.js');
var inherits = require('inherits');
var smartresize = require('../../Smartresize.js');
var helper = require('../../Helper.js')();
var EventType = require('../../EventType.js');
module.exports = SSEntityFactory;
function SSEntityFactory(opts) {
if (!(this instanceof SSEnt... |
/*istanbul ignore next*/'use strict';
var Class = require('cify');
var Directive = require('./directive');
var utils = require('ntils');
var Expression = require('./expression');
var commonDirectives = require('./directives');
var DEFAULT_PREFIX = 'm';
/**
* 模板编译器
* 可以通过指定「前缀」或「指令集」构建实例
*/
var Compiler = new Clas... |
function encrypt() {
return {
then: function(callback) {
var message_body_input = $('#message_body_input').val();
$("#message_body_input").attr("disabled", "disabled");
if (message_body_input.indexOf("-----BEGIN PGP MESSAGE-----") !== -1 && message_body_input.indexOf("-----END PGP MESSAGE-----") !== -1) {
... |
/* eslint-disable no-console */
import babel from '@rollup/plugin-babel';
import json from '@rollup/plugin-json';
import nodeResolve from '@rollup/plugin-node-resolve';
import bundleSize from 'rollup-plugin-bundle-size';
import { terser } from 'rollup-plugin-terser';
const pkg = require('./package.json');
const d3Co... |
export function request(method, url, data, options, callback){
if(data && data.constructor === Function){
callback = data;
data = void 0;
}
if(options && options.constructor === Function){
callback = options;
options = void 0;
}
options ??= {};
if(method === 'getJSON'){
options.receiveType = 'JSON';
... |
//global constants
let HORIZONTALSPACING = 390;
let VERTICALGAP = 75 * 3;
let PIPEMINIMUM = 50;
let HURDLEVELOCITY = -5;
let MAXHURDLES = 20;
//graphics elements
let canvas = document.getElementById("canvas");
let context = canvas.getContext("2d");
let scoreLabel = document.querySelector('#score');
let usernameLabel =... |
import React, { Component } from 'react';
const infowindowsArray = [];
class Map extends Component {
constructor(props) {
super(props);
this.state = {
mapScriptLoaded: false,
mapDisplayed: false,
markersArray: [],
infowindowsArray: [],
ready: 0
};
}
//create infowindows
crea... |
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import classNames from 'classnames';
import { connect } from 'react-redux';
import { NavLink } from 'react-router-dom';
import { Field, reduxForm } from 'redux-form/immutable';
import Button from '@mate... |
import {
NOTIFICATIONS_TABLE_NAME,
SUBSCRIBERS_TABLE_NAME,
BATCHES_TABLE_NAME,
DeliveryStrategy,
NotificationStatus,
ConsumerMethod,
LazinessStrategy,
PrivateOperationType
} from '../constants'
const retryRollback = new Error('Retrying rollback marker')
async function requestTimeout(pool, payload) {
... |
import arrayFind from 'core-js-pure/stable/array/find';
import objectEntries from 'core-js-pure/stable/object/entries';
import stringStartsWith from 'core-js-pure/stable/string/starts-with';
import { curry, objectClone } from '../../../../utils';
import { EVENTS } from '../../services/logger';
import { Types, validate... |
const ptBR = {
login: 'Área de Login',
email: 'E-mail',
register: 'Registrar',
username: 'Nome do Usuário',
password: '<PASSWORD>',
next: 'Avançar',
fieldempty: 'Este campo não pode ficar vazio',
email_already_registered: 'E-mail já cadastrado',
unexpected_error: 'Ocorreu um erro inesperado',
user_not_found: ... |
function buildData(state) {
d3.json("https://services1.arcgis.com/0MSEUqKaxRlEPj5g/arcgis/rest/services/ncov_cases_US/FeatureServer/0/query?where=1%3D1&outFields=*&outSR=4326&f=json")
.then((CovidData) => {
var features = CovidData.features;
var attributes = features.map(att => att.attributes)
... |
'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]; } } }... |
import {_merge} from './utils'
function GooglePlaceTypeahead (options) {
this.options = options || {}
this.loading_listeners = []
this.addresses_cache = {}
this.predictions_cache = {}
}
var callback_num = 0
GooglePlaceTypeahead.prototype.load = function __protoGooglePlaceTypeaheadLoad (cb) {
var self = ... |
var syrup = require('stf-syrup');
var Promise = require('bluebird');
var net = require('net');
var locks = require('locks');
var logger = require('../../../util/logger');
var wire = require('../../../wire');
var wireutil = require('../../../wire/util');
var lifecycle = require('../../../util/lifecycle');
var config = r... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { calcOffset, calcBarWidth } from '../../../common/helper'
let valueKeys = {
MACD: 'histogram',
DIFF: 'MACD',
DEA: 'signal'
};
const defaultColor = 'skyblue'
export default class MACD extends Component {
static defaultProps = {
b... |
import React, { useState, useEffect } from 'react';
import { Text, View, TextInput, ImageBackground, TouchableOpacity, ScrollView, Image } from 'react-native';
import { useForm, Controller } from 'react-hook-form';
import Textarea from 'react-native-textarea';
import { Picker } from '@react-native-community/picker';
im... |
const fs = require("fs");
const readline = require("readline");
const { google } = require("googleapis");
const SCOPES = ["https://www.googleapis.com/auth/drive"];
// The file token.json stores the user's access and refresh tokens, and is
// created automatically when the authorization flow completes for the first
// ... |
export const validMaxLength = (val, maxlength) => {
if (!val)
throw new Error("maxlength needs a value to validate");
if (!(typeof val === "string") && !(Object.prototype.toString.call(val) === "[object Array]")) {
throw new Error("maxlength validation works on String or Array");
}
if ... |
"use strict";
function initPageloader() {
$('.pageloader').toggleClass('is-active');
$(window).on('load', function () {
var pageloaderTimeout = setTimeout(function () {
$('.pageloader').toggleClass('is-active');
$('.infraloader').toggleClass('is-active');
clearTimeout(pageloaderTimeout);
... |
'use strict';
let imgContainerEl = document.getElementById("shirt-card");
let changeColorContainer =document.getElementById('changeColor');
let changeColorContainerGirl = document.getElementById('changeColorGirl');
let iconsContenierEl=document.getElementById("icons")
let icons=['cat.png', 'pizza-slices.png','batman.p... |
import React, { Component } from "react";
//import $ from 'jquery';
import ArticleCard from "./Article.js";
import { Animated } from "react-animated-css";
//=============================================================
//collect credentials for loading api articles by request and search bar
//=======================... |
import { gql, useQuery } from '@apollo/client'
import { Empty, Skeleton } from 'antd'
import _ from 'lodash'
import React, { useEffect, useMemo, useState } from 'react'
import ReactApexChart from 'react-apexcharts'
import { useSelector } from 'react-redux'
const OPTIONS = {
chart: {
id: 'engagement-graph',
t... |
const request = require('request');
const Discord = require("discord.js");
const config = require('../config.json');
const sql = require("sqlite");
sql.open("./db/data.sqlite");
async function rankcolor(data) {
if (data.chat_admin === "1") {
return "0xFF0000";
} else if (data.chat_moderator === "2") {
re... |
class HappySlides {
constructor(el) {
this.slidesContainer = this.query("[data-slider-slides]");
this.slides = this.queryAll("[data-slider-slide]");
this.prevBtn = this.query("[data-slider-prev]");
this.nextBtn = this.query("[data-slider-next]");
this.counterCurrent = this.query("[data-slider-cur... |
var areaData = address;
var $form;
var form;
var $;
layui.config({
base : "../../js/"
}).use(['form','layer','upload','laydate'],function(){
form = layui.form;
var layer = parent.layer === undefined ? layui.layer : parent.layer;
$ = layui.jquery;
$form = $('form');
upload = layui.upload,
laydate = layui.layd... |
import React from "react";
import {
CustomInput,
Button,
Modal,
ModalHeader,
ModalBody,
ModalFooter,
Input,
Label
} from "reactstrap";
import Select from "react-select";
import CustomSelectInput from "../../components/common/CustomSelectInput";
import IntlMessages from "../../helpers/IntlMessages";
impo... |
"use strict";
// Copyright IBM Corp. 2019. All Rights Reserved.
// Node module: @loopback/example-todo-list
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
Object.defineProperty(exports, "__esModule", { value: true });
const testlab_1 = require("@loopback... |
import * as d3 from 'd3'
import _ from 'lodash'
import {store, tableau10} from '../controllers/config'
class SpecCurvePlot {
constructor () {
this.outerWidth = 1050
this.upperHeight = 130
this.lowerHeight = 0 // will be computed
this.margin = {
top: 0,
right: 50,
bottom: 50,
l... |
import { db_person } from './db';
import lodash from 'lodash';
const XLSX = require('xlsx');
const assist_person_map = {
lidnummer: {
key: "member_id"
},
inschrijvingsdatum: {
key: "member_since"
},
voornaam: {
key: "firstname"
},
naam: {
key: "surname"
},
roepnaam: {
key: "nickn... |
"use strict";
const Path = require("path");
const Fs = require("fs");
const Engine262 = require(Path.join("..", "node_modules", "@engine262", "engine262", "dist", "engine262.js"));
const identity = (any) => any;
const success = () => { throw new global.Error(`Unhandled asynchronous test success`); }
const failure = (... |
// This script will create a static index.html
// with styles compiled inline. To build a static
// production version of the app, run the following:
//
// npm run build
// cd docs/
// python -m SimpleHTTPServer 3001
//
import React from 'react'
import {SheetsRegistryProvider, SheetsRegistry} from 'react-jss'
impo... |
var tweetCount = 1,
page = 0,
loading = false,
bigArray = [];
const iosHeight = () => {
document.documentElement.style.setProperty("--ios-height", window.innerHeight + "px");
};
window.addEventListener("resize", iosHeight);
window.onload = () => {
//ios height
iosHeight();
const contwarn = ... |
import APIError from '../server/helpers/APIError'
import bodyParser from 'body-parser'
import config from './env'
import compress from 'compression'
import cookieParser from 'cookie-parser'
import cors from 'cors'
import express from 'express'
import expressFileUpload from 'express-fileupload'
import expressValidation ... |
import moment from 'moment';
import momentDurationFormatSetup from 'moment-duration-format';
import assToVtt from './assToVtt';
import Sub from './sub';
momentDurationFormatSetup(moment);
export function checkTime(time) {
return /^(\d+):([0-5][0-9]):([0-5][0-9])\.\d{3}$/.test(time);
}
export function isMobile() ... |
import Entity from "~/objects/Entity";
import Texture from "~/objects/Texture";
import Colour from "~/objects/Colour";
import getValue from "~/lib/getValue";
import Rectangle from "~/geometry/Rectangle";
import Point from "~/geometry/Point";
/**
* @classdesc
* Sprites are visible entities in your game world and are ... |
// Cuadrado
console.group("Cuadrado");
// const ladoCuadrado = 5;
// console.log("Los lados del cuadrado miden: " + ladoCuadrado + "cm");
function perimetroCuadrado(lado) {
return lado * 4;
}
// console.log("El perímetro del cuadrado es: " + perimetroCuadrado + "cm");
function areaCuadrado(lado) {
return la... |
var extended = require('./extended')
, elementary = require('./elementary')
, traverser = require('traverser')
, render = require('render')
, fail = require('./failure').fail
module.exports = {
every: every,
has: has,
apply: apply,
throws: throws,
path: path,
noop: noop,
atIn... |
var fs = require('fs');
var gm = require('gm');
var express = require('express');
var router = express.Router();
var formidable = require('formidable');
var validator = require('validator');
var AWS = require('aws-sdk')
var s3 = new AWS.S3({region: 'us-east-1', apiVersion: '2006-03-01'})
var mime = require('mime')
... |
class Plugin {
constructor() {
this.maxEnergyPercent = 50;
this.timerId = null;
}
render(container) {
container.style.width = '200px';
let stepperLabel = document.createElement('label');
stepperLabel.innerText = 'Max % energy to spend';
stepperLabel.style.display = 'block';
let stepp... |
//'use strict';
//d3 || require('d3');
//var dagreD3 = require('dagre-d3');
//var jquery = require('jquery');
//var $ = jquery;
var ParseViewer = function(params) {
// Container in which the scene template is displayed
this.selector = params.selector;
this.container = $(this.selector);
this.fitToGraph = true;... |
import { createAction, createActions } from 'redux-actions'
import objectAssign from 'UTILS/object-assign'
import API from 'API'
import { wrapper } from './wrapper'
import { throttle } from 'UTILS/helper'
/**
* initial
*/
const {
toggleEdited,
toggleLoading,
togglePosting,
initialResume,
initialPubResume... |
// @flow
import PathData from '../utils/pathData';
import {path, rectangle, group, mask, text as textEl} from '../svg';
import gradientMaker from '../utils/gradient';
import bestContrast from '../../../utils/colorContrast';
import uniqueId from '../../../utils/uniqueId';
import dataset from '../../../utils/dataset';
c... |
angular.module('bc-manufacturer')
.controller('ReportsCtrl', ['$scope', '$http', '$interval', function ($scope, $http, $interval) {
$scope.vehicles = {};
$scope.usageEvents = {};
$scope.event = {
not_shown: 0,
similar_failures: []
};
$http.get('vehicles_query').then(function(respo... |
/* global MESSAGE, _ */
const mongoose = require('mongoose');
const {
INVALID_REQUEST_PARAMS, PROJECT_POLICY_NOT_FOUND, RECORD_WITH_SAME_NAME_EXISTS, SERVER_ERROR, ALREADY_USED_POLICY, MIDDLEWARE_UPDATED, OK,
} = require('../../constants/message').message;
const { getApplicationDetail } = require('../util/getApplica... |
//
// Initializations
//
let custom = false;
let sample = false;
let firstExercise = true;
let numOfDigits = [4,5,6,6,7,7,8,8,8,9,9,10];
let startingTime = 0.8;
let increasePerLevelTime = 0.2;
let timeForEach = initTime(startingTime, increasePerLevelTime);
let numbers = initializeNumbers();
let currentExercise = 0;
let... |
'use strict';
// In worker threads, execute the script sent through the
// message port.
const {
ObjectDefineProperty,
} = primordials;
const {
patchProcessObject,
setupCoverageHooks,
setupInspectorHooks,
setupWarningHandler,
setupDebugEnv,
initializeDeprecations,
initializeWASI,
initializeCJSLoade... |
function viewIndex(){
var url = 'http://loc.mean.example.com/api/articles';
var xhr = new XMLHttpRequest();
xhr.open('GET', url);
xhr.send();
xhr.onload = function(){
let data = JSON.parse(xhr.response);
var rows = '';
for(var i=0; i<data['articles'].length; i++){
let x = data[... |
const argv = require('minimist')(process.argv);
const gulp = require('gulp');
const gutil = require('gulp-util');
const plugins = require('gulp-load-plugins')();
const fs = require('fs');
const os = require('os');
const _ = require('lodash');
const shell = require('gulp-shell');
const path = require('path');
const mv =... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const assert = require('assert');
const error_code_1 = require("../error_code");
const chain_1 = require("../chain");
const util_1 = require("util");
const { LogShim } = require('../lib/log_shim');
class BaseExecutor {
constructor(logger) ... |
var request = require('request');
var express = require('express');
var router = express.Router();
var Q = require('q');
var manifest = require('../public/manifest.json');
var submit_response;
/* GET home page. */
router.get('/', function(req, res, next) {
getRequest();
function getRequest() {
//The ... |
const fs = require('fs');
let mapNames = JSON.parse(fs.readFileSync('./MapNames.json'));
async function UpdateMapNames() {
var query = 'https://tempus.xyz/api/maps/detailedList';
const axios = require('axios');
return await axios.get(query)
.then(function (response) {
var maps = [];
... |
/**
* @fileOverview Ajettava palvelin
*/
"use strict";
/**#nocode+*/
var argv = require('optimist')
.default({d: false, c: 'config'})
.alias({'p' : 'port', 'a' : 'address', 'd' : 'debug', 'c': 'config', 'h': 'help'})
.describe({
'h': 'Shows this help and exits.',
'c': 'Load config from this ... |
// Using AXIOS, to get the data,
const items = document.querySelector('.items');
const show_items = document.querySelector('.show_items');
const container = document.querySelector('.container');
const data_demo = document.querySelector('#demo');
const fetchBitCoinPrice = async() => {
try {
const res = await fetc... |
/*
* Jexl
* Copyright 2019 <NAME>
*/
const Evaluator = require('./evaluator/Evaluator')
const Lexer = require('./Lexer')
const Parser = require('./parser/Parser')
const defaultGrammar = require('./grammar').elements
const PromiseSync = require('./PromiseSync')
/**
* Jexl is the Javascript Expression Language, cap... |
import React, { useState, useEffect } from "react";
import {
Card,
CardBody,
CardHeader,
Table,
CardTitle,
Row,
CardImg,
Col,
CardSubtitle,
Container,
} from "reactstrap";
import "../../assets/css/Dashboard.css";
import Axios from "axios";
import BandWidthChart from "../../components/SummaryChart/Su... |
const { Account } = require("@tonclient/appkit");
const { TonClient, signerKeys, builderOpBitString, builderOpInteger} = require("@tonclient/core");
const { libNode } = require("@tonclient/lib-node");
const deepEqual = require('deep-equal');
TonClient.useBinaryLibrary(libNode);
const { RootContract } = require("./art... |
const R = require("../node_modules/ramda/dist/ramda.js");
const HtmlUtils = require("../util/HtmlUtilities.js");
const WikiUtils = require("../util/WikiUtilities.js");
const Person = require("../artifact/Person.js");
const Series = require("../artifact/Series.js");
const UrlGenerator = require("./UrlGenerator.js");
... |
CLASS$(function () {
this.__super.call(this);
Laya.stage.on(Laya.Event.MOUSE_DOWN, this, onMouseDown);
Laya.stage.on(Laya.Event.MOUSE_UP, this, onMouseUp);
resetTarget();
}, 'GamePlayScene', ui.GamePlaySceneUI);
var gameReady = false;
var ballFlying = false;
var targerEnter = true;
var score = 0;
var ... |
import React from "react";
import Document, { Html, Head, Main, NextScript } from "next/document";
import { GTM_ID } from "../lib/gtm";
class MyDocument extends Document {
render() {
return (
<Html lang="en">
<Head>
<meta charSet="utf-8" />
<meta name="theme-color" content="#000... |
var Literal = require('./literal');
var compute = require('can-compute');
var assign = require('can-util/js/assign/assign');
var dev = require("can-util/js/dev/dev");
var isEmptyObject = require('can-util/js/is-empty-object/is-empty-object');
var expressionHelpers = require("../src/expression-helpers");
var utils = req... |
/* global module */
/* eslint-env: node */
const path = require('path');
function logError(msg) {
console.error(`[eslint-config-pureprofile] ${msg}`);
}
const cwd = path.join(process.cwd(), 'node_modules');
function getModuleVersion(name, warnIfNotFound) {
try {
const packageJson = require(path.join(name, '... |
let purchasesDao = require("../Dao/purchases-dao")
let cacheModule = require("../Dao/cache-module")
let ErrorType = require("../Errors/error-type");
let ServerError = require("../Errors/server-error");
//get user last purchase
async function getLastPurchase(userToken,cartId) {
let userId = cacheModule.get... |
const fs = require('fs')
function getBoxes(state, pos, end, boxArray) {
return new Promise((resolve, reject) => {
function getBoxesInternal(start, end) {
readBox(state, start).then(function(box) {
boxArray.push(box)
if (box.end >= end) {
resolve()
} else {
getBox... |
import { GlDropdownItem, GlFormGroup, GlSprintf } from '@gitlab/ui';
import { cloneDeep } from 'lodash';
import EscalationRule, { i18n } from 'ee/escalation_policies/components/escalation_rule.vue';
import UserSelect from 'ee/escalation_policies/components/user_select.vue';
import {
DEFAULT_ESCALATION_RULE,
ACTIONS... |
import React, { Component } from 'react';
import './App.css';
import Playlists from './components/Playlists';
import Videos from './components/Videos';
import { BrowserRouter as Router, Route, Link, Switch } from 'react-router-dom';
import Channels from './components/Channels';
import Subscriptions from "./components/S... |
var $ = require('jquery'),
React = require('react');
var io = require('../assets/socket.io.js');
var socket = io();
var WODetail = module.exports = React.createClass({
getInitialState: function () {
return {
workorder :null
};
},
onWorkorderUpdated : function (updatedWorkorder) {
var _self = th... |
import {Vector3} from "./Vector3";
import {angle_vector, canvas_arrow} from "./utils";
export function Sound(name, options) {
options = {
volume: 1,
loop: false,
streaming: true,
spacialized: false,
oriented: false,
position: Vector3(0, 0, 0),
orientation: Vec... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import { ASSETS_FQDN, BROWSER_GRAPHQL_FQDN, NODE_ENV, SEGMENT_WRITE_KEY } from '../../../config/environment';
import defaultState from '../../state/redux/default';
const vendorPath = ASSETS_FQDN + '/vendor.js' +... |
/*
* 2002-2016 TemplateMonster
*
* TM Product List Gallery
*
* NOTICE OF LICENSE
*
* This source file is subject to the General Public License (GPL 2.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/GPL-2.0
*
... |
// Check if mobile browser first,
// then continue with the page logic
$(function() {
if(BooksysBrowser.isMobile()){
// Make it behave like an app
BooksysBrowser.setViewportMobile();
BooksysBrowser.setManifest();
BooksysBrowser.setMetaMobile();
// Add mobile style dynamicall... |
var copyOfL=0;
var copyOfR=0;
function checkRecs (L,R,checker){
copyOfL=L;
copyOfR=R;
var cellName;
var colIndex=0;
var rowIndex=0;
var isVirtual=0;
for (var i=0;i<R;i++){
for(var j=1;j<L;j++){
//cdg.data[i][j]=cdg.data[i][j]+" * ";
rowIndex=i;
colIndex=j;
... |
//---BUILD PAGE---
var HOME = "home";
$(document).ready(function(){
//-- Chrome/Android (and whoever will support it) --
//handle Chrome progressive app popup for home-screen installation
window.addEventListener('beforeinstallprompt', function(e) {
//e.preventDefault(); //use this to prevent pop-up
return ... |
var Test = require('../config/testConfig.js');
var BigNumber = require('bignumber.js');
contract('Flight Surety Tests', async (accounts) => {
var config;
before('setup contract', async () => {
config = await Test.Config(accounts);
await config.flightSuretyData.authorizeCaller(config.flightSuretyApp.addre... |
'use strict';
// Disable the length checks as in this file all routes are documented
/*eslint max-len: off*/
/*eslint max-lines-per-function: off*/
var Joi = require('joi');
exports.version = versionConfig;
exports.app = appConfig;
exports.parameter = parameterConfig;
exports.calendar = calendarConfig;
exports.geo = ... |
//return a list of nodes that have their selected giftee!
//var apiKey = "<KEY>";
var nodemailer = require('nodemailer');
var transporter = nodemailer.createTransport({
service: 'Gmail',
auth: {
user: '<EMAIL>',
pass: ''
}
});
function personNode(name, email, excludedPerson) {
this.nam... |
/*
* React.js Starter Kit
* Copyright (c) 2014 <NAME> (@koistya), KriaSoft LLC.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
'use strict';
// Include Gulp and other build automation tools and utilities
// See: https://github... |
import { useEffect, useState,useRef } from "react";
import React from "react";
import axios from "axios";
import qs from "qs";
import ActiveUserChart from "./charts/ActiveUserChart";
import ExitAnalysisChart from "./charts/ExitAnalysisChart";
import { Card, Col, Container, Row } from "react-bootstrap";
var label='ABC... |
import React, {
createContext,
useCallback,
useEffect,
useMemo,
useState
} from 'react';
import T from 'prop-types';
import Amplify, { Auth } from 'aws-amplify';
import qs from 'qs';
import { useContextualAbility, updateAbilityFor } from '../a11n';
import config from '../config';
import { createContextChecke... |
import * as R from 'ramda';
import db from '../../db';
import { get_item_details } from '../get_item_details/get_item_details';
import { apply_pricing_rule_for_free_items } from '../pricing_rule/utils';
import { get_serial_no } from '../utils';
// https://github.com/frappe/erpnext/blob/f7f8f5c305aa9481c9b142245eadb1b... |
/**
* Created by <NAME> on 16/2/2020.
*/
import React, { Component } from "react";
import { connect } from "react-redux";
import { bindActionCreators } from "redux";
import { withStyles } from "@material-ui/core/styles";
import Modal from "@material-ui/core/Modal";
import Grid from "@material-ui/core/Grid";
import ... |
// try ply format
var camera, scene, renderer;
var windowScale;
var ambientLight, light;
var controls;
var myObjs = {};
function drawCube(rgb=0xff0000ff, pos=[0, 0, 0]) {
var scale = 0.2;
var geo = new THREE.CubeGeometry(scale, scale, scale); // change the resolution here
var mat = new THREE.MeshLambertMat... |
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
import expect from 'expect.js';
import { FOLLOWER_INDEX_ADVANCED_SETTINGS } ... |
class Box {
constructor(x, y) {
this.x = x;
this.y = y;
}
getTopBox() {
if (this.y === 0) return null;
return new Box(this.x, this.y - 1);
}
getRightBox() {
if (this.x === 3) return null;
return new Box(this.x + 1, this.y);
}
getBo... |
//数据验证格式
var validateFormat = {
mobile: /^1[0-9][0-9]{9}$/i,
email: /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/i
};
//多条件过滤 涉及所有查询条件,修改后请全局测试
function FilterCondition(obj) {
var that = obj;
var dataKey = $(that).attr("data-key") || "";
var dataFilterType = $(that).att... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.