code
stringlengths
2
1.05M
/** * Generic require login routing middleware */ exports.requiresLogin = function(req, res, next) { if (!req.isAuthenticated()) { return res.send(401, 'User is not authorized'); } next(); }; /** * User authorizations routing middleware */ exports.user = { hasAuthorization: function(req, re...
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'blockquote', 'th', { toolbar: 'Block Quote' } );
var gulp = require('gulp'), sass = require('gulp-sass'), uglify = require('gulp-uglify'), autoprefixer = require('gulp-autoprefixer'), minifyCss = require('gulp-minify-css'), rename = require('gulp-rename'), filter = require('gulp-filter'), util = require('gulp-util'), imagemin = require...
/*! * Inferno v1.3.0-rc.10 * (c) 2017 Dominic Gannaway' * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (factory((global.Inferno = glo...
ej.addCulture( "bn", { name: "bn", englishName: "Bangla", nativeName: "বাংলা", language: "bn", numberFormat: { groupSizes: [3,2], percent: { pattern: ["-n%","n %"], groupSizes: [3,2] }, currency: { pattern: ["$ -n","$ n"], groupSizes: [3,2], symbol: "₹" } }, calendars: { standard: { ...
run_spec(__dirname, { parser: "parse5" });
require("../lib/jasmine-promise"); var Http = require("../../http"); var Apps = require("../../http-apps"); var FS = require("../../fs"); describe("directory lists", function () { it("should be fine in plain text", function () { var fixture = FS.join(module.directory || __dirname, "fixtures"); ...
Meteor.methods({ deleteUserOwnAccount: function(password) { if (!Meteor.userId()) { throw new Meteor.Error('error-invalid-user', 'Invalid user', { method: 'deleteUserOwnAccount' }); } if (!RocketChat.settings.get('Accounts_AllowDeleteOwnAccount')) { throw new Meteor.Error('error-not-allowed', 'Not allowed...
/* * jquery.flot.tooltip * * description: easy-to-use tooltips for Flot charts * version: 0.8.4 * authors: Krzysztof Urbas @krzysu [myviews.pl],Evan Steinkerchner @Roundaround * website: https://github.com/krzysu/flot.tooltip * * build on 2014-08-04 * released under MIT License, 2012 */ (function...
(function($) { var csscls = PhpDebugBar.utils.makecsscls('phpdebugbar-widgets-'); /** * Widget for the displaying sql queries * * Options: * - data */ var SQLQueriesWidget = PhpDebugBar.Widgets.SQLQueriesWidget = PhpDebugBar.Widget.extend({ className: csscls('sqlqueries'...
/** * Livechat Trigger model */ class LivechatTrigger extends RocketChat.models._Base { constructor() { super(); this._initModel('livechat_trigger'); } // FIND save(data) { const trigger = this.findOne(); if (trigger) { return this.update({ _id: trigger._id }, { $set: data }); } else { return th...
// Copyright 2013 The Closure Library Authors. All Rights Reserved. // // 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 requ...
/* json2.js 2013-05-26 Public Domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. See http://www.JSON.org/js.html This code should be minified before deployment. See http://javascript.crockford.com/jsmin.html USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM S...
(function($) { $.extend($.summernote.lang, { 'da-DK': { font: { bold: 'Fed', italic: 'Kursiv', underline: 'Understreget', clear: 'Fjern formatering', height: 'Højde', name: 'Skrifttype', strikethrough: 'Gennemstreget', subscript: 'Sænket skrift...
on('change:repeating_sites:site_details_button', function(eventinfo) { if (eventinfo.newValue == 'on') { setAttrs({ repeating_sites_site_details: eventinfo.newValue, repeating_sites_site_theme_domain: 'off', repeating_sites_site_theme_domain_button: 'off' }); } else { setAttrs({ ...
import React from 'react'; import getRelatedIconClass from '../utils/getRelatedIconClass'; class Section extends React.Component { render () { const iconClass = this.props.icon || getRelatedIconClass(this.props.id); return ( <div className="dashboard-group" data-section-label={this.props.label}> <div class...
// dropped // not used in grappelli // kept this file to prevent 404
/************************************************************* * * MathJax/jax/output/HTML-CSS/fonts/Asana-Math/Operators/Regular/Main.js * * Copyright (c) 2013-2017 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance w...
var EventEmitter = require('events').EventEmitter var next = process.nextTick var SubDb = require('./sub') var Batch = require('./batch') var fixRange = require('level-fix-range') var Hooks = require('level-hooks') module.exports = function (_db, options) { function DB () {} DB.proto...
'single quotes';
/* Copyright (C) 2015 Yusuke Suzuki <utatane.tea@gmail.com> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions an...
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.mobx = f()}})(...
var five = require("../lib/johnny-five.js"), board, Navigator, bot, left, right, sonar, scanner, servos, expandWhich, reverseDirMap, scale; reverseDirMap = { right: "left", left: "right" }; scale = function(speed, low, high) { return Math.floor(five.Fn.map(speed, 0, 5, low, high)); }; /** * Navigator * ...
/* * jQuery MiniColors: A tiny color picker built on jQuery * * Copyright: Cory LaViska for A Beautiful Site, LLC. * * Contributions and bug reports: https://github.com/claviska/jquery-minicolors * * Licensed under the MIT license: http://opensource.org/licenses/MIT * */ if(jQuery) (function($) { // Defau...
(function (global) { var babelHelpers = global.babelHelpers = {}; babelHelpers.interopRequireDefault = function (obj) { return obj && obj.__esModule ? obj : { default: obj }; }; babelHelpers.interopRequireWildcard = function (obj) { if (obj && obj.__esModule) { return obj; } else {...
/**! * AngularJS file upload/drop directive and service with progress and abort * FileAPI Flash shim for old browsers not supporting FormData * @author Danial <danial.farid@gmail.com> * @version 3.0.3 */ (function() { var hasFlash = function() { try { var fo = new ActiveXObject('ShockwaveFlash.ShockwaveFl...
jQuery(function($){$(".siteorigin-panels-stretch.panel-row-style").each(function(){var $$=$(this);var onResize=function(){$$.css({"margin-left":0,"margin-right":0,"padding-left":0,"padding-right":0});var leftSpace=$$.offset().left;var rightSpace=$(window).outerWidth()-$$.offset().left-$$.parent().outerWidth();$$.css({"...
loadjs = (function () { /** * Global dependencies. * @global {Object} document - DOM */ var devnull = function() {}, bundleIdCache = {}, bundleResultCache = {}, bundleCallbackQueue = {}; /** * Subscribe to bundle load event. * @param {string[]} bundleIds - Bundle ids * @param {Function} callbackFn ...
(e) => "test"
/** * @author alteredq / http://alteredqualia.com/ * * - shows frustum, line of sight and up of the camera * - suitable for fast updates * - based on frustum visualization in lightgl.js shadowmap example * http://evanw.github.com/lightgl.js/tests/shadowmap.html */ THREE.CameraHelper = function ( came...
var identity = function(item) { return item } var itemId = function(item) { return item.id } /* * Filters a list to unique items */ module.exports = function(list, getId) { if (!list || !list.length) { return [] } if (!getId) { getId = (list[0].id ? itemId : identity) } var seen = {} var result = [] for (var...
module.exports = { prefix: 'fas', iconName: 'shopping-bag', icon: [448, 512, [], "f290", "M352 160v-32C352 57.42 294.579 0 224 0 153.42 0 96 57.42 96 128v32H0v272c0 44.183 35.817 80 80 80h288c44.183 0 80-35.817 80-80V160h-96zm-192-32c0-35.29 28.71-64 64-64s64 28.71 64 64v32H160v-32zm160 120c-13.255 0-24-10.745-24-24s10...
module.exports = { prefix: 'fas', iconName: 'headphones', icon: [512, 512, [], "f025", "M256 32C114.52 32 0 146.496 0 288v48a32 32 0 0 0 17.689 28.622l14.383 7.191C34.083 431.903 83.421 480 144 480h24c13.255 0 24-10.745 24-24V280c0-13.255-10.745-24-24-24h-24c-31.342 0-59.671 12.879-80 33.627V288c0-105.869 86.131-192 19...
// Contains all path information to be used throughout // the codebase. var moment = require('moment'), path = require('path'), when = require('when'), url = require('url'), _ = require('underscore'), requireTree = require('.....
/*! * FileInput Czech Translations * * This file must be loaded after 'fileinput.js'. Patterns in braces '{}', or * any HTML markup tags in the messages must not be converted or translated. * * @see http://github.com/kartik-v/bootstrap-fileinput * * NOTE: this file must be saved in UTF-8 encoding. */ ...
/**! * * Copyright (c) 2015-2016 Cisco Systems, Inc. See LICENSE file. * @private */ /* eslint-disable */ 'use strict'; /* istanbul ignore else */ if (!global._babelPolyfill) { require('babel-polyfill'); } // helper file for code coverage if (process.env.COVERAGE && (new RegExp(process.env.PACKAGE + '$')).tes...
/*! * Media Element * HTML5 <video> libary * http://mediaelementjs.com/ * * Creates a JavaScript object that mimics HTML5 media objects * through a Flash->JavaScript|Silverlight bridge * * Copyright 2010, John Dyer * Dual licensed under the MIT or GPL Version 2 licenses. * * Version: 1.1.0 */ // Namespace var html5 = ...
/*! * Fuel UX v3.14.1 * Copyright 2012-2016 ExactTarget * Licensed under the BSD-3-Clause license (https://github.com/ExactTarget/fuelux/blob/master/LICENSE) */ // For more information on UMD visit: https://github.com/umdjs/umd/ ( function( factory ) { if ( typeof define === 'function' && define.amd ) { defin...
var gulp = require('gulp'), gulpWatch = require('gulp-watch'), del = require('del'), runSequence = require('run-sequence'), argv = process.argv; /** * Ionic hooks * Add ':before' or ':after' to any Ionic project command name to run the specified * tasks before or after the command. */ gulp.task('s...
/*! * inferno-create-class v1.0.0-beta2 * (c) 2016 Dominic Gannaway * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.Infern...
'use strict'; if (process.env.NODE_ENV === 'production') { module.exports = require('./cjs/react-art.production.min.js'); } else { module.exports = require('./cjs/react-art.development.js'); }
var d3_selectionRoot = d3_selection([[document]]); d3_selectionRoot[0].parentNode = d3_selectRoot; // TODO fast singleton implementation! // TODO select(function) d3.select = function(selector) { return typeof selector === "string" ? d3_selectionRoot.select(selector) : d3_selection([[selector]]); // ass...
//! moment.js locale configuration //! locale : Montenegrin [me] //! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac ;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : ...
import {atan, cos, sin} from "../math"; import {azimuthalInvert} from "./azimuthal"; import projection from "./index"; export function gnomonicRaw(x, y) { var cy = cos(y), k = cos(x) * cy; return [cy * sin(x) / k, sin(y) / k]; } gnomonicRaw.invert = azimuthalInvert(atan); export default function() { return pro...
/** * (c) 2010-2017 Torstein Honsi * * License: www.highcharts.com/license * * Grid-light theme for Highcharts JS * @author Torstein Honsi */ 'use strict'; import Highcharts from '../parts/Globals.js'; /* global document */ // Load the fonts Highcharts.createElement('link', { href: 'https://fonts.googleapis...
/*! UIkit 2.19.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */ !function(t){"use strict";function o(o,i){i=t.$.extend({duration:1e3,transition:"easeOutExpo",offset:0,complete:function(){}},i);var n=o.offset().top-i.offset,s=t.$doc.height(),e=window.innerHeight;n+e>s&&(n=s-e),t.$("html,body").stop().ani...
'use strict'; var clc = require('../'); var text = '.........\n' + '. Hello .\n' + '.........\n'; var style = { ".": clc.yellowBright("X") }; process.stdout.write(clc.art(text, style));
/* * grunt * http://gruntjs.com/ * * Copyright (c) 2013 "Cowboy" Ben Alman * Licensed under the MIT license. * https://github.com/gruntjs/grunt/blob/master/LICENSE-MIT */ 'use strict'; var grunt = require('../grunt'); // The module to be exported. var fail = module.exports = {}; // Error codes. fail.code = {...
/* * not type checking this file because flow doesn't play well with * dynamically accessing methods on Array prototype */ import { def } from '../util/index' const arrayProto = Array.prototype export const arrayMethods = Object.create(arrayProto) /** * Intercept mutating methods and emit events */ ;[ 'push',...
//// Copyright (c) Microsoft Corporation. All rights reserved (function () { "use strict"; var DateTimeFormatting = Windows.Globalization.DateTimeFormatting; var DateTimeFormatter = DateTimeFormatting.DateTimeFormatter; var page = WinJS.UI.Pages.define("/html/scenario3-parameterizedTemplate.html", {...
/** * ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v4.2.1 * @link http://www.ag-grid.com/ * @license MIT */ var events_1 = require("./events"); var ColumnChangeEvent = (function () { function ColumnChangeEvent(type) { this.type = type; ...
/*! * QUnit 2.5.0 * https://qunitjs.com/ * * Copyright jQuery Foundation and other contributors * Released under the MIT license * https://jquery.org/license * * Date: 2018-01-10T02:56Z */ (function (global$1) { 'use strict'; global$1 = global$1 && global$1.hasOwnProperty('default') ? global$1['default'] ...
/*! * json-schema-faker library v0.2.11 * http://json-schema-faker.js.org * @preserve * * Copyright (c) 2014-2016 Alvaro Cabrera & Tomasz Ducin * Released under the MIT license * * Date: 2016-02-13 10:19:27.121Z */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else ...
function pathinfo (path, options) { // http://kevin.vanzonneveld.net // + original by: Nate // + revised by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) // + improved by: Brett Zamir (http://brett-zamir.me) // + input by: Timo // % note 1: Inspired by actual PHP source: php5-5.2.6/...
/* YUI 3.16.0 (build 76f0e08) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add("lang/datatable-paginator",function(e){e.Intl.add("datatable-paginator","",{first:"First",prev:"Previous",next:"Next",last:"Last",goToLabel:"Page:",goToAction:"Go",per...
/** * Catalan translation * @author Maria Consuelo Bravo <consolbravo@gmail.com> * @version 2010-12-21 */ (function($) { elRTE.prototype.i18Messages.ca = { '_translator' : 'Maria Consuelo Bravo &lt;consolbravo@gmail.com&gt;', '_translation' : 'Catalan translation', 'Editor' : 'Editor', 'Source' : 'Codi fo...
import*as React from"react";import createSvgIcon from"../../utils/createSvgIcon";export default createSvgIcon(React.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");
/* * JXON framework - Copyleft 2011 by Mozilla Developer Network * * Revision #1 - September 5, 2014 * * https://developer.mozilla.org/en-US/docs/JXON * * This framework is released under the GNU Public License, version 3 or later. * http://www.gnu.org/licenses/gpl-3.0-standalone.html * * small modifications ...
/* * angular-elastic v2.2.0 * (c) 2013 Monospaced http://monospaced.com * License: MIT */ angular.module('monospaced.elastic', []) .constant('msdElasticConfig', { append: '' }) .directive('msdElastic', ['$timeout', '$window', 'msdElasticConfig', function($timeout, $window, config) { 'use strict'; ...
/* Highcharts JS v2.2.1 (2012-03-15) (c) 2009-2011 Torstein H?nsi License: www.highcharts.com/license */ (function(){function L(a,b){var c;a||(a={});for(c in b)a[c]=b[c];return a}function za(){for(var a=0,b=arguments,c=b.length,d={};a<c;a++)d[b[a++]]=b[a];return d}function S(a,b){return parseInt(a,b||10)}function ...
YUI.add('router', function(Y) { /** Provides URL-based routing using HTML5 `pushState()` or the location hash. @module app @submodule router @since 3.4.0 **/ var HistoryHash = Y.HistoryHash, QS = Y.QueryString, YArray = Y.Array, win = Y.config.win, // We have to queue up pushState cal...
YUI.add('graphics-vml', function(Y) { Y.log('using VML'); var Y_LANG = Y.Lang, IS_NUM = Y_LANG.isNumber, IS_ARRAY = Y_LANG.isArray, Y_DOM = Y.DOM, Y_SELECTOR = Y.Selector, DOCUMENT = Y.config.doc, AttributeLite = Y.AttributeLite, VMLShape, VMLCircle, VMLPath, VMLRect, VMLEllipse, VMLGraph...
/*! * Globalize v1.0.0-alpha.8 * * http://github.com/jquery/globalize * * Copyright 2010, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-10-08T19:13Z */ // Core module.exports = require( "./globalize" ); // Extent core with the...
/* Input Mask plugin dependencyLib http://github.com/RobinHerbots/jquery.inputmask Copyright (c) 2010 - Robin Herbots Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) */ (function (factory) { if (typeof define === "function" && define.amd) { define(["jqlite"], factory); } el...
[a, b] = f(); ;
/*! Copyright (C) 2014 by Andrea Giammarchi - @WebReflection 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 use, copy, modify, merg...
'use strict'; var $ = require('./$') , hide = require('./$.hide') , ctx = require('./$.ctx') , species = require('./$.species') , strictNew = require('./$.strict-new') , defined = require('./$.defined') , forOf = require('./$.for-of') , step = requir...
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ...
;(function($, window, document, undefined) { var pluginName = "metisMenu", defaults = { toggle: true, doubleTapToGo: false }; function Plugin(element, options) { this.element = $(element); this.settings = $.extend({}, defaults, options); this._de...
/*! * Qoopido.js library v3.6.1, 2015-2-5 * https://github.com/dlueth/qoopido.js * (c) 2015 Dirk Lueth * Dual licensed under MIT and GPL */ !function(e){window.qoopido.register("support/element/svg",e,["../../support"])}(function(e,t,r,n,o,s){"use strict";return e.support.addTest("/element/svg",function(e){s.createElem...
/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ //>>built define("dojo/cldr/nls/pl/currency",{"HKD_displayName":"dolar hongkoński","CHF_displayName":"frank szwajcarski","JP...
var toString = require('./toString'); /** Used to compose unicode character classes. */ var rsAstralRange = '\\ud800-\\udfff', rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23', rsComboSymbolsRange = '\\u20d0-\\u20f0', rsDingbatRange = '\\u2700-\\u27bf', rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff', ...
(function(global) { var define = global.define; var require = global.require; var Ember = global.Ember; if (typeof Ember === 'undefined' && typeof require !== 'undefined') { Ember = require('ember'); } Ember.libraries.register('Ember Simple Auth Torii', '0.8.0-beta.1'); define("simple-auth-torii/authent...
require('conventional-changelog')({ from: "f36e96f9b1c2a8bdf90b2bf94346581f922d4c3c", repository: 'https://github.com/shakyShane/opt-merger', version: require('./package.json').version }, function(err, log) { require("fs").writeFileSync("./CHANGELOG.md", log); });
module.exports = { "env": { "node": true }, "extends": "eslint:recommended", "rules": { "indent": [ "error", 4 ], "linebreak-style": [ "error", "unix" ], //"quotes": [ "error", "single" ], "semi": [ "error", "always" ] } };
/** * KEYCHAIN * * Manages the actual signing keys for the account. * * The account is locked by default. When a transaction is requested, the user * can enter their password to unlock their account for a certain period of * time. This class manages the timeout when the account will be re-locked. */ var webuti...
'use strict'; // url we're sending the request to var xMapTileUrl = 'https://s0{s}-xserver2-test.cloud.ptvgroup.com/services/rest/XMap/tile/{z}/{x}/{y}?storedProfile={profile}&xtok={token}'; var findAddressUrl = 'https://xserver2-test.cloud.ptvgroup.com/services/rest/XLocate/locations'; var calcIsoUrl = 'https://api-te...
"use strict"; var ClientWeb = require("./Client-web"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = ClientWeb;
'use strict'; if ($('show-aside-button')) { /** * Change aside margin to show it * Change content width do adjust to fit on the side of aside */ var showAside = (function () { $('aside-menu').setStyle('margin-left', '0rem'); $('content').setStyle('margin-right', '-17rem'); })...
var request = require('request') var cheerio = require('cheerio') module.exports.scrape = scrape function scrape(id, callback) { var uri = "http://ingatlan.com/" + id request({ uri: uri }, function(error, response, body) { try { var $ = cheerio.load(body) } catch(e) { console.log(e) // XXX: ...
registry = { index: { // ChannelID: conversationID } }; /*load default wikichat channel conversationId = (process.env.BOT_FRAMEWORK_DIRECT_API_CONVERSATIONID) var channel = { type: "wikichat", auth: { host: (process.env.CHAT_HOST), name: (process.env.WIKIA_BOT_NAME), pas...
const chai = require('chai'); const proxyquire = require('proxyquire'); const sinon = require('sinon'); const Promise = require('bluebird'); global.assert = chai.assert; global.expect = chai.expect; global.Promise = Promise; global.sinon = sinon; global.proxyquire = proxyquire; module.exports = {}; module.exports.fix...
// adopted from: https://github.com/jonschlinkert/to-flags // Copyright (c) 2015, Jon Schlinkert. (MIT) var isPlainObject = require('../lang/isPlainObject') var toArg = require('./format-args') function toFlags (obj, keys) { if (!isPlainObject(obj)) throw new TypeError('toFlags expects an object') keys = keys ||...
/* 383 RPL_YOURESERVICE "You are service <servicename>" - Sent by the server to a service upon successful registration. */
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Spring, animated } from 'react-spring'; import { TimingAnimation, Easing } from 'react-spring/dist/addons.cjs'; class PulsedStepSelectorButton extends Component { constructor(props) { super(props); this.state = { pul...
var _ = require('underscore'); var Netcat = require('node-netcat'); var Readable = require('stream').Readable || require('readable-stream').Readable; var split = require('split-json'); module.exports = Subscribe; function Subscribe (port, host, options) { if (!(this instanceof Subscribe)) return new Subscribe(port...
/** * Main application file */ 'use strict'; // Set default node environment to development /* istanbul ignore next */ process.env.NODE_ENV = process.env.NODE_ENV || 'development'; var express = require('express'); var config = require('./config/environment'); // Setup server var app = express(); var server = req...
class RequestCache { constructor() { this.cache = {}; } setExpiry = (name, time) => { this.cache[name].expiry = time; } createCache = (name) => { this.cache[name] = { expiry: new Date().getHours() + 1 }; } find = (name, key) => { let expired = new Date().getHours() + 1; i...
var nops = require("../lib/nops.js"); var nopt = require("nopt"); var path = require("path"); var knownOpts = { "source" : path, "target" : path, "dumpvars" : Boolean }; var opts = nopt(knownOpts, {}, process.argv, 2); nops.exec(opts);
// preLoadImages (function($) { var cache = []; // Arguments are image paths relative to the current page. $.preloadImages = function() { var args_len = arguments.length; for (var i = args_len; i--;) { var cacheImage = document.createElement('img'); cacheImage.src = arguments[i]; ...
/** * Created by zhouxin on 2017/9/22. */ import iflux, {msg, Store} from 'iflux'; let appStore = Store({ title:"" }); msg.on('cwx-index:query:getBannerList', function () { appStore.cursor().set('title', "第一个页面"); }); export default appStore;
#!/usr/bin/env node // a test of Node.js stream events // from node-experiments by Rafał Pocztarski // See: https://github.com/rsp/node-experiments // This experiment shows which file events are fired // with a 'data' event handler. "use strict"; var fs = require('fs'); var num = 0; function logEvent(message) { c...
import PIXI from 'pixi.js'; export default class ShapeEffect { getParamDefaults() { return [ { name: 'color', label: 'Color', }, { name: 'points', label: 'Shape Points', } ]; } render({ params: { color, points } }) { if (!points || !points.length) { return false; } con...
import React from 'react' import IndexLink from 'react-router/lib/IndexLink' import Link from 'react-router/lib/Link' import { StyleSheet, css } from 'aphrodite' const Nav = () => ( <div> <IndexLink to='/' className={css(styles.link)} activeClassName={css(styles.link, styles.activeLink)}> Home </IndexL...
define([ 'underscore', 'marionette', 'jquery', 'config', 'moment', './lyt-tile', 'i18n' ], function(_, Marionette, $, config, Moment, LytTile) { 'use strict'; return Marionette.LayoutView.extend({ template: 'app/base/home/tpl/tpl-home.html', className: 'home-page ns-full-height', events: { 'c...
/* */ module.exports = function () { for (var i = 0; i < arguments.length; i++) { if (arguments[i] !== undefined) return arguments[i]; } };
require.ensure([], function(require) { require("./2.async.js"); require("./5.async.js"); require("./10.async.js"); require("./20.async.js"); }); module.exports = 21;
/** * Copyright (c) 2015-present, Viro, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModu...
/** * A Set datastructure. Note: only stores strings. * * NOTE: this class is broken if anyone adds methods to Object.prototype * * Examples: * var set = new Set(["a", "b"]); * set.contains("b"); // true * set.add("b"); // does nothing * set.remove("b"); * set.contains("b"); // false * set.clear(); * set.ad...
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2012, Ajax.org B.V. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of sou...