Permalink
Browse files

initial commit

  • Loading branch information...
stewart committed Feb 25, 2015
0 parents commit 8819e504768a36216fb03d15cb5f5e6d07c549ec
Showing with 7,181 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. +23 −0 .jshintrc
  3. +2 −0 .npmignore
  4. +46 −0 Makefile
  5. +117 −0 README.markdown
  6. 0 css/.keep
  7. BIN fonts/inconsolata-bold-webfont.eot
  8. +240 −0 fonts/inconsolata-bold-webfont.svg
  9. BIN fonts/inconsolata-bold-webfont.ttf
  10. BIN fonts/inconsolata-bold-webfont.woff
  11. BIN fonts/inconsolata-regular-webfont.eot
  12. +240 −0 fonts/inconsolata-regular-webfont.svg
  13. BIN fonts/inconsolata-regular-webfont.ttf
  14. BIN fonts/inconsolata-regular-webfont.woff
  15. BIN fonts/roboto-bold-webfont.eot
  16. +593 −0 fonts/roboto-bold-webfont.svg
  17. BIN fonts/roboto-bold-webfont.ttf
  18. BIN fonts/roboto-bold-webfont.woff
  19. BIN fonts/roboto-regular-webfont.eot
  20. +621 −0 fonts/roboto-regular-webfont.svg
  21. BIN fonts/roboto-regular-webfont.ttf
  22. BIN fonts/roboto-regular-webfont.woff
  23. BIN fonts/robotoslab-bold-webfont.eot
  24. +670 −0 fonts/robotoslab-bold-webfont.svg
  25. BIN fonts/robotoslab-bold-webfont.ttf
  26. BIN fonts/robotoslab-bold-webfont.woff
  27. BIN images/bullet-connections-2.png
  28. BIN images/bullet-connections.png
  29. BIN images/bullet-devices-2.png
  30. BIN images/bullet-devices.png
  31. BIN images/delete.png
  32. BIN images/devices-image-2.png
  33. BIN images/devices-image.png
  34. BIN images/logo-robeaux.png
  35. BIN images/robots-icon_03.png
  36. +17 −0 index.html
  37. 0 js/.keep
  38. +24 −0 package.json
  39. +113 −0 src/javascripts/components/command-tool.es
  40. +21 −0 src/javascripts/components/connection-info.es
  41. +23 −0 src/javascripts/components/device-info.es
  42. +105 −0 src/javascripts/components/event-tool.es
  43. +15 −0 src/javascripts/components/navigation.es
  44. +27 −0 src/javascripts/components/robot-info.es
  45. +56 −0 src/javascripts/script.es
  46. +52 −0 src/javascripts/views/device.es
  47. +12 −0 src/javascripts/views/not-found.es
  48. +58 −0 src/javascripts/views/robot.es
  49. +19 −0 src/javascripts/views/robots.es
  50. +411 −0 src/stylesheets/bourbon/_bourbon-deprecated-upcoming.scss
  51. +87 −0 src/stylesheets/bourbon/_bourbon.scss
  52. +26 −0 src/stylesheets/bourbon/addons/_border-color.scss
  53. +48 −0 src/stylesheets/bourbon/addons/_border-radius.scss
  54. +25 −0 src/stylesheets/bourbon/addons/_border-style.scss
  55. +25 −0 src/stylesheets/bourbon/addons/_border-width.scss
  56. +64 −0 src/stylesheets/bourbon/addons/_buttons.scss
  57. +25 −0 src/stylesheets/bourbon/addons/_clearfix.scss
  58. +30 −0 src/stylesheets/bourbon/addons/_ellipsis.scss
  59. +31 −0 src/stylesheets/bourbon/addons/_font-stacks.scss
  60. +27 −0 src/stylesheets/bourbon/addons/_hide-text.scss
  61. +26 −0 src/stylesheets/bourbon/addons/_margin.scss
  62. +26 −0 src/stylesheets/bourbon/addons/_padding.scss
  63. +48 −0 src/stylesheets/bourbon/addons/_position.scss
  64. +66 −0 src/stylesheets/bourbon/addons/_prefixer.scss
  65. +31 −0 src/stylesheets/bourbon/addons/_retina-image.scss
  66. +55 −0 src/stylesheets/bourbon/addons/_size.scss
  67. +112 −0 src/stylesheets/bourbon/addons/_text-inputs.scss
  68. +34 −0 src/stylesheets/bourbon/addons/_timing-functions.scss
  69. +83 −0 src/stylesheets/bourbon/addons/_triangle.scss
  70. +29 −0 src/stylesheets/bourbon/addons/_word-wrap.scss
  71. +43 −0 src/stylesheets/bourbon/css3/_animation.scss
  72. +3 −0 src/stylesheets/bourbon/css3/_appearance.scss
  73. +3 −0 src/stylesheets/bourbon/css3/_backface-visibility.scss
  74. +42 −0 src/stylesheets/bourbon/css3/_background-image.scss
  75. +55 −0 src/stylesheets/bourbon/css3/_background.scss
  76. +59 −0 src/stylesheets/bourbon/css3/_border-image.scss
  77. +4 −0 src/stylesheets/bourbon/css3/_calc.scss
  78. +47 −0 src/stylesheets/bourbon/css3/_columns.scss
  79. +4 −0 src/stylesheets/bourbon/css3/_filter.scss
  80. +289 −0 src/stylesheets/bourbon/css3/_flex-box.scss
  81. +24 −0 src/stylesheets/bourbon/css3/_font-face.scss
  82. +4 −0 src/stylesheets/bourbon/css3/_font-feature-settings.scss
  83. +10 −0 src/stylesheets/bourbon/css3/_hidpi-media-query.scss
  84. +4 −0 src/stylesheets/bourbon/css3/_hyphens.scss
  85. +14 −0 src/stylesheets/bourbon/css3/_image-rendering.scss
  86. +36 −0 src/stylesheets/bourbon/css3/_keyframes.scss
  87. +38 −0 src/stylesheets/bourbon/css3/_linear-gradient.scss
  88. +8 −0 src/stylesheets/bourbon/css3/_perspective.scss
  89. +8 −0 src/stylesheets/bourbon/css3/_placeholder.scss
  90. +39 −0 src/stylesheets/bourbon/css3/_radial-gradient.scss
  91. +42 −0 src/stylesheets/bourbon/css3/_selection.scss
  92. +19 −0 src/stylesheets/bourbon/css3/_text-decoration.scss
  93. +15 −0 src/stylesheets/bourbon/css3/_transform.scss
  94. +71 −0 src/stylesheets/bourbon/css3/_transition.scss
  95. +3 −0 src/stylesheets/bourbon/css3/_user-select.scss
  96. +11 −0 src/stylesheets/bourbon/functions/_assign-inputs.scss
  97. +20 −0 src/stylesheets/bourbon/functions/_contains-falsy.scss
  98. +26 −0 src/stylesheets/bourbon/functions/_contains.scss
  99. +11 −0 src/stylesheets/bourbon/functions/_is-length.scss
  100. +21 −0 src/stylesheets/bourbon/functions/_is-light.scss
  101. +11 −0 src/stylesheets/bourbon/functions/_is-number.scss
  102. +13 −0 src/stylesheets/bourbon/functions/_is-size.scss
  103. +69 −0 src/stylesheets/bourbon/functions/_modular-scale.scss
  104. +13 −0 src/stylesheets/bourbon/functions/_px-to-em.scss
  105. +15 −0 src/stylesheets/bourbon/functions/_px-to-rem.scss
  106. +24 −0 src/stylesheets/bourbon/functions/_shade.scss
  107. +17 −0 src/stylesheets/bourbon/functions/_strip-units.scss
  108. +24 −0 src/stylesheets/bourbon/functions/_tint.scss
  109. +22 −0 src/stylesheets/bourbon/functions/_transition-property-name.scss
  110. +27 −0 src/stylesheets/bourbon/functions/_unpack.scss
  111. +15 −0 src/stylesheets/bourbon/helpers/_convert-units.scss
  112. +96 −0 src/stylesheets/bourbon/helpers/_directional-values.scss
  113. +44 −0 src/stylesheets/bourbon/helpers/_font-source-declaration.scss
  114. +13 −0 src/stylesheets/bourbon/helpers/_gradient-positions-parser.scss
  115. +25 −0 src/stylesheets/bourbon/helpers/_linear-angle-parser.scss
  116. +41 −0 src/stylesheets/bourbon/helpers/_linear-gradient-parser.scss
  117. +61 −0 src/stylesheets/bourbon/helpers/_linear-positions-parser.scss
  118. +31 −0 src/stylesheets/bourbon/helpers/_linear-side-corner-parser.scss
  119. +69 −0 src/stylesheets/bourbon/helpers/_radial-arg-parser.scss
  120. +50 −0 src/stylesheets/bourbon/helpers/_radial-gradient-parser.scss
  121. +18 −0 src/stylesheets/bourbon/helpers/_radial-positions-parser.scss
  122. +26 −0 src/stylesheets/bourbon/helpers/_render-gradients.scss
  123. +10 −0 src/stylesheets/bourbon/helpers/_shape-size-stripper.scss
  124. +50 −0 src/stylesheets/bourbon/helpers/_str-to-num.scss
  125. +7 −0 src/stylesheets/bourbon/settings/_asset-pipeline.scss
  126. +9 −0 src/stylesheets/bourbon/settings/_prefixer.scss
  127. +1 −0 src/stylesheets/bourbon/settings/_px-to-em.scss
  128. +8 −0 src/stylesheets/neat/_neat-helpers.scss
  129. +23 −0 src/stylesheets/neat/_neat.scss
  130. +49 −0 src/stylesheets/neat/functions/_new-breakpoint.scss
  131. +114 −0 src/stylesheets/neat/functions/_private.scss
  132. +15 −0 src/stylesheets/neat/grid/_box-sizing.scss
  133. +33 −0 src/stylesheets/neat/grid/_direction-context.scss
  134. +28 −0 src/stylesheets/neat/grid/_display-context.scss
  135. +24 −0 src/stylesheets/neat/grid/_fill-parent.scss
  136. +92 −0 src/stylesheets/neat/grid/_media.scss
  137. +87 −0 src/stylesheets/neat/grid/_omega.scss
  138. +38 −0 src/stylesheets/neat/grid/_outer-container.scss
  139. +25 −0 src/stylesheets/neat/grid/_pad.scss
  140. +35 −0 src/stylesheets/neat/grid/_private.scss
  141. +52 −0 src/stylesheets/neat/grid/_row.scss
  142. +50 −0 src/stylesheets/neat/grid/_shift.scss
  143. +92 −0 src/stylesheets/neat/grid/_span-columns.scss
  144. +97 −0 src/stylesheets/neat/grid/_to-deprecate.scss
  145. +42 −0 src/stylesheets/neat/grid/_visual-grid.scss
  146. +13 −0 src/stylesheets/neat/settings/_disable-warnings.scss
  147. +55 −0 src/stylesheets/neat/settings/_grid.scss
  148. +27 −0 src/stylesheets/neat/settings/_visual-grid.scss
  149. +2 −0 src/stylesheets/style.scss
