View hello-spec.js
1 2 3 4 5 6 7 8 9 10
var chai = require('chai');
var expect = chai.expect;
var port = process.env.port || 3000;
var async = require('async');
 
describe('acceptance test', function() {
 
it('has a browser injected into it', function () {
/* eslint-disable no-unused-expressions */
expect(this.browser).to.be.defined;
View output.txt
1 2 3 4 5 6 7 8 9 10
[09:32:56] Using gulpfile ~/dev/react-starter/gulpfile.js
[09:32:56] Starting 'test:karma'...
DEBUG [config]: autoWatch set to false, because of singleRun
DEBUG [plugin]: Loading inlined plugin (defining webpackPlugin, preprocessor:webpack).
DEBUG [plugin]: Loading inlined plugin (defining framework:mocha).
DEBUG [plugin]: Loading inlined plugin (defining launcher:Chrome, launcher:ChromeCanary, launcher:Dartium, test).
DEBUG [plugin]: Loading inlined plugin (defining launcher:IE).
DEBUG [plugin]: Loading inlined plugin (defining launcher:Firefox, launcher:FirefoxDeveloper, launcher:FirefoxAurora, launcher:FirefoxNightly).
DEBUG [plugin]: Loading inlined plugin (defining launcher:PhantomJS).
DEBUG [plugin]: Loading inlined plugin (defining preprocessor:sourcemap).
View card.js
1 2 3 4 5 6 7 8 9 10
import React from 'react';
 
let Card = React.createClass({
 
propTypes: {
header: React.PropTypes.string,
body: React.PropTypes.string,
imageUrl: React.PropTypes.string,
imageAlt: React.PropTypes.string,
draggable: React.PropTypes.string
View fix_json.js
1 2 3 4 5 6 7 8 9
// Goal is to convert the JSON at this URL into a json string that has the keys quoted
// https://wiki.cac.washington.edu/display/SWS/Term+Resource+V5+Sample+Resource
 
var fs = require("fs");
var path = require("path");
 
var file = path.join(__dirname, "term_current.json");
 
var data = fs.readFileSync(file, "utf8");
View rightDropZone.js
1 2 3 4 5 6 7 8 9 10
import React from 'react/addons';
import { DonorCard } from './donorCard.js';
 
export class DropZone extends React.Component {
constructor(props) {
super(props);
this.state = {
draggedOver: false
}
}
View rightDropZone.js
1 2 3 4 5 6 7 8 9 10
import React from 'react/addons';
 
export class RightDropZone extends React.Component {
constructor(props) {
super(props);
this.state = {
draggedOver: false
}
}
render() {
View app.js
1 2 3 4 5 6 7 8 9 10
import React from 'react';
import { LeftDropZone } from './leftDropZone';
import { RightDropZone } from './rightDropZone';
 
export class ScholarshipsApp extends React.component {
render() {
return (
<section id="drop-zones">
<h1>Scholarships Admin</h1>
<LeftDropZone />
View node-modules.sh
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env zsh
 
npm -g install async-you
npm -g install bower
npm -g install browserify
npm -g install browserify-adventure
npm -g install bug-clinic
npm -g install casperjs
npm -g install cli-md
npm -g install coffee-script
View SassMeister-input.scss
1 2 3 4 5 6 7 8 9 10
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
 
$dark-purple: #4b2d83;
$medium-dark-purple: rgba(#9b7bb5,0.5);
$medium-light-purple: rgba(#b096c5,0.4);
$light-purple: rgba(#ebe3ef,0.15);
$dark-gold: #86754e;
View SassMeister-input.scss
1 2 3 4 5 6 7 8 9 10
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
 
@each $color in dark-purple, medium-dark-purple, medium-light-purple, dark-gold,
light-gold, cool-gray, slate-blue, yellow-gold, orange-red {
.bg-#{$color} {
background-color: #{$color};
}
Something went wrong with that request. Please try again.