This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import Spinner from 'react-spinner'; | |
export const loadable = (hasLoadedTest, Component) => props => hasLoadedTest(props) ? <Component { ...props } /> : <Spinner />; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// index.js | |
// by requiring `babel/register`, all of our successive `require`s will be Babel'd | |
require('babel/register'); | |
require('./server.js'); | |
// server.js | |
import express from 'express'; | |
let app = express(); | |
const PORT = 3000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated on 2014-03-05 using generator-webapp 0.4.7 | |
'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) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function updateResults(data){ | |
var results = $(data); | |
var finalResults = results.filter('#preResults').html(); | |
var pagerResults = results.filter('#pager').html(); | |
$('#results').replaceWith(finalResults); | |
$('#pagerCatch').html(pagerResults); | |
} | |
$('.filterForm').submit(function(e){ | |
e.preventDefault(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#pagerCatch').on('click', 'a', function(e){ | |
e.preventDefault(); | |
var $this = $(this); | |
var theUrl = $this.attr('href'); | |
$.get(theUrl, function(data){ | |
var results = $(data); | |
var finalResults = results.filter('#preResults').html(); | |
var pagerResults = results.filter('#pager').html(); |