@@ -0,0 +1,3 @@
/node_modules/
js/*.js
css/*.css
@@ -0,0 +1,23 @@
{
"browser": true,
"esnext": true,
"globals": {
"React": true,
"EventSource": true
},
"boss": true,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"immed": true,
"indent": 2,
"latedef": true,
"maxlen": 110,
"newcap": true,
"noarg": true,
"nonew": true,
"quotmark": "double",
"sub": true,
"undef": true,
"unused": true
}
@@ -0,0 +1,2 @@
src
tests
@@ -0,0 +1,46 @@
SASS_ARGS := src/stylesheets/style.scss css/style.css

ifneq (,$(shell sassc --version 2>/dev/null))
SASS_COMPILER := sassc
else
SASS_COMPILER := sass
endif

help:
@echo "make [task]"
@echo ""
@echo " make clean - removes built files"
@echo " make lint - runs JSXHint against src/javascripts"
@echo " make js - builds JavaScript with Browserify"
@echo " make css - builds CSS with Sass"
@echo " make all - cleans targets, then builds css + js"
@echo " make minified - cleans targets, then builds minified versions of css + js"

lint:
@jsxhint -e ".es" ./src/javsacripts/**/*.es

js:
@echo "Compiling JavaScript with Browserify"
@browserify src/javascripts/script.es -t babelify -o js/script.js

