code
stringlengths
2
1.05M
/* By Osvaldas Valutis, www.osvaldas.info Available for use under the MIT License */ ;(function( $, window, document, undefined ) { var isTouch = 'ontouchstart' in window, eStart = isTouch ? 'touchstart' : 'mousedown', eMove = isTouch ? 'touchmove' : 'mousemove', ...
import * as React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'components/timeline'; const requireDemo = require.context('docs/src/pages/components/timeline', false, /\.(js|tsx)$/); const...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M7.34 6.41L.86 12.9l6.49 6.48 6.49-6.48-6.5-6.49zM3.69 12.9l3.66-3.66L11 12.9l-3.66 3.66-3.65-3.66zm15.67-6.26C17.61 4.88 15.3 4 13 4V.76L8.76 5 13 9.24V6c1.79 0 3.58.68 4.95 2.05 2.73 2.73 2.73 7.17 ...
var sortable = { init: function() { $( ".sortable" ).sortable({ update: function(event, ui){ $.post($(this).data("url"), { orders: $(this).sortable('serialize')}); } }); } }
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.formatTime = exports.keyboardControls = undefined; var _keyboardControls2 = require('./keyboard-controls'); var _keyboardControls3 = _interopRequireDefault(_keyboardControls2); var _formatTime2 = require('./format-time'); var _f...
import { moduleForModel, test } from 'ember-qunit'; moduleForModel('i-c-s-soft-s-t-o-r-m-n-e-t-security-link-role', 'Unit | Model | i-c-s-soft-s-t-o-r-m-n-e-t-security-link-role', { // Specify the other units that are required for this test. needs: [ 'model:i-c-s-soft-s-t-o-r-m-n-e-t-security-access', 'mod...
define([ "module" ], function(module) { console.log("Loading intern config", module.id); var config = { loader: { // These paths are for modules that are accessed via a top-level module id. paths: { text: "./lib/text", amdjquery: "./src/amdjqu...
var animalAppControllers = angular.module('UserConfirmRegistrationController', []); animalApp.controller('UserConfirmRegistrationController', ['$scope', '$location', '$route', 'AuthenticationService', 'localStorageService', function($scope, $location, $route,...
import { LitElement, html, css } from 'lit' import sha1 from 'sha1' import { RESET } from './styles' class IdenticonElement extends LitElement { static get styles() { return css` /* Stop prettier from doing dumb things with this */ ${RESET} /* */ :host { display: block; width: ...
import React from 'react'; import NavigationBar from '../../components/NavigationBar/NavigationBar'; function Projects () { document.title = 'Projects'; return ( <div className="Projects"> <NavigationBar /> <div className="page-wrapper"> <h1>Projects</h1> </div> </div> ); } ex...
// Python Tutor: https://github.com/pgbovine/OnlinePythonTutor/ // Copyright (C) Philip Guo (philip@pgbovine.net) // LICENSE: https://github.com/pgbovine/OnlinePythonTutor/blob/master/LICENSE.txt /* TODO: - substitute in a non-live version of the live editor from opt-live.js in addition to the janky current version...
/*! ** Unobtrusive validation support library for jQuery and jQuery Validate ** Copyright (C) Microsoft Corporation. All rights reserved. */ /*jslint white: true, browser: true, onevar: true, undef: true, nomen: true, eqeqeq: true, plusplus: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: false ...
/** * 模型-商品 * * @public * |- @param {string} raw : [ {} ] 保存的原数据 * |- @param {string} name : [ "" ] 商品名 * |- @param {string} pic : [ "" ] 图片路径 * |- @param {number} prize : [ 0 ] 单价 * |- @param {number} type : [ 1 ] 分类(1:上衣;2:裤子;3:包袋) * |- @param {number} ...
angular.module('RSDB.meal', [ 'ui.state', 'ngResource', 'ngGrid' ]).config([ '$stateProvider', function config($stateProvider) { $stateProvider.state('meals', { url: '/meals', views: { 'main': { controller: 'MealsCtrl', templateUrl: 'meal/meals.tpl.html' } ...
version https://git-lfs.github.com/spec/v1 oid sha256:d81658df1450955ec215bd41505fa117c408c3cd6c517169ef76c3a0515b8cf7 size 23560
var Page = { clickAddButton: () => { return element(by.css('#newResource')).click(); }, /** * Returns a promise which will resolve with the rows displayed in the "list plugins" page */ getRows: () => { return element.all(by.repeater('plugin in vm.resources')); }, /** * Returns a promise ...
$(function() { function missSnippet(obj, data) { // <snippet> source 요청이 실패했을 때 오류 메시지 박스 $('<div class="panel panel-danger"></div>') .append('<div class="panel-heading">Snippet load error!</div>') .append('<div class="panel-body">"' + obj.attr('source') + '" 지정된 경로 파일을 찾을 수 없습니다.</div>') .appendTo(obj);...
'use strict' const PDF = require('./object') const Parser = require('./parser/parser') const PROPERTIES_TO_COPY = { colorSpaces: 'ColorSpace', fonts: 'Font', xobjects: 'XObject', extGStates: 'ExtGState', shadings: 'Shading', } module.exports = class ExternalDocument { constructor(src) { const parser ...
/*! * jQuery UI Core 1.11.0pre * http://jqueryui.com * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/category/ui-core/ */ (function () { function visible( element ) { return jQuery.expr.filters.visible( el...
exports.config = { specs: require("./index-webdriver.js").specs(), framework: "qunit", baseUrl: "http://localhost:8000", sync: false, user: process.env.SAUCE_USERNAME, key: process.env.SAUCE_ACCESS_KEY, capabilities: (function() { var baseCapabilities = { recordVideo: fa...
function euler527() { // Good luck! return true } euler527()
// Generated by CoffeeScript 1.8.0 (function() { $(document).ready(function() { var getInfo; $("#get_db").click(function() { var reqData; reqData = getInfo(); return $.post('/get_db', reqData, function(body) { var data; console.log(body); data = JSON.parse(body); ...
function genderSelect(gender) { if (gender == "male") { $("#female").removeClass("selected-button"); $("#male").addClass("selected-button"); $("#gender").attr("value", "male"); } else{ $("#male").removeClass("selected-button"); $("#female").addClass("selected-button"); $("#gender").attr("value", "fe...
describe("Company with SalesPeople TODO", function() { var company; beforeEach(function() { company = new Company(); }); it("should have an allMySalesPeople property", function() { expect(company.hasOwnProperty('allMySalesPeople')).toBeTruthy(); }); describe("the allMySalesPeople property", fun...
var http = require('http'), util = require('util'); //var request = require('request'); //hart-kodierter Aufruf var uploadFilePath = "/Users/chris/Desktop/tmp/1G"; //request-Parameter zusammenbauen var reqOptions = { hostname:"127.0.0.1", method:"HEAD", path:"/files/7e293750-f64a-11e3-9349-3b31a960...
tgo.views.chatView = (function() { var view = new tgo.views.View(); view.init = function() { messageList = $('#chat-content'); chatInput = $('#chat-input'); chatInput.removeAttr('readonly'); chatInput.on('keydown', function(e) { if (e.keyCode == 13 && this.value) ...
/** * */ var context = Paykoun.createContext(workQueue); var statd = context.statd(); statd.report('heartbeat'); statd.event('eventName'); context.statd() .host('') .port(14253) .namespace('paykoun1'); var workers = Paykoun.gatherWorkers('./workers'); // workers is an array like [{/* Whatever the struct...
"use strict"; var helpers = require("../../helpers/helpers"); exports["Australia/Canberra"] = { "guess:by:offset" : helpers.makeTestGuess("Australia/Canberra", { offset: true, expect: "Australia/Sydney" }), "guess:by:abbr" : helpers.makeTestGuess("Australia/Canberra", { abbr: true, expect: "Australia/Sydney" }), ...
/** * Created by craig on 2016-07-17. */ $( document ).ready(function() { if(typeof(EventSource) !== "undefined") { var source = new EventSource("/get/nowPlaying"); source.onopen = function () { console.log('connection opened'); }; source.onmessage = function(e) { var data = e.data; setNowPlaying(d...
import React from 'react' import classes from './StreamItem.scss' import { find } from 'lodash' const VERY_SHORT = 'very short' const SHORT = 'short' const LONG = 'long' const VERY_LONG = 'very long' const LENGTHS = [ { name: VERY_SHORT, className: classes.emphasis, length: 1.5 }, { name: SHORT, ...
/* * Copyright (c) 2016-present, Parse, LLC * All rights reserved. * * This source code is licensed under the license found in the LICENSE file in * the root directory of this source tree. */ import React from 'react'; import Field from 'components/Field/Field.react'; import Fieldset from 'components/...
describe('promises', function(){ it('should accept', function(done){ var p = new Promise(function(accept, reject){ accept(true); }); p.then(function(value){ expect(value).toBe(true); done(); }); }); it('should reject', function(done){ var p = new Pro...
/* http://keith-wood.name/calendars.html English/UK localisation for Gregorian/Julian calendars for jQuery. Stuart. */ (function($) { $.calendars.calendars.gregorian.prototype.regionalOptions['en-GB'] = { name: 'Gregorian', epochs: ['BCE', 'CE'], monthNames: ['January','February','March','April','May','Ju...
const resolve = require('path').resolve; module.exports = { analyze: resolve(process.cwd(), 'dist/stats.json'), crt: resolve(process.cwd(), 'server.crt'), dist: resolve(process.cwd(), 'dist'), key: resolve(process.cwd(), 'server.key'), module: resolve(process.cwd(), 'node_modules'), public: resolve(process...
import { expect } from "chai"; import * as mocks from "./mocks"; import getErrors from "../src/getErrors"; function noRequired() { getErrors("", mocks.getErrors.name2); } function noMessageEmpty() { getErrors("", mocks.getErrors.name3); } function noMessageNoMatch() { getErrors("abcd", mocks.getErrors.name3); ...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.8/esri/copyright.txt for details. //>>built define(["require","exports","../../../../core/tsSupport/assignHelper","./BufferView","./InterleavedLayout"],function(d,b,e,a,k){function f(a){var c=[];a.fields.forE...
import decode from 'jwt-decode' const trim = (token) => token.substring(1, token.length - 1) export const SET_USER = 'SET_USER' export default store => next => action => { if (action.type == SET_USER) { return next(action) } const token = trim(localStorage.userJWTToken) const tokenUserId = decode(token)...
/** * Created by jarst on 2016-08-31. */ function isString(o) { return typeof o === 'string' || o instanceof String; } function asCodeArray(e) { return [e]; } function asOctetArray(code) { return [(code & 0xff00) >> 8, code & 0x00ff]; } /** * Converts String to Array of UTF-16 character codes. * @pa...
import { createSpec, derived, faker } from '@helpscout/helix' const avatarSpec = createSpec({ id: faker.datatype.uuid(), firstName: faker.name.firstName(), lastName: faker.name.lastName(), name: derived(({ firstName, lastName }) => `${firstName} ${lastName}`), image: faker.image.avatar(), }).afterGenerate(pr...
function range(from, to){ var ranges = []; for (var i=from; i<=to; i++){ ranges.push(i); } return ranges; } function getMin(input, defaultVal){ var inputInt = parseInt(input); if (input !== undefined && !isNaN(inputInt) && input >= defaultVal){ return input; } return defaultVal; } function get...
var base_url = null; if (window.parent.location.href.indexOf('127.0.0.1:8080') > -1){ base_url = 'http://127.0.0.1:8080/'; }else if (window.parent.location.href.indexOf('/teste') == -1){ base_url = 'http://api.magal666.com.br'; }else{ base_url = 'http://www.magal666.com.br/teste/'; } configModule = angul...
// handles required flag module.exports = function(mapper, property, name) { if (property.required) { var validator = property.checkContents; property.checkContents = function(value) { if (typeof value === 'undefined') { throw new Error('"' + name + '" property is required'); } retur...
//js naxx40/scripts/doc.js load('steal/rhino/rhino.js'); steal("documentjs").then(function(){ DocumentJS('naxx40/naxx40.html', { markdown : ['naxx40'] }); });
"use strict"; var Prom = require('../'); var tests = require('promises-aplus-tests'); function deferred(){ var resolve, reject; var promise = new Prom(function (_resolve, _reject){ resolve = _resolve; reject = _reject; }); return { promise: promise, resolve: resolve, reject: reject }; } ...
var App = { todos: new wig.module.Registry(), createTodo: (function () { var i = 0; return function (todo) { var id = ('todo' + i++); this.todos.set(id, todo); }; }()), initialize: function (List, domRoot) { var list; this.createTodo({...
/** * Copyright 2012-2020, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var Color = require('../../components/color'); var hasColorscale = require('../../components/colorscale/helpers'...
'use strict'; describe('Controller: BoardCtrl', function () { // load the controller's module beforeEach(module('kanbanboardFrontendApp')); beforeEach(angular.mock.module('ngCookies')); var ctrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScop...
// Generated on 2014-10-23 using generator-angular 0.9.8 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // use this if you want to recursively match all subfolders: // 'test/spec/**/*.js' module.exports = function (grunt) { // Load grunt tasks au...
var Spreadsheet = require('edit-google-spreadsheet'); var MongoClient = require('mongodb').MongoClient; var prompt = require('prompt'); var dbSocket = null; var GSSync = function (aConfig) { this.config = null; if (aConfig) { this.config = aConfig; // Modules dbSocket = this.config.dbSocket()...
/* 作者: dailc * 时间: 2017-08-01 * 描述: Range-Sum-Query-Immutable * * 来自: https://leetcode.com/problems/range-sum-query-immutable */ (function(exports) { /** * @param {number[]} nums */ var NumArray = function(nums) { this.nums = nums; var sum = [], len = nums &...
'use strict'; import React from 'react'; class CarouselArrow extends React.Component{ constructor(props) { super(props); } render() { var target; if (this.props.direction == "left") { target = "prev"; } else { target = "next"; } return ( <a className={this.props.direc...
var Game = function() { }; Game.prototype.Run = function() { this.overview = new Overview(); this.in_overview = true; this.phaser = new Phaser.Game(800, 600, Phaser.AUTO, '', { preload: this.preload, create: this.create, update: this.update }); }; Game.prototype.Preload = function() { this.overview.Pr...
(function( $ ) { 'use strict'; /** * All of the code for your admin-facing JavaScript source * should reside in this file. * * Note: It has been assumed you will write jQuery code here, so the * $ function reference has been prepared for usage within the scope * of this function. * * This enables you...
var App = function () { function handleIEFixes() { //fix html5 placeholder attribute for ie7 & ie8 if (!$.support.placeholder) { jQuery('input[placeholder], textarea[placeholder]').each(function () { var input = jQuery(this); jQuery(input).val(input.attr...
/** * BlogPost.js * * @description :: TODO: You might write a short summary of how this model works and what it represents here. * @docs :: http://sailsjs.org/#!documentation/models */ module.exports = { attributes: { title : { type: 'string', required: true }, content : { type: 'text', required: t...
import express from 'express'; import base from 'base'; import httpServer from './httpServer'; import applyStaticsPaths from './statics'; import applyServerRouting from './routing'; import applyEnvMiddleWare from './middleware'; const app = express(); const launchServer = () => { applyEnvMiddleWare(app) .then(...
define(function(){ var ip = 'www.xyz.com'; var port = 4001; return { port: port, assets: { css: [ 'https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css', 'public/css/app.css' ], js: [ // for things not loaded by require on the client 'public/lib/requirejs/requ...
this.NesDb = this.NesDb || {}; NesDb[ '9BB9C3DF064B7F0698AF58338EF4C8D901ECB54A' ] = { "$": { "name": "Chuka Taisen", "altname": "中華大仙", "class": "Licensed", "catalog": "DTF-CW (27)", "publisher": "Taito", "developer": "Taito", "region": "Japan", "players": "1", "date": "1989-09-22" }, "cartridge"...
import BaseHandler from './base'; // textarea用のハンドラー class TextareaHandler extends BaseHandler { canHandle(elem) { return elem.tagName && elem.tagName.toLowerCase() === 'textarea'; } setValue(elem, value) { elem.value = value; } getValue(elem) { return elem.value; } } export default new Text...
/*! * js-file-browser * Copyright(c) 2011 Biotechnology Computing Facility, University of Arizona. See included LICENSE.txt file. * * With components from: Ext JS Library 3.3.1 * Copyright(c) 2006-2010 Sencha Inc. * licensing@sencha.com * http://www.sencha.com/license */ /*! * Ext JS Library 3.3.1 * Copyrigh...
var config = require('../../config'); var request = require('supertest'); var should = require('should'); var app = require('../../app'); var co = require('co'); var userController = require('../../controllers/user'); var utils = require('../utils'); describe('user controller', function() { it('should create a use...
(function () { 'use strict'; describe('Trackinginfos Controller Tests', function () { // Initialize global variables var TrackinginfosController, $scope, $httpBackend, $state, Authentication, TrackinginfosService, mockTrackinginfo; // The $resource service augments ...
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.0.0-rc7-master-80a8929 */ (function( window, angular, undefined ){ "use strict"; /** * @ngdoc module * @name material.components.gridList */ angular.module('material.components.gridList', ['material.core']) .directiv...
// Generated on 2015-06-25 using // generator-webapp 0.5.1 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // If you want to recursively match all subfolders, use: // 'test/spec/**/*.js' module.exports = function (grunt) { // Time how long tasks t...
// Generated on 2016-06-15 using generator-angular 0.15.1 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // use this if you want to recursively match all subfolders: // 'test/spec/**/*.js' module.exports = function (grunt) { // Time how long task...
console.log(items); var drawItems = function(items) { var elements = ""; _.each(items, function(item) { if (!item.materials || item.materials.length === 0) return; var string = "<li id=\"" + item.id + "\"><h2>" + item.name + "</h2>"; if (item.materials) { string += "<strong>Materials</strong>"; ...
"use strict"; var Route = require("../../Route.js"); var getTrackBinAPath = require("../../getTrackBinAPath.js"); var get = new Route( "Get a track by YouTube ID (serves a static file)", "GET", "/get/{youTubeId}" ); get.setHandler((request, reply) => { let youTubeId = encodeURIComponent(request.params.youTub...
module("About Operators (topics/about_operators.js)"); test("addition", function() { var result = 0; //starting i at 0, add i to result and increment i by 1 until i is equal to 5 for (var i = 0; i <= 5; i++) { result = result + i; } equal(15, result, "What is the value of result?"); }); test("assignmen...
'use strict'; const configController = require('lib/test-reader/config-controller'); describe('test-reader/config-controller', () => { describe('testTimeout', () => { it('should set timeout for passed runnable', () => { const runnable = { timeout: sinon.stub().named('timeout') ...
/* eslint-disable */ /** * THIS FILE IS GENERATED AUTOMATICALLY. * DO NOT EDIT. **/ import { join, basename } from 'path' import { renderToString } from 'vue/server-renderer' import serialize from 'serialize-javascript' import renderTemplate from './render-template.js' import clientManifest from './quasar.manifest...
/* * Author: Daniel Holmlund <daniel.w.holmlund@Intel.com> * Copyright (c) 2015 Intel Corporation. * * 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 * wi...
const gulpset = require('./../../gulpset'); // @verbose gulpset.gulp.task('sass', cb => gulpset.tasks.sass(cb, false)); // @verbose gulpset.gulp.task('sass-minify', cb => gulpset.tasks.sass(cb, true)); gulpset.confs.sass = [ { src: gulpset.paths.src + '**/!(_)*.scss', dest: gulpset.paths.dest // sprite...
import { initializeApp } from "firebase"; import { addDataSuccess, removeItemSuccess, goOnline, goOffline } from '../actions/firebase'; const _config = { apiKey: "AIzaSyDMJte-Wd7gFXk2Awi9H4kJ4ah6BnI21Sw", authDomain: "minddb-ca25f.firebaseapp.com", databaseURL: "https://minddb-ca25f.firebaseio.com", projectId: "mi...
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import Router from 'universal-router'; import routes f...
function* helloWorldGenerator() { yield 'hello'; yield 'world'; return 'ending'; } var hw = helloWorldGenerator(); console.log(hw.next()); console.log(hw.next()); setTimeout(()=>{ console.log(hw.next()); },3000); setTimeout(()=>{ console.log(hw.next()); },3000);
'use strict'; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ // Metadata. pkg: grunt.file.readJSON('ddjax.jquery.json'), banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") %>\n' + '<%= pkg.homepage ...
'use strict'; const User = require('./../models/user'); exports.findById = (id) => { return User.findById(id) .populate('eventId', '_id name location') .select('_id firstName lastName userTel userEmail userName roles eventId location') .exec(); } exports.search = (searchTerm) => { return User.find({ $or...
import { expect } from 'chai'; import NewsStore from '../../stores/NewsStore'; import NewsDispatcher from '../../dispatcher/NewsDispatcher'; import NewsActionTypes from '../../constants/NewsActionTypes'; import { News } from '../TestData'; describe('News Store Test', () => { const newsItem = News; it('News Store ...
(function (angular) { angular.module('shiverview') .controller('aboutCtrl', ['$scope', '$http', function ($scope, $http) { $http({ url: '/status', method: 'get' }) .then(function (res) { $scope.status = res.data; $scope.buildDate = new Date(new Date().getTime() - res.data.uptime * 1000); }); }])...
// require any needed js files // routes exports.home = function(req, res){ res.render('home'); };
/** * Developer: Stepan Burguchev * Date: 10/3/2014 * Copyright: 2010-2015 Comindware® * All Rights Reserved * * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF Comindware * The copyright notice above does not evidence any * actual or intended publication of such source code. */ /* global def...
class QueryString { /** * Query String 读写 * @memberof module:utils * @class QueryString * @param {string} searchString 当前页面的window.location.search值 * @returns {QueryString} */ constructor(searchString) { this._searchString = searchString; this._query = {}; ...
var path = require('path'); var fs = require('fs'); function Commandable() { var self = this; this.commands = {}; this.loggedin = {}; var isDirty = false; var storagePath = "storage"; // Determine if botgroup, or bot if (this.isBot) { // bot storagePath = path.join(storagePath, self.group.alias); if (!f...
/** * Created by Donghui Huo on 2017/3/29. */ import {utilfuns} from './state' import lodash from 'lodash' export default{ tableHeader: (state, getters) => (id) => { let data = utilfuns.getTable(id) return data.rules.header }, tableHeaderConst: (state, getters) => (id) => { let data = utilfuns.getTa...
var __extends = this.__extends || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } __.prototype = b.prototype; d.prototype = new __(); }; define(["require", "exports", './DisplayObject'], function (require, exports, DisplayObject) { var...
function dns(e,n){"use strict";var t=nativedns.createServer(),s=[];if("number"!=typeof e||e%1!==0)throw"Wrong port syntax";"undefined"==typeof n&&(n="0.0.0.0"),t.on("request",function(e,n){s.forEach(function(t){if(t.regex.test(e.question[0].name))t.callback(e.question[0].name,function(s){n.answer.push(nativedns.A({name...
module.exports = function (value, options) { return parseInt(value) + 1; };
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.JsonSerializer = void 0; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (va...
import Vue from 'vue' import Router from 'vue-router' Vue.use(Router) var Main = () => System.import('../views/main/index.vue') var Dashboard = () => System.import('../views/dashboard/index.vue') var DataGrid = () => System.import('../views/dashboard/DataGrid.vue') var Account = () => System.import('../views/account/...
// Name : finishgoal.js // Author(s) : Cerek Hillen // Date Created: 10/20/2014 // Date Changed: 10/21/2014 // // Description: // This module provides the API endpoint to mark a goal as finished. ///////////// // Imports // var renderer = require('../renderer.js'), schema = require('../schema.js'), ...
'use strict'; var getBusinessObject = require('bpmn-js/lib/util/ModelUtil').getBusinessObject, is = require('bpmn-js/lib/util/ModelUtil').is, domQuery = require('min-dom/lib/query'), forEach = require('lodash/collection/forEach'), entryFactory = require('../../../factory/EntryFactory'), eventDefinitionHelper...
const express = require('express')
import ash from 'ash'; export default class List extends ash.Component { shouldUpdate(newProps) { // console.log('should list update?', this.props.list !== newProps.list || this.props.shadow !== newProps.shadow); // console.log('List shouldUpdate...', this.props.label, this.props.list !== newProps.list, this.prop...
import React from 'react'; import './style'; export class TabInfo extends React.Component { constructor(props) { super(props); } render() { if (this.props.data.length !== 0) { let tabBlock = this.props.data.map((data, index) => { if(this.props.selected == index + 1) { return ( ...
import {DialogConfiguration} from './dialog-configuration'; export {AiDialog} from './resources/ai-dialog'; export {AiDialogHeader} from './resources/ai-dialog-header'; export {AiDialogBody} from './resources/ai-dialog-body'; export {AiDialogFooter} from './resources/ai-dialog-footer'; export {AttachFocus} from './reso...
export { default } from 'ember-fhir/models/test-script-destination';
import React, {Component, PropTypes} from 'react'; function getStyles(props, context) { const {tableRowColumn} = context.muiTheme; const styles = { root: { paddingLeft: tableRowColumn.spacing, paddingRight: tableRowColumn.spacing, height: tableRowColumn.height, textAlign: 'left', ...
(function(root, factory) { if (typeof define === 'function' && define.amd) { define('three.ShadowMesh', ['three'], factory); } else if ('undefined' !== typeof exports && 'undefined' !== typeof module) { module.exports = factory(require('three')); } else { factory(root.THREE);...
import React, {Component} from "react"; import {inject, observer} from "mobx-react"; import {Modal, Row, Col} from "react-bootstrap"; import PropTypes from "prop-types"; import Button from "../../common/Button"; @inject("mainStore") @observer class WordReportOptionsModal extends Component { render() { con...
const cluster = require('cluster'); const childProcess = require('child_process'); const cpus = require('os').cpus().length; const processes = cpus >= 2 ? cpus >= 4 ? 4 : cpus : 2; if(cluster.isMaster){ console.log("Loading Louder Together"); console.log("Starting server processes"); for(var i = 0; i < processes; ...