Added foundation and high voltage. Readme updates, too.

pull/27/head
rick carlino 2014-03-31 06:31:38 -07:00
parent 52bd6283d1
commit 17854f49cd
51 changed files with 1400 additions and 43 deletions

0
.gitignore vendored 100644 → 100755
View File

0
.ruby-gemset 100644 → 100755
View File

0
.ruby-version 100644 → 100755
View File

0
.travis.yaml 100644 → 100755
View File

6
Gemfile 100644 → 100755
View File

@ -1,7 +1,7 @@
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.3'
gem 'rails', '4.0.4'
# Use SCSS for stylesheets
@ -13,6 +13,10 @@ gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
gem 'high_voltage'
gem 'foundation-rails'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

67
Gemfile.lock 100644 → 100755
View File

@ -1,32 +1,32 @@
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.0.3)
actionpack (= 4.0.3)
actionmailer (4.0.4)
actionpack (= 4.0.4)
mail (~> 2.5.4)
actionpack (4.0.3)
activesupport (= 4.0.3)
actionpack (4.0.4)
activesupport (= 4.0.4)
builder (~> 3.1.0)
erubis (~> 2.7.0)
rack (~> 1.5.2)
rack-test (~> 0.6.2)
activemodel (4.0.3)
activesupport (= 4.0.3)
activemodel (4.0.4)
activesupport (= 4.0.4)
builder (~> 3.1.0)
activerecord (4.0.3)
activemodel (= 4.0.3)
activerecord (4.0.4)
activemodel (= 4.0.4)
activerecord-deprecated_finders (~> 1.0.2)
activesupport (= 4.0.3)
activesupport (= 4.0.4)
arel (~> 4.0.0)
activerecord-deprecated_finders (1.0.3)
activesupport (4.0.3)
i18n (~> 0.6, >= 0.6.4)
activesupport (4.0.4)
i18n (~> 0.6, >= 0.6.9)
minitest (~> 4.2)
multi_json (~> 1.3)
thread_safe (~> 0.1)
tzinfo (~> 0.3.37)
arel (4.0.2)
atomic (1.1.15)
atomic (1.1.16)
builder (3.1.4)
coffee-rails (4.0.1)
coffee-script (>= 2.2.0)
@ -37,6 +37,10 @@ GEM
coffee-script-source (1.7.0)
erubis (2.7.0)
execjs (2.0.2)
foundation-rails (5.2.1.0)
railties (>= 3.1.0)
sass (>= 3.2.0)
high_voltage (2.1.0)
hike (1.2.3)
i18n (0.6.9)
jbuilder (1.5.3)
@ -51,31 +55,32 @@ GEM
treetop (~> 1.4.8)
mime-types (1.25.1)
minitest (4.7.5)
multi_json (1.9.0)
multi_json (1.9.2)
polyglot (0.3.4)
rack (1.5.2)
rack-test (0.6.2)
rack (>= 1.0)
rails (4.0.3)
actionmailer (= 4.0.3)
actionpack (= 4.0.3)
activerecord (= 4.0.3)
activesupport (= 4.0.3)
rails (4.0.4)
actionmailer (= 4.0.4)
actionpack (= 4.0.4)
activerecord (= 4.0.4)
activesupport (= 4.0.4)
bundler (>= 1.3.0, < 2.0)
railties (= 4.0.3)
railties (= 4.0.4)
sprockets-rails (~> 2.0.0)
railties (4.0.3)
actionpack (= 4.0.3)
activesupport (= 4.0.3)
railties (4.0.4)
actionpack (= 4.0.4)
activesupport (= 4.0.4)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.1.1)
rake (10.2.2)
rdoc (4.1.1)
json (~> 1.4)
sass (3.3.2)
sass-rails (4.0.1)
sass (3.2.18)
sass-rails (4.0.2)
railties (>= 4.0.0, < 5.0)
sass (>= 3.1.10)
sass (~> 3.2.0)
sprockets (~> 2.8, <= 2.11.0)
sprockets-rails (~> 2.0.0)
sdoc (0.4.0)
json (~> 1.8)
@ -89,8 +94,8 @@ GEM
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (~> 2.8)
thor (0.18.1)
thread_safe (0.2.0)
thor (0.19.1)
thread_safe (0.3.1)
atomic (>= 1.1.7, < 2)
tilt (1.4.1)
treetop (1.4.15)
@ -99,7 +104,7 @@ GEM
turbolinks (2.2.1)
coffee-rails
tzinfo (0.3.39)
uglifier (2.4.0)
uglifier (2.5.0)
execjs (>= 0.3.0)
json (>= 1.8.0)
@ -108,9 +113,11 @@ PLATFORMS
DEPENDENCIES
coffee-rails (~> 4.0.0)
foundation-rails
high_voltage
jbuilder (~> 1.2)
jquery-rails
rails (= 4.0.3)
rails (= 4.0.4)
sass-rails (~> 4.0.0)
sdoc
turbolinks