css:
@echo "Compiling Sass with $(SASS_COMPILER)"
@$(SASS_COMPILER) $(SASS_ARGS)

clean:
@echo "Removing generated JS/CSS"
@rm -f js/* css/*

all: clean js css

minified: clean
@echo "Compiling compressed JavaScript"
@NODE_ENV=production browserify src/javascripts/script.es -t babelify -t envify -o js/script.js
@uglifyjs --compress --mangle -- js/script.js 2>/dev/null > js/script.min.js
@rm js/script.js
@mv js/script.min.js js/script.js

@echo "Compiling compressed CSS"
@$(SASS_COMPILER) -t compressed $(SASS_ARGS)

.PHONY: help lint css js clean all minified
@@ -0,0 +1,117 @@
# Robeaux

Robeaux (/rō-bō/) is a universal dashboard to your robotic devices.
Like a router admin page, but for robots.

Robeaux is powered by [React](http://reactjs.com/).
It provides a front-end to the [CPPP-IO][] API interface offered by [Artoo][], [Cylon.js][] and [Gobot][].

[CPPP-IO]: https://github.com/hybridgroup/cppp-io
[Artoo]: http://artoo.io
[Cylon.js]: http://cylonjs.com
[Gobot]: http://gobot.io

## Dependencies

Robeaux's build chain requires the following tools:

#### Browserify

Used to concatenate source JavaScript down to a single `script.js` file.

Install through NPM:

$ npm install -g browserify

#### UglifyJS

Used to minify generated JavaScript.

Install through NPM:

$ npm install -g uglify-js

#### JSXHint

A modified version of JSHint, used to lint source ES6.

Install through NPM:

$ npm install -g jsxhint

#### Babelify

A Browserify plug-in for [babel][], a ES6 -> ES5 transpiler with support for React's JSX.

Install it with NPM:

# through package developer dependencies
$ npm install

# or manually
$ npm install babelify

[Babel]: https://babeljs.io

#### Envify

A Browserify plug-in to make Uglify's dead-code removal work better, by hard-coding `process.env.NODE_ENV` calls.

Install it with NPM:

# through package developer dependencies
$ npm install

# or manually
$ npm install envify

#### Sass

Used to compile / concatenate / compress CSS.

Install via RubyGems:

$ gem install sass

Alternatively, for faster builds, you can install the C-based [sassc][] tool.

For Mac users, `sassc` is available via Homebrew:

$ brew install sassc

If installed, `sassc` will be used by the build process over the RubyGem.

## Building

With all the pieces in place, you can now build Robeaux.

Our build tool of choice is `make`.

For available, commands, just run `make`:

$ make
make [task]

make clean - removes built files
make lint - runs JSXHint against src/javascripts
make js - builds JavaScript with Browserify
make css - builds CSS with Sass
make all - cleans targets, then builds css + js
make minified - cleans targets, then builds minified versions of css + js

## License

Copyright (c) 2014-2015 The Hybrid Group

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 required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.

[sassc]: https://github.com/sass/sassc
No changes.
Binary file not shown.
Oops, something went wrong.

0 comments on commit 8819e50

Please sign in to comment.