code
stringlengths
2
1.05M
/***************************************************** * Project: Typewriter AR - 2017 * * * * Controller: User * * * * Author: Alejandro Acosta * *****************************************************/ /*************** * Requirements * ***************/ var User = requir...
import Animation from './Animation'; import { Class, clone } from '../core/Core'; import Element from '../dom/Element'; const splitTransform = function ( transform ) { const result = []; let i = 0; const l = transform.length; let next = 0; while ( true ) { // Gather text part while...
/* * # DEPENDENCIES # */ var Metalsmith = require('metalsmith') var layouts = require('metalsmith-layouts') var collections = require('metalsmith-collections') var setMetadata = require('metalsmith-filemetadata') var filepath = require('metalsmith-filepath') var ignore = require('metalsmith-ignore') var relative = re...
/* jshint undef: true, unused: true, browser: true, quotmark: single, curly: true */ /* global Ext */ Ext.define('Emergence.touch.proxy.Records', { extend: 'Jarvus.touch.proxy.API', alias: 'proxy.records', requires: [ 'Emergence.touch.util.API' ], config: { /** * @cfg (requ...
/** @jsx jsx */ import { Editor } from 'slate' import { jsx } from '../../..' export const run = editor => { Editor.wrapNodes(editor, <block a />) } export const input = ( <editor> <block> <cursor /> word </block> </editor> ) export const output = ( <editor> <block a> <block> ...
var path = require('path'); module.exports = { output: { filename: './react_media_queryable.js', library: 'MediaQueryable', libraryTarget: 'umd' }, externals: [ { 'react': { root: 'React', commonjs2: 'react', commonjs: 'react', amd: 'react' } } ] ...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModu...
module.exports = { directive: 'QUIT', handler: function () { return this.close(221, 'Client called QUIT'); }, syntax: '{{cmd}}', description: 'Disconnect', flags: { no_auth: true } };
import MaskedInput from './MaskedInput' export default MaskedInput
git://github.com/grantmiiller/ReaJs.git
'use strict'; // process.chdir(__dirname); var path = require("path"); var fs = require('fs'); var sys = require('sys') var Q = require('q'); module.exports = (function() { /** @class FileStorage @memberof collabo-flow @description This is storage implementation for the collabo-flow */ var FileStorage = func...
/** * Properties.ts * * Persist properties using LocalStorage * */ var bosco; (function (bosco) { "use strict"; /** * Properties * * persisted game settings and scores */ var Properties = (function () { function Properties() { } /** * Initilize the p...
(function(){ var modules = {}; function setter(){ throw new Error('Cannot manually set module property'); } function setModule(name, factory){ if(modules.hasOwnProperty(name)){ throw new Error('Module '+name+' already exists.'); } Object.defineProperty(modules, name, { ...
'use strict'; var stripAttr = require('strip-attributes'); var beautify = require('js-beautify').html; var define = require('define-property'); var helpers = require('./helpers'); module.exports = { domain: 'https://wikipedia.com/', preprocess: function($, node, ast, options) { if (node.name === 'img') { ...
define('ace/snippets/actionscript', ['require', 'exports', 'module' ], function (require, exports, module) { exports.snippetText = "snippet main\n\ package {\n\ import flash.display.*;\n\ import flash.Events.*;\n\ \n\ public class Main extends Sprite {\n\ public function Main ( ) {\n\ trace(\"start\...
var net = require('amqplib/callback_api'); var pid = process.pid; // var startAgentReceiver = function (ex, key) { // amqp.connect('amqp://localhost', function (err, conn) { // conn.createChannel(function (err, ch) { // ch.assertExchange(ex, 'topic', {durable: true}); // ch.assertQueue('', {exclusiv...
var Setting = DS.Model.extend({ title: DS.attr('string'), description: DS.attr('string'), email: DS.attr('string'), logo: DS.attr('string'), cover: DS.attr('string'), defaultLang: DS.attr('string'), postsPerPage: DS.attr('number'), forceI18n: DS.attr('boolean'), permalinks: DS.attr('...
//------------------------------------ // emoDemoApp.js // javascript object responsible for primary app functionality // dependencies: jquery.js, highchartsApp.js, MediaStreamRecorder.js, adapter.js, jquery.form.js, process.php // created: March 2016 // last modified: September 2016 // author: Steve Rucker //---------...
/** * @fileoverview Rule to disallow unsafe optional chaining * @author Yeon JuAn */ "use strict"; const UNSAFE_ARITHMETIC_OPERATORS = new Set(["+", "-", "/", "*", "%", "**"]); const UNSAFE_ASSIGNMENT_OPERATORS = new Set(["+=", "-=", "/=", "*=", "%=", "**="]); const UNSAFE_RELATIONAL_OPERATORS = new Set(["in", "in...
version https://git-lfs.github.com/spec/v1 oid sha256:30c79ba5d18ff6559569fb4014d9780e5bb415a3206db2db573db3c39fb06b4c size 14525
'use strict'; /** * Config for the router */ app.config(['$stateProvider', '$urlRouterProvider', '$controllerProvider', '$compileProvider', '$filterProvider', '$provide', '$ocLazyLoadProvider', 'JS_REQUIRES', function ($stateProvider, $urlRouterProvider, $controllerProvider, $compileProvider, $filterProvider, $provi...
const $ = window.jQuery; // Internal pseudo-namespace for private data. // NOTE: _this is shared between ALL instances of this module! So far, there is only one instance, so no problem NOW. const _this = { /** * The registry data (i.e., module-per-route). * @type {Object} */ data: {}, /** * The module inst...
class HttpError extends Error {} module.exports = HttpError;
"use strict"; /** * settings.ts * Copyright (c) 345 Systems LLP 2016, all rights reserved. * * Static access to local cloco settings. */ const fs = require("fs"); const ini = require("ini"); const file_system_1 = require("./file-system"); const logger_1 = require("./logging/logger"); const passthrough_encryp...
"use strict"; var helpers = require("../../helpers/helpers"); exports["Australia/Broken_Hill"] = { "guess:by:offset" : helpers.makeTestGuess("Australia/Broken_Hill", { offset: true, expect: "Australia/Adelaide" }), "guess:by:abbr" : helpers.makeTestGuess("Australia/Broken_Hill", { abbr: true, expect: "Australia/A...
/** * Hypo - Dependency injection for JavaScript. Simple and to the point. * * copyright: (c) 2012 by Ryan Lynch * * 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 rest...
var compression = require('compression'); var favicon = require('serve-favicon'); var methodOverride = require('method-override'); var morgan = require('morgan'); var language = require('../lib/middleware/language'); module.exports = function createApp (keystone, express) { if (!keystone.app) { if (!express) { ...
// Description: // Tell oak to DM you // // Dependencies: // None // // Configuration: // None // // Commands: // tall grass - spawn a wild pokemon // // Author: // Andrew Studnicky // Define required modules -- I don't feel like this should be global but why does this crash if I scope it? Sequelize = require('sequel...
import Boom from 'boom'; import Joi from 'joi'; import generoute from '../../util/generoute'; import uploadToSlack from '../uploadToSlack'; /** * Stores resume by uploading it to slack channel. * * @param request * @returns {*} */ function* storeResume(request) { let success = { message: 'Thank you, we rece...
// // Main // ----------------------- $(function() { window.pool = app = new App(); });
var app = angular.module('MyApp', ['appRoutes', 'mainCtrl', 'userCtrl', 'storyCtrl', 'authService', 'userService', 'storyService', 'reverseDirective']);
import React from 'react'; import PropTypes from 'prop-types'; const percentFormatter = new Intl.NumberFormat(undefined, {style: 'percent'}); const euroFormatter = new Intl.NumberFormat(undefined, {style: 'currency', currency: 'EUR'}); export const Percent = ({value}) => ( <span>{percentFormatter.format(value)}</sp...
// site initialization document.addEventListener('DOMContentLoaded', init) // global object window.KA = {} // initialization functions function init() { initHatChart() initInputLabels() initTabController() initContactForm() } // creates pie chart function initHatChart() { var ctx = document.getElementById(...
'use strict' /* global describe, it */ const assert = require('assert') describe('ProductImage Model', () => { it('should exist', () => { assert(global.app.api.models['ProductImage']) }) })
$(function(){ var selected = []; table = $('#instances-table').DataTable({ 'ajax': { "type" : "GET", "url" : '/api/instances', "data" : function( d ) { }, "dataSrc": "" }, 'columns': [ //{"data" : "false"}, ...
require('proof')(24, function (assert) { var tz = require('timezone')(require('timezone/hu_HU')) // hu_HU abbreviated months assert(tz('2000-01-01', '%b', 'hu_HU'), 'jan', 'Jan') assert(tz('2000-02-01', '%b', 'hu_HU'), 'febr', 'Feb') assert(tz('2000-03-01', '%b', 'hu_HU'), 'márc', 'Mar') assert...
/** * call calculateDistance function to return distance in kilometre as default * **/ module.exports = { calcDistance: function(origins, destinations, lang, callback){ var helper = require('./helper.js'); var opt = helper.prepareReq(origins, destinations, lang); var req = helper.makeRequest(opt.host, opt.path...
(function() { 'use strict'; describe('busao.detalhes module', function() { beforeEach(module('busao')); describe('DetalhesController', function(){ var detalhesCtrl, detalhesService; beforeEach(module('busao.detalhes')); beforeEach(inject(function($controller, _detalhesService_, $rootS...
Listeners.Upload = { run: function(){ Dropzone.autoDiscover = false; //return; $('[data-upload]').each(function(){ var field = $(this); var form = field.closest('form'); if(!field.closest('.fallback').length) field.wrap('<div class="fallback"></div>'); if(!field.closest('.dropzone').length) field.c...
'use strict'; var Model = require('./model'); var Collection = require('./collection'); var preprocess = require('../util/arg_preprocess'); var util = require('util'); // Category ------------------------------------------------------------------- var Category = function(data, dstore, options){ Model.prototype....
import { getMediaDimensions } from './getMediaDimensions'; export function matchDimensions(input, reference, useMediaDimensions) { if (useMediaDimensions === void 0) { useMediaDimensions = false; } var _a = useMediaDimensions ? getMediaDimensions(reference) : reference, width = _a.width, height ...
/** * Server-side fixture **/ //s6d module aFixture { module b at 'fixtures/NodeJS/recursive/b.js'; export b; export a1; } //-s6d var a1 = 'a1';
CSL.Node["conditions"] = { build: function (state, target) { if (this.tokentype === CSL.START) { state.tmp.conditions.addMatch(this.match); } if (this.tokentype === CSL.END) { state.tmp.conditions.matchCombine(); } } };
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(gene...
(function (doc) { function addHeaderAnchor() { var headers, i, j = 0, len = 0, postContainer = doc.getElementsByClassName("post-content")[0]; if (!postContainer) return; for (i = 1; i < 7; i++) { headers = postContainer.getElementsByTagName("h" + i); for (len = headers....
function coordText(x, y) { var x_string = "mouseX: " + Math.floor(mouseX); var y_string = "mouseY: " + Math.floor(mouseY); var textS = 14; noStroke(); fill(0); textSize(textS); text(x_string, x, y, textWidth(x_string) + 5, textSize(x_string)); text(y_string, x, y+16, textWidth(y_string)...
module.exports = { "NAME": "TARDIS Gallery", "SHORT_NAME": "tardis_gallery", "HOST": "tardis.local", "PORT": "8080", "WEBPACK_PORT": "8078", "ENABLE_HOT_MODULE_REPLACEMENT": NODE_ENV === "lo...
require('./export.test') require('./buffer-read.test') require('./compose-build.test') require('./tx-decode.test') require('./tx-build.test') require('./tx-build-segwit.test.js') require('./pow.test') require('./types.test') require('./utils.test') require('./segwit-utils.test.js')
"use strict"; const ExtractTextPlugin = require("extract-text-webpack-plugin"); module.exports = { entry: [ 'babel-polyfill', "./src/index.js", './src/node_modules/struct/style/sass/main.scss' ], output: { filename: "./dist/client.js" }, devServer: { contentBa...
'use strict'; /** TODO: DOCUMENT TODO: Not really a resource is it? */ angular.module('gb.resources') .factory('Stats', ['$resource', '$log', '$rootScope', function($resource, $log, $rootScope) { var resource = $resource('https://api.ginsberg.io/v1/stats/:series', {},{ get: { method: 'GET' }...
// Comments are preserved (function() { return { status: "IT WERKS" }; })();
// 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/declareExtendsHelper ../core/tsSupport/decorateHelper ../core/Collection ../core/collectionUtils ../core/JSONSupport ../co...
// Autocomplete for press and materials $('#ngpp_gmsagcbundle_orderstype_press').typeahead({ name: 'ngpp_gmsagcbundle_orderstype_press_list', prefetch: { url: Routing.generate('ngpp_gmsagc_ajax_press_list'), ttl: 3600 } }); $('#ngpp_gmsagcbundle_orderstype_material').typeahead({ name: '...
System.register(['./chunk-9a21be24.js'], function (exports, module) { 'use strict'; var fn; return { setters: [function (module) { fn = module.a; }], execute: function () { function fn$1 () { console.log('lib1 fn'); } function fn$2 () { fn$1(); console...
var searchData= [ ['fitcontent',['FitContent',['../class_u_forms_1_1_decorators_1_1_fit_content.html#afdd621d9acb65de735bfd07c41305013',1,'UForms.Decorators.FitContent.FitContent()'],['../class_u_forms_1_1_decorators_1_1_fit_content.html#a586ca98024bb587842a470838a09e6f1',1,'UForms.Decorators.FitContent.FitContent(bo...
var searchData= [ ['file',['file',['../d6/df8/classScheduler.html#a207e2d83b528fe9f5deafacb138d16a6',1,'Scheduler']]], ['fileexcept',['FileExcept',['../de/d11/classFileExcept.html',1,'']]], ['findconflict',['findConflict',['../df/df9/classCourseSched.html#aa6f985ca220f38edf4fa6b44049cbe93',1,'CourseSched']]], [...
/** * @fileoverview Rule to enforce declarations in program or function body root. * @author Brandon Mills * @copyright 2014 Brandon Mills. All rights reserved. */ "use strict"; //------------------------------------------------------------------------------ // Rule Definition //----------------------------------...
var database = firebase.database(); var currentUser_local; $("#mainLogin").on("click", function() { $("#loginModal").modal('toggle'); }); $("#mainRegister").on("click", function() { $("#registerModal").modal('toggle'); }); //Clicking the log in button... $('#loginSubmit').on("click", function() { //Saves inp...
"use strict"; import clear from "rollup-plugin-clear"; import resolve from "rollup-plugin-node-resolve"; import commonjs from "rollup-plugin-commonjs"; import typescript from "rollup-plugin-typescript2"; import screeps from "rollup-plugin-screeps"; let cfg; const dest = process.env.DEST; if (!dest) { console.log("N...
// ==UserScript== // @name SO ClearChat // @namespace com.onosendai // @version 0.3.10 // @author OnoSendai // @match *://chat.stackoverflow.com/* // @match *://chat.meta.stackexchange.com/* // @match *://chat.stackexchange.com/* // @require https://code.jquery.co...
version https://git-lfs.github.com/spec/v1 oid sha256:4b2ee28833643394a90f5afb90b72c4bdbdb3fa7ef46b627d786de4444a6dcea size 752
import React from 'react' import c3 from 'c3' import { Button } from 'react-bootstrap' let exampleData = { bindto: '#sample-chart-', data: { columns: [ ['data1', 30, 200, 100, 400, 150, 250], ['data2', 50, 20, 10, 40, 15, 25] ] } } class DashboardEnvironmentalWaterPane extends React....
process.env.MONGODB_URI = 'mongodb://localhost/ccbrecipe_testDB'; const mongoose = require('mongoose'); const port = process.env.PORT = 5050; const server = require(__dirname + '/../server'); module.exports = exports = (cb) => { var conn = mongoose.createConnection(process.env.MONGODB_URI); server.listen(port, () ...
import express from 'express'; import * as exampleController from './controllers/exampleController'; import Example from './models/exampleModel'; const router = express.Router(); export default () => { router.route('/') .get(exampleController.getAll) .post(exampleController.post); router.use('/:id', (req...
import React, { Component } from 'react'; import { render } from 'react-dom'; import { Stage, Layer, Image } from 'react-konva'; import useImage from 'use-image'; // the first very simple and recommended way: const LionImage = () => { const [image] = useImage('https://konvajs.org/assets/lion.png'); return <Image i...
$(document).ready(function(){ App.Module = (function(){ var URI = { binding : App.BaseUrl + 'dashboardapi/module/bind', detail : App.BaseUrl + 'dashboardapi/module/detail', commit : App.BaseUrl + 'dashboardapi/module/commit', delete : App.BaseUrl + 'dashboa...
/** * 一刷时间: 2017-04-10 * 二刷时间:2017-12-13 * 来自: https://leetcode.com/problems/merge-intervals */ (function(exports) { function Interval(start, end) { this.start = start; this.end = end; } /** * Definition for an interval. * function Interval(start, end) { * this.start ...
const createProvidedAxis = axis => { if (!axis) return null; return { object: axis, id: axis.userOptions && axis.userOptions.id, type: axis.coll, update: axis.update.bind(axis), remove: axis.remove.bind(axis), addPlotBandOrLine: axis.addPlotBandOrLine.bind(axis), removePlotBandOrLine: a...
import $ from 'jquery'; import app from '../app'; import loadTemplate from '../utils/loadTemplate'; import { launchEditListingModal } from '../utils/modalManager'; import Listing from '../models/listing/Listing'; import ListingShort from '../models/listing/ListingShort'; import { events as listingEvents } from '../mode...
module.exports { let key = '9e57f6b318a84c0fa7421756170904'; }
import React from 'react' import { Divider, Image } from 'semantic-ui-react' const src = '/images/wireframe/image.png' const ImageExampleVerticallyAligned = () => ( <div> <Image src={src} size='tiny' verticalAlign='top' /> <span>Top Aligned</span> <Divider /> <Image src={src} size='tiny' verticalAlign='...
(function() { 'use strict'; angular .module('workshop') .directive('localeSelector', localeSelector); /** @ngInject */ function localeSelector() { var directive = { restrict: 'E', templateUrl: 'app/components/localeSelector/localeSelector.html', scope: { creationDate: '...
const debug = require('ghost-ignition').debug('api:v2:utils:serializers:input:pages'); function removeMobiledocFormat(frame) { if (frame.options.formats && frame.options.formats.includes('mobiledoc')) { frame.options.formats = frame.options.formats.filter((format) => { return (format !== 'mobil...
'use strict'; var core = require('./core'), sweetAlert = require('sweetalert'); function Validator(form, data) { this.form = form; this.method = data.method; this.error = data.error; this.data = data; this.inflictedFields = data.inflictedFields; this.valid = false; } Validator.proto...
'use strict' import React, { PropTypes } from 'react' const UserInfo = ({ userinfo }) => ( <div className='user__info'> <img src={userinfo.avatar} alt='William Costa' /> <h1 className='user__name'> <a href={`https://github.com.br/${userinfo.login}`}> {userinfo.username} </a> </h1> ...
/** * Created by Alexander Novik. */ const COMPONENT_NAME = 'as.app.main'; let _logger = new WeakMap(); /** * */ class MainController { /* @ngInject */ constructor($rootScope, $location, asLogger) { _logger.set(this, asLogger('MainController')); } activate() { } } angular.module(COMPONENT_NAME,...
'use strict'; const utils = require('../utils'); const merge = require('../merge'); module.exports = function(val, key, config, schema) { merge(config, schema); val = val || config[key]; switch (utils.typeOf(val)) { case 'object': return val.type; case 'array': return val[0].type; case ...
const { assert, skip, test, module: describe, only } = require('qunit'); const { GPU } = require('../../src'); describe('feature: bitwise operators'); function testBooleanFromExpression(mode) { const gpu = new GPU({ mode }); const kernel = gpu.createKernel(function() { const result = 1 === 1 && 2 === 2; r...
(function () { 'use strict'; var categoriesArticlesController = function categoriesArticlesController(auth, categories) { var vm = this; vm.categoryFor = 'articles'; vm.isAuthenticated = auth.isAuthenticated(); categories.getForArticles() .then(function (articlesCa...
// JavaScript - Node v8.1.3 const find=(a,e)=>{let i=a.indexOf(e);return(i==-1?'Not found':i)}
import { h3, h } from "../h3.js"; export default () => { return h("div.spinner", h("div.loading", h("div"))); };
// Generated by psc-make version 0.6.9.5 "use strict"; var Prelude = require("Prelude"); function unsafeIndex(xs) { return function(n) { return xs[n]; }; } ; module.exports = { unsafeIndex: unsafeIndex };
// Download the Node helper library from twilio.com/docs/node/install // These consts are your accountSid and authToken from https://www.twilio.com/console const accountSid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; const authToken = 'your_auth_token'; const workspaceSid = 'WSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; const worke...
(function (global) { 'use strict'; var expect = global.expect || require('expect.js'), date = global.date || require('../../date-and-time'), forEach = function (array, fn) { for (var i = 0, len = array.length; i < len; i++) { if (fn(array[i], i) === 0) { ...
const test = require('ava') const dialogStack = require('../../transformers/dialogStack') const {defaultSession, defaultMessages, defaultConfigObject, callstacks} = require('./testData') test('Empty stack', t => { defaultSession.sessionState.callstack = callstacks.noStack const actual = dialogStack(defaultSession,...
'use strict'; angular.module('mean.workouts').config(['$stateProvider', function($stateProvider) { // $stateProvider.state('create a wod', { // url: '/workouts/example', // templateUrl: 'workouts/views/index.html' // }); var checkLoggedin = function($q, $timeout, $http, $...
/** * @license AngularJS v1.0.6 * (c) 2010-2012 Google, Inc. http://angularjs.org * License: MIT */ (function(window, document, undefined) { 'use strict'; //////////////////////////////////// /** * @ngdoc function * @name angular.lowercase * @function * * @description Converts...
/** * Add remove-format command for KISSY Editor. * @author yiminghe@gmail.com */ KISSY.add("editor/plugin/remove-format/cmd", function (S, Editor) { var KER = Editor.RANGE, ElementPath = Editor.ElementPath, Dom = S.DOM, /** * A comma separated list of elements to be removed ...
// @flow /** * @typedef ContextType */ export type ContextType = { type: string, key: string } /** * @typedef MenuItemType */ export type MenuItemType = { context: string | ContextType, title?: string, icon?: string, children?: { [string]: MenuItemType } } /** * @typedef MenuType */ exp...
/* eslint-env mocha */ /* global expect, testContext */ /* eslint-disable prefer-arrow-callback, no-unused-expressions */ import factory from 'src/test/factories' import {resetDB, runGraphQLQuery} from 'src/test/helpers' import fields from '../index' describe(testContext(__filename), function () { beforeEach(resetD...
import { __decorate } from "tslib"; import * as au from "../aurelia"; let MdCollectionHeader = class MdCollectionHeader { }; MdCollectionHeader = __decorate([ au.customElement("md-collection-header") ], MdCollectionHeader); export { MdCollectionHeader }; //# sourceMappingURL=collection-header.js.map
/* global require, describe, it */ 'use strict'; // MODULES // var // Expectation library: chai = require( 'chai' ), // Module to be tested: tversky = require( './../lib' ); // VARIABLES // var expect = chai.expect, assert = chai.assert; // TESTS // describe( 'compute-tversky-index', function tests() { i...
var async = require('async'); var util = require('util'); var db = require('./../db/dbConnector').db; var logger = require('./../utils/logger'); var notification = require('./../utils/notification'); var config = require('../../config'); var mandrill = require('node-mandrill'); function sendPublicBeta(callback) { if ...
function LazyDirective() { return { restrict: 'C', link: (scope, element) => { setTimeout(function() { element.lazyload({ effect: 'fadeIn', effectspeed: 500, threshold : 500, 'skip_invisible': false }); }); } };...
import React from 'react' import { compose, mapProps } from 'recompose' import { Link } from 'react-router' import NavBar from './NavBar' const enhance = compose( mapProps(({ sections, params, ...props }) => ({ section: sections[params.sectionId], ...props })), mapProps(({ section, readPosts, ...props })...
Router.route('home', { path:'/', template: 'home', yieldTemplates: { //'home-side': {to: 'sidebar'} }, onBeforeAction:function(){ if (!Meteor.user()) { // render the login template but keep the url in the browser the same this.render('welcome'); /...
$(function() { var storyButtons = $(".nextstate input[type=submit]"); storyButtons.click(function(e) { e.preventDefault(); var form = $(e.target).closest("form"); updateStory(form); }); }); function updateStory(form) { $("#swimlanes").addClass("loading"); $.ajax({ type: "POST", url: for...
var path = require('path'); module.exports = { entry: './src/index.js', output: { path: path.resolve(__dirname, 'dist'), filename: 'index.js', libraryTarget: 'commonjs2' // THIS IS THE MOST IMPORTANT LINE! :mindblow: I wasted more than 2 days until realize this was the line most important in all this guide. ...
import React from 'react' import Relay from 'react-relay' import delay from 'lodash/delay' import ActorsTreeButtons from '../../components/ActorsTree/ActorsTreeButtons'; import ActorsTreeFlat from '../../components/ActorsTree/ActorsTreeFlat'; import InitiateScanMutation from './mutations/InitiateScanMutation' class ...
/** * Created by Cameron Stewart on 6/11/14. */ $(document).ready(function() { // modifies 'Pocket Label?' checkbox upon $('#barcodes_table').on('change', '.print_pocket_box', setCheckboxValue); $('#barcodes_table').on('keydown', '.barcode_input', carriageReturnAddBarcode); $('#barcode_scan_form').on(...