0
LICENSE 100644 → 100755
View File

10
README.md 100644 → 100755
View File

@ -3,7 +3,15 @@
# Farmbot Decision Support System
This Repo.
This Repo is the Web based side of the decision support system. It is the glue that ties together all other farmbot components and services.
# Developer setup
1. `git clone git@github.com:FarmBot/farmbot-web-backend.git`
2. `cd farmbot-web-backend`
3. `bundle install`
4. `rails s`
5. Checkout `http://localhost:3000`
# How to Contribute

0
README.rdoc 100644 → 100755
View File

0
Rakefile 100644 → 100755
View File

0
app/assets/images/.keep 100644 → 100755
View File

View File

@ -12,5 +12,8 @@
//
//= require jquery
//= require jquery_ujs
//= require foundation
//= require turbolinks
//= require_tree .
$(function(){ $(document).foundation(); });

View File

@ -9,5 +9,7 @@
* compiled file, but it's generally better to create a new file per style scope.
*
*= require_self
*= require foundation_and_overrides
*= require_tree .
*/

File diff suppressed because it is too large Load Diff

View File

0
app/controllers/concerns/.keep 100644 → 100755
View File

0
app/helpers/application_helper.rb 100644 → 100755
View File

0
app/mailers/.keep 100644 → 100755
View File

0
app/models/.keep 100644 → 100755
View File

0
app/models/concerns/.keep 100644 → 100755
View File

View File

@ -1,14 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<title>Dss</title>
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
<%= csrf_meta_tags %>
</head>
<body>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<%= yield %>
<title><%= content_for?(:title) ? yield(:title) : "FarmBot" %></title>
</body>
</html>
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag "vendor/modernizr" %>
<%= csrf_meta_tags %>
</head>
<body>
<%= yield %>
<%= javascript_include_tag "application" %>
</body>
</html>

View File

@ -0,0 +1,2 @@
<h1> Hello, world! </h1>
<p>The time is now <strong><%= Time.now %></strong></p>

0
config.ru 100644 → 100755
View File

0
config/application.rb 100644 → 100755
View File

0
config/boot.rb 100644 → 100755
View File

0
config/environment.rb 100644 → 100755
View File

View File

0
config/environments/production.rb 100644 → 100755
View File

0
config/environments/test.rb 100644 → 100755
View File

View File

View File

View File

@ -0,0 +1,4 @@
# config/initializers/high_voltage.rb
HighVoltage.configure do |config|
config.home_page = 'welcome'
end

View File

0
config/initializers/mime_types.rb 100644 → 100755
View File

View File

View File

View File

0
config/locales/en.yml 100644 → 100755
View File

1
config/routes.rb 100644 → 100755
View File

@ -1,4 +1,5 @@
Dss::Application.routes.draw do
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".

0
db/seeds.rb 100644 → 100755
View File

0
lib/assets/.keep 100644 → 100755
View File

0
lib/tasks/.keep 100644 → 100755
View File

0
log/.keep 100644 → 100755
View File

79
log/development.log 100644 → 100755
View File

