Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

WIP: Convert the UI to be React based #1

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
e094bd1
Adding react_rails
wbushey Jul 15, 2016
0f70e8f
First React component
wbushey Jul 15, 2016
f32d4b7
Added Jasmine, and first React spec
wbushey Jul 16, 2016
c454904
Using jquery-rails version of jQuery
wbushey Jul 17, 2016
0cf5d40
Upgrading bootstrap.js to 2.3.2
wbushey Jul 17, 2016
63a4c3b
jQuery 1.8 -> 1.11: live -> on
wbushey Jul 17, 2016
34a554e
More development of the Field component
wbushey Jul 18, 2016
59c6ee4
Text fields update their values
wbushey Jul 26, 2016
41b11a6
Refactored Field into several focused components
wbushey Jul 27, 2016
9e61111
All components can receive input
wbushey Jul 28, 2016
244c7ae
Fields can have initial values set
wbushey Jul 31, 2016
fd3b154
Fields can display errors
wbushey Aug 1, 2016
d608018
Starting the Edit Profile view in React
wbushey Aug 1, 2016
3b9b322
Working shipping options
wbushey Aug 6, 2016
e17776d
Created Survey form partial
wbushey Aug 7, 2016
b54c1a0
Removing unneeded server side partials
wbushey Aug 8, 2016
a4061cf
Replaced display of location search with React component
wbushey Aug 10, 2016
dc7f124
Implemented LocationSearchView
wbushey Aug 13, 2016
d2b22d1
Old work in some state, including some failing tests
wbushey Sep 27, 2016
7818b2f
Updating .gitignore and setting up working environment
Oct 25, 2016
8047543
Fixes #23
Oct 25, 2016
a16324f
Fixed one thing about a still failing spec
wbushey Oct 26, 2016
2a27441
Component Fields can take onStateChange callbacks (#35)
wbushey Oct 29, 2016
69904e1
Finishing update of gems from master
wbushey Dec 11, 2016
f96ff50
Merge branch 'master' into react
wbushey Mar 29, 2017
eb041cf
Fixing Gemfile
wbushey Mar 29, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@
/db/*.sqlite3-journal

# Ignore all logfiles and tempfiles.
logfile
log/*
/log/*.log
/tmp

# Ignore dotenv
.env

# Ignore generated javascript translations
/public/javascripts/translations.js

# Ignore other things
*swp
*~
Expand Down
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ gem 'devise', '~> 4.2.0'
gem 'geokit', '~> 1.10.0'
gem 'haml', '~> 4.0.7'
gem 'hashie', '~> 3.5.1'
gem 'i18n-js', '>= 3.0.0.rc13'
gem 'jquery-rails', '~> 3.1.4'
gem 'jquery-ui-rails'
gem 'puma', '~> 3.7.0'
gem 'rails_admin', '~> 1.1.0'
gem 'rails_admin_enum4', '~> 0.1.3'
gem 'react-rails'
gem 'sass-rails', '~> 5.0.6'
gem 'validates_formatting_of', '~> 0.9.0'

Expand All @@ -43,6 +46,7 @@ group :development, :test do
gem 'dotenv-rails', '~> 2.2.0'
gem 'faker', '~> 1.7.1'
gem 'factory_girl_rails', '~> 4.8.0'
gem 'jasmine-rails'
gem 'pry-rails', '~> 0.3.4'
gem 'rspec-rails', '~> 3.5.2'
end
Expand Down
25 changes: 25 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ GEM
arel (5.0.1.20140414130214)
autoprefixer-rails (6.7.2)
execjs
babel-source (5.8.35)
babel-transpiler (0.7.0)
babel-source (>= 4.0, < 6)
execjs (~> 2.0)
bcrypt (3.1.11)
bootstrap-sass (3.3.7)
autoprefixer-rails (>= 5.2.1)
Expand Down Expand Up @@ -92,6 +96,7 @@ GEM
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.0.4)
connection_pool (2.2.0)
database_cleaner (1.5.3)
devise (4.2.0)
bcrypt (~> 3.0)
Expand Down Expand Up @@ -143,6 +148,14 @@ GEM
tilt
hashie (3.5.1)
i18n (0.8.0)
i18n-js (3.0.0.rc13)
i18n (~> 0.6, >= 0.6.6)
jasmine-core (2.4.1)
jasmine-rails (0.12.6)
jasmine-core (>= 1.3, < 3.0)
phantomjs (>= 1.9)
railties (>= 3.2.0)
sprockets-rails
jquery-rails (3.1.4)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
Expand Down Expand Up @@ -182,6 +195,7 @@ GEM
shellany (~> 0.0)
orm_adapter (0.5.0)
pg (0.19.0)
phantomjs (2.1.1.0)
poltergeist (1.13.0)
capybara (~> 2.1)
cliver (~> 0.3.1)
Expand Down Expand Up @@ -245,6 +259,13 @@ GEM
rb-fsevent (0.9.8)
rb-inotify (0.9.8)
ffi (>= 0.5.0)
react-rails (1.8.0)
babel-transpiler (>= 0.7.0)
coffee-script-source (~> 1.8)
connection_pool
execjs
railties (>= 3.2)
tilt
remotipart (1.3.1)
responders (1.1.2)
railties (>= 3.2, < 4.2)
Expand Down Expand Up @@ -352,7 +373,10 @@ DEPENDENCIES
guard-rspec (~> 4.7.3)
haml (~> 4.0.7)
hashie (~> 3.5.1)
i18n-js (>= 3.0.0.rc13)
jasmine-rails
jquery-rails (~> 3.1.4)
jquery-ui-rails
launchy (~> 2.4.3)
libnotify
nokogiri (= 1.7.0.1)
Expand All @@ -366,6 +390,7 @@ DEPENDENCIES
rails_12factor (~> 0.0.3)
rails_admin (~> 1.1.0)
rails_admin_enum4 (~> 0.1.3)
react-rails
rspec-rails (~> 3.5.2)
sandi_meter (~> 1.2.0)
sass-rails (~> 5.0.6)
Expand Down
8 changes: 8 additions & 0 deletions adopt-a-tree.sublime-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"folders":
[
{
"path": "."
}
]
}
5 changes: 5 additions & 0 deletions app/assets/javascripts/adopta.js.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
AdoptA = {
green_marker_image_path: '<%= image_path 'markers/marker-green.png' %>',
yellow_marker_image_path: '<%= image_path 'markers/marker-yellow.png' %>',
shadow_marker_image_path: '<%= image_path 'markers/shadow.png' %>'
}
8 changes: 7 additions & 1 deletion app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,11 @@
//
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery-ui
//= require react
//= require react_ujs
//= require i18n
//= require i18n/translations
//= require components
//= require_tree .
Loading