code
stringlengths
2
1.05M
'use strict'; require('./main'); require('./template');
import React from 'react'; import { shallow } from 'enzyme'; import Ul from '../Ul'; describe('<Ul />', () => { it('should render an <ul> tag', () => { const renderedComponent = shallow(<Ul />); expect(renderedComponent.type()).toEqual('ul'); }); it('should have a className attribute', () => { cons...
/** * * AppBar view * */ import React from 'react'; import AppBar from 'material-ui/AppBar'; export default function render() { return ( <AppBar className={this.props.className} iconClassNameLeft={this.props.iconClassNameLeft} iconClassNameRight={this.props.iconClassNameRight} iconElemen...
import withESI from 'react-esi' import React from 'react' import Link from 'next/link' import BreakingNews from '../components/BreakingNews' import TopArticles from '../components/TopArticles' import Weather from '../components/Weather' const BreakingNewsESI = withESI(BreakingNews, 'BreakingNews') const TopArticlesESI...
'use strict'; angular.module('mementoMovieApp') .controller('MovieDetailsCtrl', function ($scope, $stateParams, Auth, Movies, Profile) { Movies.get($stateParams.permalink) .then(function(movie) { $scope.model = movie; }); $scope.isLoggedIn = Auth.isLoggedIn; $scope.followMovie = funct...
var gulp = require('gulp'); var rename = require('gulp-rename'); var replace = require('gulp-replace'); var clean = require('gulp-clean'); var watch = require('gulp-watch'); var sass = require('gulp-sass'); gulp.task('default', function(options) { return watch("./src/assets/**",function(){ return gulp.src("./sr...
module.exports = Cmds.addCommand({ cmds: [';allinfo'], requires: { guild: true, loud: false, }, desc: 'Get guild, role, channel and permission info in one huge set of messages', args: '', example: '', // ///////////////////////////////////////////////////////////////////...
// CHALLENGES var _url = window.location.href; // 1. // If parsing is not good enough, you can filter last leaf by: // > i.e element before is parent // :first-schild first child of parent // :first-of-type first child of parent with this type // 2. // some articles lack parts (e.g not all headers have an ingress). ...
"use strict"; var jwt = require('jwt-simple'), config = require('config'); module.exports = { encode: function(payload) { return jwt.encode(payload, config.get('jwt.secret')); }, decode: function(encoded) { return jwt.decode(encoded, config.get('jwt.secret')); } };
'use strict'; // p0f v3 client - http://lcamtuf.coredump.cx/p0f3/ var net = require('net'); var ipaddr = require('ipaddr.js'); function P0FClient(path) { var self = this; this.sock = null; this.send_queue = []; this.receive_queue = []; this.connected = false; this.ready = false; this.sock...
import chai from 'chai'; import irc from 'irc'; import discord from 'discord.js'; import Bot from '../lib/bot'; import config from './fixtures/single-test-config.json'; import caseConfig from './fixtures/case-sensitivity-config.json'; import DiscordStub from './stubs/discord-stub'; import ClientStub from './stubs/irc-c...
// @flow // // Copyright (c) 2018 DDN. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. export const SET_SESSION = "SET_SESSION"; export const SET_COOKIE = "SET_COOKIE"; import Immutable from "seamless-immutable"; import type { sessionT } f...
import styled from "styled-components"; import { spacingScale } from "style/styleFunctions"; const IconWrapper = styled.div` &:not(:empty) { margin-right: ${spacingScale(0.5)}; margin-left: -${spacingScale(0.5)}; } `; export default IconWrapper;
var libxml = require('../index'); var process = require('process'); module.exports.getDtd = function(assert) { var doc = libxml.parseXmlString('<?xml version="1.0" encoding="UTF-8"?>\n<root></root>'); var dtd = doc.getDtd(); assert.equal(null, dtd); doc = libxml.parseXmlString('<?xml version="1.0" enco...
/* * Copyright (c) 2017. MIT-license for Jari Van Melckebeke * Note that there was a lot of educational work in this project, * this project was (or is) used for an assignment from Realdolmen in Belgium. * Please just don't abuse my work */ define(function () { return function (ecModel) { var legendMod...
// Chadbone.js 1.1.2 // (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Chadbone may be freely distributed under the MIT license. // For all details and documentation: // http://chadbonejs.org (function(root, factory) { // Set up Chadbone appropriately for ...
๏ปฟ/// <autosync enabled="true" /> /// <reference path="../gulpfile.js" /> /// <reference path="lib/bootstrap/dist/js/bootstrap.js" /> /// <reference path="lib/jquery/dist/jquery.js" /> /// <reference path="lib/jquery-validation/dist/jquery.validate.js" /> /// <reference path="lib/jquery-validation-unobtrusive/jquer...
mainModule.controller('versionController', function($scope, $routeParams, $location, defaultFactory) { // nText app by Dan McKeown | http://danmckeown.info/code/ntext $scope.nVersion = "0.5.0-beta3"; // This is the app version number });
module.exports = function Notify () { var listeners = [] function notify (value) { listeners.forEach(function (fn) { fn(value) }) } notify.listen = function (fn) { listeners.push(fn) //returns function to remove this listener return function () { var i = listeners.indexOf(fn) if(~i) ...
/* * HTML 5 Drum Kit * Copyright (c) 2009 Brian Arnold * Software licensed under MIT license, see http://www.randomthink.net/lab/LICENSE * Original drum kit samples freely used from http://bigsamples.free.fr/ */ // ===== VARIABLES ===== var isPlaying = false; var curBeat = 0; var curTempo = 120; // ===== FUNCTIO...
var React = require('react'); var Router = require('react-router'); var notesStore = require('../stores/notesStore'); var Left = require('./Github/Left'); var Middle = require('./Github/Middle'); var Notes = require('./Notes/Notes'); var Profile = React.createClass({ mixins: [ Router.State ], render: function(){ ...
var asyncplify = require('../../dist/asyncplify'); var assert = require('assert'); var should = require('should'); describe('timeoutScheduler', function () { it('should call action in the specified relative delay', function (done) { var scheduler = asyncplify.schedulers.timeout() var startTime = D...
import 'react-native'; import React from 'react'; import renderer from 'react-test-renderer'; import Label from "../../App/Components/Common/Label"; test('Label renders correctly', () => { const tree = renderer.create( <Label /> ).toJSON(); expect(tree).toMatchSnapshot(); });
export default { Query: {}, Mutation: {}, };
"use strict"; var ImageCropperModel = (function () { function ImageCropperModel() { } return ImageCropperModel; }()); exports.ImageCropperModel = ImageCropperModel; //# sourceMappingURL=imageCropperModel.js.map
function AppController ($scope, $sce) { $scope.setActive = function (type) { $scope.homeActive = ''; $scope.experienceActive = ''; $scope.educationActive = ''; $scope[type + 'Active'] = 'active'; } $scope.videoUrl1 = $sce.trustAsResourceUrl("http://www.youtube.com/embed/GwBAKr2isu4?autoplay=1"...
import React, { Component, Text, View, StyleSheet } from 'react-native'; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F5FCFF', }, welcome: { fontSize: 20, textAlign: 'center', margin: 10, }, }); ...
function addWidgetsfrmBox() { frmBox.setDefaultUnit(kony.flex.DP); var FlexContainer02e4876642c9440 = new kony.ui.FlexContainer({ "autogrowMode": kony.flex.AUTOGROW_NONE, "clipBounds": true, "height": "10%", "id": "FlexContainer02e4876642c9440", "isVisible": false, ...
'use strict'; var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }; exports.__esModule = true; var _RouteFilterContainer = require('./route-filters'); var RouterConfiguration = (function () { function Route...
'use strict'; var jsonapi = require('./json-api'); var json = function json(data) { return data; }; module.exports = function (dataPromise) { // wrap format function in a set function var foramtters = { toJSON: set(json), toJSONAPI: set(jsonapi) }; Object.defineProperties(foramtters, { format: { ...
(function() { var idleState, idleTimer, idleWait; idleTimer = null; idleState = true; idleWait = 5000; $(function() { return $("*").bind("mousemove keydown scroll", function() { clearTimeout(idleTimer); if (idleState === true) { $(window).trigger("user_active"); } idleS...
import fs from 'fs' import path from 'path' var cliRoot = path.join(__dirname, '../../') var babelrc = fs.readFileSync(path.join(cliRoot, '.babelrc'), { encoding: 'utf8' }) babelrc = JSON.parse(babelrc.toString()) babelrc.presets = babelrc.presets.map((it) => { return require.resolve('babel-preset-' + it) }) bab...
myApp.controller('cancellationCtrl', ['$scope','$timeout',function($scope,$timeout) { $scope.userDetails = JSON.parse(localStorage.getItem("userDetails")); $scope.emailID = $scope.userDetails.username function loadData(){ $scope.showLoader = true; if(localStorage.getItem(...
cordova.define('cordova/plugin_list', function(require, exports, module) { module.exports = [ { "file": "plugins/org.apache.cordova.device/www/device.js", "id": "org.apache.cordova.device.device", "clobbers": [ "device" ] }, { "file": "plugins/com.phonegap...
import { moduleFor, test } from 'ember-qunit'; moduleFor('route:movies/search', { // Specify the other units that are required for this test. // needs: ['controller:foo'] }); test('it exists', function(assert) { var route = this.subject(); assert.ok(route); });
const chai = require('chai'); const chaiHttp = require('chai-http'); const { v4: uuidv4 } = require('uuid'); const TestHelper = require('../../../test-helper'); const assert = chai.assert; const expect = chai.expect; chai.use(chaiHttp); describe('Integration - OPTIONS /expenses/:uuid', function() { let server; ...
/** Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("a11yhelp","et",{title:"Accessibility Instructions",contents:"Help Contents. To close this dialog press ESC.",legend:[{name:"รœldine",items:[{name:"...
'use strict'; var restify = require('restify'); var util = require('util'); var BadRequestError = function (message, userMessage, field) { var statusCode = 400; restify.RestError.call(this, { restCode: 'BadRequestError', statusCode: statusCode, message: message, constructorOpt: BadRequestError }...
/** * tty.js - an xterm emulator * Christopher Jeffrey (https://github.com/chjj/tty.js) * * Originally forked from (with the author's permission): * * Fabrice Bellard's javascript vt100 for jslinux: * http://bellard.org/jslinux/ * Copyright (c) 2011 Fabrice Bellard * (Redistribution or commercial use is prohib...
version https://git-lfs.github.com/spec/v1 oid sha256:11edc2c6a3daa199cae74a297f7a0a54c195b702b763f4ad4438fda7af11080c size 3507
version https://git-lfs.github.com/spec/v1 oid sha256:875a6ea572aa7cbac33840d1ad6121ca4fc49885096fc05cbc0615ec787d198e size 1690
/* global app */ app.register({ name: 'ComicRenderer', dependencies: ['jquery'], factory: function ($) { "use strict"; var AddImage, OnImageLoad, Render, _comic, _imagesLoaded = 0, _totalImagesToLoad = 0, _img_PanelFrame, _img_SpeechBubbleLeft, _img_SpeechBubbleRight; // Adds the...
var HttpException = include('exceptions/HttpException'); class NotFoundHttpException extends HttpException{ constructor(message) { super(message || 'Page not found', 404); } } module.exports = NotFoundHttpException;
/** * express-restify-mongoose.js * * Copyright (C) 2013 by Florian Holzapfel * * 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 ri...
export default { entry: 'dist/ng2-file-input.js', dest: 'dist/bundles/ng2-file-input.umd.js', sourceMap: false, format: 'umd', moduleName: 'ng2-file-input', globals: { '@angular/core': 'ng.core', 'rxjs': 'Rx', } }
var twig = require("twig"); var express = require('express'); var bodyParser = require('body-parser'); var http = require('http'); var app = express(); //Include router-related middleware before yaml-router app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: false })); require('yaml-router')(app); ...
angular .module('vipApp', ['ngRoute']) .config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider){ $routeProvider .when('/vip/:tbid', { templateUrl: 'vip.jade', controller: 'vipCtrl', controllerAs: 'vip' }); $locationProvider.html5Mode(true)...
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { Router, browserHistory } from 'react-router'; import reducers from './reducers'; import routes from './routes'; import promise from 'redux-promise'; const ...
/*! * Archivo que contiene por las funciones javascript que se cargan por defecto * en todas las pรกginas del sitio. * * @package webroot * @subpackage js * @author JpBaena13 */ /** * Nombre del Proyecto */ var PRJCT_NAME = 'Skeleton' /* * Ruta relativa del directorio webroot del sitio */ ...
import React, {Fragment} from 'react'; import PropTypes from 'prop-types'; import {CompositeDisposable} from 'event-kit'; import {graphql, createFragmentContainer} from 'react-relay'; import path from 'path'; import EditorCommentDecorationsController from './editor-comment-decorations-controller'; import ReviewsItem f...
/* eslint no-case-declarations: 0 */ import * as types from "./../types"; const initialState = { files: [], results: [], loading: false, searchCompleted: true, searchAttempts: 0, searchQuery: "", placeholder: "Search for a show...", dropFilePath: "", }; export default function reducer(state = initial...
/* * {{aggregate}} * https://github.com/helpers/handlebars-helper-aggregate * * Copyright (c) 2013 Jon Schlinkert, contributors. * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ book: require('./test/fixtures/metadata/boo...
var C = (function () { function C() { } return C; })(); var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()...
/* * Copyright (c) 2015 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com) * * openAUSIAS: The stunning micro-library that helps you to develop easily * AJAX web applications by using Java and jQuery * openAUSIAS is distributed under the MIT License (MIT) * Sources at https://github.com/raf...
var Icon = require('../icon'); var element = require('magic-virtual-element'); var clone = require('../clone'); exports.render = function render(component) { var props = clone(component.props); delete props.children; return element( Icon, props, element('path', { d: 'M11.99 2C6.47 2 2 6.48 2 12s4.47 ...
var system; var canvas; var vertMargin = determineVerticalMargin(); function setup() { // canvas = createCanvas(500, 500); // for screenshots canvas = createCanvas(windowWidth, windowHeight-vertMargin); P5JsSettings.init(); let rect = new Rect(0, 0, width, height); system = new System(rect); } function dra...
const yo = require('yo-yo') // const nanoraf = require('nanoraf') const { findDOMElement } = require('../core/Utils') /** * Boilerplate that all Plugins share - and should not be used * directly. It also shows which methods final plugins should implement/override, * this deciding on structure. * * @param {object}...
var getApiKey = require('../util/helpers').getApiKey; var dbPouch = require('../connections/pouchDb'); var express = require('express'); var app = express(); var bodyParser = require('body-parser'); var _ = require('underscore'); var favicon = require('serve-favicon'); app.use(favicon('./images/favicon.ico')); app.use...
/** * ixband - Javascript Library * @version v1.3.7 (2012152036) * The MIT License (MIT), http://ixband.com */ ;(function (window) { 'use strict'; var MSG_NOT_STRING = '์˜ ๋Œ€์ƒ์ด ๋ฌธ์ž์—ด์ด ์•„๋‹™๋‹ˆ๋‹ค.', MSG_NOT_ARRAY = '์˜ ๋Œ€์ƒ์ด ๋ฐฐ์—ด์ด ์•„๋‹™๋‹ˆ๋‹ค.', MSG_NOT_COLOR = '๋Š” Color Type์ด ์•„๋‹ˆ๊ฑฐ๋‚˜ ์ง€์›ํ•˜์ง€ ์•Š๋Š” ํ˜•์‹์ž…๋‹ˆ๋‹ค.', MSG_OVE...
'use strict'; var projectsApp = angular.module('projects'); projectsApp.controller('CommentController', ['$scope', '$http', '$location', 'Authentication', '$stateParams', 'Comments', function($scope, $http, $location, Authentication, $stateParams, Comments) { //creates a new comment $scope.sendCo...
exports.config = { framework: 'jasmine', seleniumAddress: 'http://localhost:4444/wd/hub', specs: [], multiCapabilities: [{ browserName: 'chrome' }], baseUrl: 'http://localhost:3000' };
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { BrowserRouter, Route, Switch } from 'react-router-dom'; import promise from 'redux-promise'; import reducers from './reducers'; import PostsIndex from './...
this.NesDb = this.NesDb || {}; NesDb[ '59B43881456C0720E9A35E391B11C4B2C55A8F91' ] = { "$": { "name": "Dr. Mario", "altname": "ใƒ‰ใ‚ฏใ‚ฟใƒผใƒžใƒชใ‚ช", "class": "Licensed", "catalog": "HVC-VU", "publisher": "Nintendo", "developer": "Nintendo", "region": "Japan", "players": "2", "date": "1990-07-27" }, "cartridge...
/* * Gulp Watchify * * Browserify/Watchify tasks to * bundle JS as per entry/configs in * meta object from index.js * */ var gulp = require('gulp'), bundleLogger = require('../util/bundleLogger'), fs = require('fs'), browserify = require('browserify'), watchify = require('watchi...
var number = require('../../lib/matchers/number'); describe('number matcher', function() { it('matches integers and floats', function() { number()('', 0).should.not.have.error(); number()('', 3).should.not.have.error(); number()('', 3.5).should.not.have.error(); }); it('fails for other types', func...
/** * View fabrictype * * Copyright (C) 2013 Emay Komarudin * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * ...
;(function(app) { 'use strict'; /* Before Unload Service */ app.provider('BeforeUnload', function() { var _leavingPageText = "You'll lose your changes if you leave"; var _leavingPageText2 = "Are you sure you want to leave this page?"; var _turnOffConfirm = false; var _debugCallback = angular.noop; this.deve...
module.exports = class Query extends Array { last() { return this[ this.length - 1 ]; } lastOfType(type) { return this.find(element => element.type === type); } };
/** * Determines if a value is a regular expression object. * * @private * @param {*} value Reference to check. * @returns {boolean} True if `value` is a `RegExp`. */ define('isRegExp', function () { var isRegExp = function (value) { return Object.prototype.toString.call(value) === '[object RegExp]'; ...
'use strict'; var _translatorImplements = []; var _translator = { translate: function (word, callback) { for (var i in _translatorImplements) { var eachTranslator = _translatorImplements[i]; if (!eachTranslator.translate) continue; eachTranslator.translate(word, callback); console.log(each...
'use strict'; /** * @ngdoc service * @name SubSnoopApp.d3Service * @description * # d3Service * Factory in the SubSnoopApp. */ angular.module('SubSnoopApp') /* Taken from http://www.ng-newsletter.com/posts/d3-on-angular.html */ .factory('d3Service', ['$document', '$q', '$rootScope', '$http', '$sce', ...
import { ActiveModelSerializer, Model, hasMany, belongsTo } from 'ember-cli-mirage'; import Schema from 'ember-cli-mirage/orm/schema'; import Db from 'ember-cli-mirage/db'; import SerializerRegistry from 'ember-cli-mirage/serializer-registry'; import { module, test } from 'qunit'; module('Integration | Serializer | Ac...
/* * brute-tabs * https://github.com/grassator/jquery-brute-tabs * * Copyright (c) 2013 Dmitriy Kubyshkin * Licensed under the MIT license. */ (function ($) { "use strict"; /** * Brute Tabs main class * @param {jQuery} $el * @param {object} options * @constructor */ function BruteTabs ($el, options)...
import Dthree from 'd3'; import React from 'react'; export default class SilverLegendSet extends React.Component { // PROP TYPES static get propTypes() { return { config: React.PropTypes.object, onGetInnerBox: React.PropTypes.func.isRequired, }; } componentDidMount() { // this.getLeg...
/* * Copyright 2014 Joyent, Inc. All rights reserved. */ var s_vmapi_CreateVm = require('./CreateVm.js'); module.exports = { CreateVm: s_vmapi_CreateVm };
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var constants_1 = require("../constants"); var recurse = function (target, keys, val) { var key = keys.shift(); var nextTarget = {}; target[key] = nextTarget; if (keys.length > 0) { recurse(target[key], keys, val); ...
var onRun = function(context) { var ga = require("../modules/Google_Analytics"); ga("Layer"); var document = context.document; var selection = context.selection; if (selection.count() == 0) { document.showMessage("Please select at least 1 layer."); return; } var parents =...
import React from 'react' import PropTypes from 'prop-types' import styles from './tooltip.css' /* TODO: - Animate icons leaving out. - Streamline animation flow using enter and exit animations */ class AnimationWrapper extends React.Component { static propTypes = { children: PropTypes.node.isRequired, ...
var OrderedHash = require('../../lib/eliza/ordered_hash'); describe("OrderedHash", function() { with(this) { beforeEach(function() { this.hash = new OrderedHash(); }) it("stores and retrieves elements by key", function() { with(this) { hash.push("a", 1); expect(hash.val("a")).toEqual(1); expect...
'use strict'; const DEVFEST_URL = 'https://devfest.gdgnantes.com'; const DEFAULT_SPEAKER_PIC = '../assets/default-speaker-pic.png'; const speakerID = window.location.search.substring(1).split('=').pop(); (() => { $(document).ready(() => { $('.button-collapse').sideNav(); }); document.getElementById('nav-h...
// ==UserScript== // @name empty // @namespace test // @description empty userscript // @author someone // @license MIT // @version 1.0.0 // @include http://example.com/* // @match https://*.example2.com/?somePage=1 // @grant none // @run-at document-end // ==/UserScript==
const express = require('express'); const fs = require('fs'); const https = require('https'); const ngrok = require('ngrok'); /* Read the commandโ€™s arguments */ const authorizationToken = process.argv[2];// Required const port = process.argv[3] || 8080;// Optional if (!authorizationToken) { throw new Error('No autho...
'use strict' var expect = require('chai').expect var _ = require('lodash') var dustMock var chunkMock var bodies var context var loadTestResource = function (resource) { return _.cloneDeep(require('./' + resource)) } describe('Filter seats - Dust helpers', function () { before(function (done) { var returnEa...
define({ root: //begin v1.x content ({ "nodeActions": "${nodeName} Actions", "selectContents": "Select contents", "selectElement": "Select element", "deleteElement": "Delete element", "deleteContents": "Delete contents", "moveStart": "Move cursor to start", "moveEnd": "Move cursor to end" }) //end v1.x content ,...
'use strict'; define(function(require) { var angular = require('angular'); require('robots/models'); var template = require('text!./calibrateRobot.tpl.html'); var ViewRobot = function(ServoConfig, ServoGroup, Servo, language) { return { template: template, ...
(function ($, root, undefined) { $(function () { 'use strict'; // DOM ready, take it away // == Owl Carousel ================================================ function initOwl() { $("#owl-carousel").owlCarousel({ navigation : true, // Show next and prev buttons slideSpeed : 300, ...
import ValidationPropertyError from './ValidationPropertyError'; import ValidationError from './ValidationError'; /** * Manage Vo items, sending and getting them to the Storage */ export default class Manager { constructor(storage) { /** @type {Storage} - an instance storage*/ this.storage = storage; } ...
'use strict'; module.exports = PromptsLoader; const inquirer = require('inquirer'); const { predicate:evalPredicate } = require('../evaluate'); const types = { config: ConfigPrompt, result: ResultPrompt }; function PromptsLoader({ type = 'config', alias, spec, silent } ) { const Prompt = types[type]; ...
React = require("react"); var ReactPropTypes = React.PropTypes; var AutocompleteSelect = require("./AutocompleteSelect.react"); var MultiTokens = require("./MultiTokens.react"); var cx = require("react/lib/cx"); var _ = require("underscore"); var MultiSelect2 = React.createClass({ propTypes: { options: React.Pr...
$(document).ready(function () { //$('#loading').hide(); $('#next').hide(); $('#prev').hide(); $('#loading').addFloating({ centerX :true, centerY :true }); $('#next').addFloating({ targetTop : 10, targetRight : 10 }); $('#prev').addFloat...
// Copyright 2010 Matthew Wood // // Licensed under the Apache License, Version 2.0 var sys = require('sys'); var url = require('url'); var Router = exports.Router = function() { this._routes = []; }; Router.prototype.add_route = function(route_spec, callback, options) { options = options || {}; options.patter...
define( ['require', 'config', 'core/AbstractPlugin.vlib', 'core/Utils.vlib', 'jquery', 'core/Framework3D.vlib'], function ( require, Config, AbstractPlugin, UTILS, $, F3D ) { var Plot = function ( name ) { Plot.superClass.constuctor.call( this, name ); this.onDoneList = []; }; /* Plot extends AbstractPl...
chrome.runtime.onMessage.addListener(function(message, sender, sendResponse) { if (chrome.i18n.getMessage("@@extension_id") != sender.id) { return } // debugger; function getSelectedHtml() { var selection = window.getSelection() if (selection.rangeCount === 0) { return (null) } var ran...
import t from '../actions/types'; import * as a from '../actions/creators'; const switchPlayersEpic = (action$, { getState }) => action$.ofType(t.GET_NEXT_PLAYER).mergeMap(() => { const game = getState().game; const players = getState().players; const nextPlayer = (players.current + 1) % players.numPlaye...
var chalk = require('chalk'); var TokenAssert = require('./token-assert'); /** * Set of errors for specified file. * * @name Errors * @param {JsFile} file */ var Errors = function(file) { this._errorList = []; this._file = file; this._currentRule = ''; /** * @type {TokenAssert} * @publi...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M7 6h10l-5.01 6.3L7 6zm-2.75-.39C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z" /><path d="M7...
const mongoose = require('mongoose'); mongoose.Promise = Promise; module.exports = function(dbUri) { const promise = mongoose.connect(dbUri).then(() => mongoose.connection); mongoose.connection.on('connected', () => console.log('Mongoose default connection open on', dbUri)); mongoose.connection.on('error...
module.exports = { "addRouterStateStoreToFunxDefinitions": require("./addRouterStateStoreToFunxDefinitions"), };
export default from './NestedList';
/* * `server` task * ============= * * Creates a Browsersync Web server instance for live development. Makes use * of some Webpack middlewares to enable live reloading features. */ import config from '../config/browsersync'; import server from '../lib/server'; import webpack from '../lib/webpack'; import web...