@ -10,3 +10,82 @@ Started GET "/rails/info/properties" for 127.0.0.1 at 2014-03-12 06:39:40 -0700
Processing by Rails::InfoController#properties as */*
Rendered /Users/ricardocarlino/.rvm/rubies/ruby-2.1.1/lib/ruby/gems/2.1.0/gems/railties-4.0.3/lib/rails/templates/rails/info/properties.html.erb (0.5ms)
Completed 200 OK in 30ms (Views: 22.0ms)
Started GET "/" for 127.0.0.1 at 2014-03-31 06:28:31 -0700
Processing by HighVoltage::PagesController#show as HTML
Parameters: {"id"=>"welcome"}
Rendered pages/welcome.html.erb within layouts/application (2.1ms)
Completed 200 OK in 4195ms (Views: 4182.8ms)
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2014-03-31 06:28:36 -0700
Started GET "/assets/foundation_and_overrides.css?body=1" for 127.0.0.1 at 2014-03-31 06:28:36 -0700
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-03-31 06:28:36 -0700
Started GET "/assets/vendor/modernizr.js?body=1" for 127.0.0.1 at 2014-03-31 06:28:36 -0700
Started GET "/assets/foundation/foundation.js?body=1" for 127.0.0.1 at 2014-03-31 06:28:36 -0700
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2014-03-31 06:28:36 -0700
Started GET "/assets/foundation/foundation.abide.js?body=1" for 127.0.0.1 at 2014-03-31 06:28:36 -0700
Started GET "/assets/foundation/foundation.accordion.js?body=1" for 127.0.0.1 at 2014-03-31 06:28:36 -0700
Started GET "/assets/foundation/foundation.alert.js?body=1" for 127.0.0.1 at 2014-03-31 06:28:36 -0700
Started GET "/assets/foundation/foundation.clearing.js?body=1" for 127.0.0.1 at 2014-03-31 06:28:36 -0700
Started GET "/assets/foundation/foundation.dropdown.js?body=1" for 127.0.0.1 at 2014-03-31 06:28:36 -0700
Started GET "/assets/foundation/foundation.interchange.js?body=1" for 127.0.0.1 at 2014-03-31 06:28:36 -0700
Started GET "/assets/foundation/foundation.joyride.js?body=1" for 127.0.0.1 at 2014-03-31 06:28:36 -0700
Started GET "/assets/foundation/foundation.magellan.js?body=1" for 127.0.0.1 at 2014-03-31 06:28:36 -0700
Started GET "/assets/foundation/foundation.offcanvas.js?body=1" for 127.0.0.1 at 2014-03-31 06:28:36 -0700
Started GET "/assets/foundation/foundation.orbit.js?body=1" for 127.0.0.1 at 2014-03-31 06:28:36 -0700
Started GET "/assets/foundation/foundation.reveal.js?body=1" for 127.0.0.1 at 2014-03-31 06:28:36 -0700
Started GET "/assets/foundation/foundation.tab.js?body=1" for 127.0.0.1 at 2014-03-31 06:28:36 -0700
Started GET "/assets/foundation/foundation.tooltip.js?body=1" for 127.0.0.1 at 2014-03-31 06:28:36 -0700
Started GET "/assets/foundation/foundation.topbar.js?body=1" for 127.0.0.1 at 2014-03-31 06:28:36 -0700
Started GET "/assets/foundation/foundation.equalizer.js?body=1" for 127.0.0.1 at 2014-03-31 06:28:36 -0700
Started GET "/assets/foundation.js?body=1" for 127.0.0.1 at 2014-03-31 06:28:36 -0700
Started GET "/assets/turbolinks.js?body=1" for 127.0.0.1 at 2014-03-31 06:28:36 -0700
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-03-31 06:28:36 -0700

0
public/404.html 100644 → 100755
View File

0
public/422.html 100644 → 100755
View File

0
public/500.html 100644 → 100755
View File

0
public/favicon.ico 100644 → 100755
View File

0
public/robots.txt 100644 → 100755
View File

0
vendor/assets/javascripts/.keep vendored 100644 → 100755
View File

0
vendor/assets/stylesheets/.keep vendored 100644 → 100755
View File