diff --git a/.gitignore b/.gitignore index 6a502e9..f667005 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,10 @@ # Ignore all logfiles and tempfiles. /log/*.log /tmp + +config/settings.yml +config/database.yml +config/secrets.yml +public/uploads +public/assets + diff --git a/Capfile b/Capfile new file mode 100644 index 0000000..42691e8 --- /dev/null +++ b/Capfile @@ -0,0 +1,45 @@ +require 'capistrano/console' + +# this is not set for default +#require 'capistrano/rails/migrations' +#require 'capistrano/rails/assets' + + +# Load DSL and Setup Up Stages +require 'capistrano/setup' + +# Includes default deployment tasks +require 'capistrano/deploy' + +require 'capistrano/bundler' +require 'capistrano/rails' + +#add for sidekiq +#you should care about the order of require +require 'capistrano/sidekiq' +require 'capistrano/sidekiq/monit' #to require monit tasks # Only for capistrano3 + + +require 'capistrano/rvm' +set :rvm_type, :user +set :rvm_ruby_version, '2.0.0-p451' + +# Includes tasks from other gems included in your Gemfile +# +# For documentation on these, see for example: +# +# https://github.com/capistrano/rvm +# https://github.com/capistrano/rbenv +# https://github.com/capistrano/chruby +# https://github.com/capistrano/bundler +# https://github.com/capistrano/rails +# +# require 'capistrano/rvm' +# require 'capistrano/rbenv' +# require 'capistrano/chruby' +# require 'capistrano/bundler' +# require 'capistrano/rails/assets' +# require 'capistrano/rails/migrations' + +# Loads custom tasks from `lib/capistrano/tasks' if you have any defined. +Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r } diff --git a/Gemfile b/Gemfile index fba3b4e..11d856f 100644 --- a/Gemfile +++ b/Gemfile @@ -38,3 +38,68 @@ gem 'spring', group: :development # Use debugger # gem 'debugger', group: [:development, :test] + +#customize gem +#gem 'pry', '~> 0.10.0' + +gem "simple_form", "3.1.0rc1" +gem 'bootstrap-sass', '~> 3.2.0.0' +#The bootstrap-sass-rails gem is deprecated starting with version 3.1.0.0. +#gem 'bootstrap-sass-rails', '~> 3.1.0.0' +gem 'will_paginate' , '~> 3.0' +gem 'will_paginate-bootstrap' +gem 'devise' , '~> 3.2' +gem 'carrierwave' +gem 'mini_magick', '~> 3.7.0' +gem 'cocoon', '~> 1.2.6' +gem 'settingslogic', '~> 2.0.9' +gem 'aasm', '~> 3.3.1' +gem 'stripe' +gem 'roadie' +gem 'ransack', github: 'activerecord-hackery/ransack', branch: 'rails-4.1' + +# add for snipper +gem 'jquery-ui-rails', '~> 5.0.0' + +# add for sidekiq +gem 'sidekiq', '~> 3.2.1' +gem 'sinatra', require: false +gem 'slim' + +#add for capistrano +gem 'capistrano', '~> 3.2.0' +gem 'capistrano-bundler', '~> 1.1.2' +gem 'capistrano-rails', '~> 1.1.1' +gem 'capistrano-rvm', github: "capistrano/rvm" +gem 'capistrano-sidekiq' , github: 'seuros/capistrano-sidekiq' + +gem 'mysql2' + +#add for seo +gem 'seo_helper', '~> 1.0', :git => 'git://github.com/techbang/seo_helper.git' +gem 'sitemap_generator' + +#fb open graph +gem 'open_graph_helper', :github => 'techbang/open_graph_helper' + +group :development, :test do + gem 'pry-rails' + gem 'pry-plus' + gem 'meta_request' + gem 'better_errors' + gem "binding_of_caller" + gem 'guard-livereload' + gem 'annotate', '~> 2.6.5' + gem 'letter_opener', '~> 1.2.0' + +end + + + + + + + + + + diff --git a/Gemfile.lock b/Gemfile.lock index 53538d9..307f9e8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,47 @@ +GIT + remote: git://github.com/activerecord-hackery/ransack.git + revision: 6e6457e511f9babd9a464d944e88b9e73f270bcf + branch: rails-4.1 + specs: + ransack (1.2.4) + actionpack (>= 4.0) + activerecord (>= 4.0) + activesupport (>= 4.0) + i18n + polyamorous (~> 1.1.0) + +GIT + remote: git://github.com/capistrano/rvm.git + revision: dc35ec5e7a74a422250bd6ff5e8885c8b742d0e5 + specs: + capistrano-rvm (0.1.1) + capistrano (~> 3.0) + sshkit (~> 1.2) + +GIT + remote: git://github.com/seuros/capistrano-sidekiq.git + revision: 73477132fe05f62916f3ca432281202ddabd50f9 + specs: + capistrano-sidekiq (0.3.6) + capistrano + sidekiq + +GIT + remote: git://github.com/techbang/open_graph_helper.git + revision: b46e788e90ccab3aa4df5a9fd401b616812801f0 + specs: + open_graph_helper (0.2.0) + +GIT + remote: git://github.com/techbang/seo_helper.git + revision: 5a479c8a3213128a4c95c3068b7075a70f635969 + specs: + seo_helper (1.0.2) + GEM remote: https://rubygems.org/ specs: + aasm (3.3.1) actionmailer (4.1.0) actionpack (= 4.1.0) actionview (= 4.1.0) @@ -27,8 +68,41 @@ GEM minitest (~> 5.1) thread_safe (~> 0.1) tzinfo (~> 1.1) + addressable (2.3.6) + annotate (2.6.5) + activerecord (>= 2.3.0) + rake (>= 0.8.7) arel (5.0.1.20140414130214) + bcrypt (3.1.7) + better_errors (1.1.0) + coderay (>= 1.0.0) + erubis (>= 2.6.6) + binding_of_caller (0.7.2) + debug_inspector (>= 0.0.1) + bond (0.5.1) + bootstrap-sass (3.2.0.0) + sass (~> 3.2) builder (3.2.2) + callsite (0.0.11) + capistrano (3.2.1) + i18n + rake (>= 10.0.0) + sshkit (~> 1.3) + capistrano-bundler (1.1.3) + capistrano (~> 3.1) + sshkit (~> 1.2) + capistrano-rails (1.1.1) + capistrano (~> 3.1) + capistrano-bundler (~> 1.1) + carrierwave (0.10.0) + activemodel (>= 3.2.0) + activesupport (>= 3.2.0) + json (>= 1.7) + mime-types (>= 1.16) + celluloid (0.15.2) + timers (~> 1.1.0) + cocoon (1.2.6) + coderay (1.1.0) coffee-rails (4.0.1) coffee-script (>= 2.2.0) railties (>= 4.0.0, < 5.0) @@ -36,25 +110,125 @@ GEM coffee-script-source execjs coffee-script-source (1.7.0) + colorize (0.7.3) + columnize (0.8.9) + connection_pool (2.0.0) + css_parser (1.3.5) + addressable + debug_inspector (0.0.2) + debugger (1.6.8) + columnize (>= 0.3.1) + debugger-linecache (~> 1.2.0) + debugger-ruby_core_source (~> 1.3.5) + debugger-linecache (1.2.0) + debugger-ruby_core_source (1.3.5) + devise (3.2.4) + bcrypt (~> 3.0) + orm_adapter (~> 0.1) + railties (>= 3.2.6, < 5) + thread_safe (~> 0.1) + warden (~> 1.2.3) + em-websocket (0.5.1) + eventmachine (>= 0.12.9) + http_parser.rb (~> 0.6.0) erubis (2.7.0) + eventmachine (1.0.3) execjs (2.2.0) + ffi (1.9.3) + formatador (0.2.5) + guard (2.6.1) + formatador (>= 0.2.4) + listen (~> 2.7) + lumberjack (~> 1.0) + pry (>= 0.9.12) + thor (>= 0.18.1) + guard-livereload (2.3.0) + em-websocket (~> 0.5) + guard (~> 2.0) + multi_json (~> 1.8) hike (1.2.3) + http_parser.rb (0.6.0) i18n (0.6.9) + interception (0.5) jbuilder (2.0.8) activesupport (>= 3.0.0, < 5) multi_json (~> 1.2) + jist (1.5.1) + json jquery-rails (3.1.0) railties (>= 3.0, < 5.0) thor (>= 0.14, < 2.0) + jquery-ui-rails (5.0.0) + railties (>= 3.2.16) json (1.8.1) + launchy (2.4.2) + addressable (~> 2.3) + letter_opener (1.2.0) + launchy (~> 2.2) + listen (2.7.9) + celluloid (>= 0.15.2) + rb-fsevent (>= 0.9.3) + rb-inotify (>= 0.9) + lumberjack (1.0.9) mail (2.5.4) mime-types (~> 1.16) treetop (~> 1.4.8) + meta_request (0.2.9) + callsite + rack-contrib + railties + method_source (0.8.2) mime-types (1.25.1) + mini_magick (3.7.0) + subexec (~> 0.2.1) + mini_portile (0.6.0) minitest (5.3.4) multi_json (1.10.1) + mysql2 (0.3.16) + net-scp (1.2.1) + net-ssh (>= 2.6.5) + net-ssh (2.9.1) + netrc (0.7.7) + nokogiri (1.6.3) + mini_portile (= 0.6.0) + orm_adapter (0.5.0) + polyamorous (1.1.0) + activerecord (>= 3.0) polyglot (0.3.5) + pry (0.10.0) + coderay (~> 1.1.0) + method_source (~> 0.8.1) + slop (~> 3.4) + pry-debugger (0.2.3) + debugger (~> 1.3) + pry (>= 0.9.10, < 0.11.0) + pry-doc (0.6.0) + pry (~> 0.9) + yard (~> 0.8) + pry-docmore (0.1.1) + pry + pry-doc + pry-plus (1.0.0) + bond + jist + pry-debugger + pry-doc + pry-docmore + pry-rescue + pry-stack_explorer + pry-rails (0.3.2) + pry (>= 0.9.10) + pry-rescue (1.4.1) + interception (>= 0.5) + pry + pry-stack_explorer (0.4.9.1) + binding_of_caller (>= 0.7) + pry (>= 0.9.11) rack (1.5.2) + rack-contrib (1.1.0) + rack (>= 0.9.1) + rack-protection (1.5.3) + rack rack-test (0.6.2) rack (>= 1.0) rails (4.1.0) @@ -73,8 +247,20 @@ GEM rake (>= 0.8.7) thor (>= 0.18.1, < 2.0) rake (10.3.2) + rb-fsevent (0.9.4) + rb-inotify (0.9.5) + ffi (>= 0.5.0) rdoc (4.1.1) json (~> 1.4) + redis (3.1.0) + redis-namespace (1.5.0) + redis (~> 3.0, >= 3.0.4) + rest-client (1.7.2) + mime-types (>= 1.16, < 3.0) + netrc (~> 0.7) + roadie (3.0.0) + css_parser (~> 1.3.4) + nokogiri (~> 1.6.0) sass (3.2.19) sass-rails (4.0.3) railties (>= 4.0.0, < 5.0) @@ -84,6 +270,26 @@ GEM sdoc (0.4.0) json (~> 1.8) rdoc (~> 4.0, < 5.0) + settingslogic (2.0.9) + sidekiq (3.2.1) + celluloid (>= 0.15.2) + connection_pool (>= 2.0.0) + json + redis (>= 3.0.6) + redis-namespace (>= 1.3.1) + simple_form (3.1.0.rc1) + actionpack (~> 4.0) + activemodel (~> 4.0) + sinatra (1.4.5) + rack (~> 1.4) + rack-protection (~> 1.4) + tilt (~> 1.3, >= 1.3.4) + sitemap_generator (5.0.5) + builder + slim (2.0.3) + temple (~> 0.6.6) + tilt (>= 1.3.3, < 2.1) + slop (3.5.0) spring (1.1.3) sprockets (2.11.0) hike (~> 1.2) @@ -95,9 +301,20 @@ GEM activesupport (>= 3.0) sprockets (~> 2.8) sqlite3 (1.3.9) + sshkit (1.5.1) + colorize + net-scp (>= 1.1.2) + net-ssh (>= 2.8.0) + stripe (1.14.0) + json (~> 1.8.1) + mime-types (~> 1.25) + rest-client (~> 1.4) + subexec (0.2.3) + temple (0.6.8) thor (0.19.1) thread_safe (0.3.4) tilt (1.4.1) + timers (1.1.0) treetop (1.4.15) polyglot polyglot (>= 0.3.1) @@ -108,18 +325,58 @@ GEM uglifier (2.5.0) execjs (>= 0.3.0) json (>= 1.8.0) + warden (1.2.3) + rack (>= 1.0) + will_paginate (3.0.7) + will_paginate-bootstrap (1.0.1) + will_paginate (>= 3.0.3) + yard (0.8.7.4) PLATFORMS ruby DEPENDENCIES + aasm (~> 3.3.1) + annotate (~> 2.6.5) + better_errors + binding_of_caller + bootstrap-sass (~> 3.2.0.0) + capistrano (~> 3.2.0) + capistrano-bundler (~> 1.1.2) + capistrano-rails (~> 1.1.1) + capistrano-rvm! + capistrano-sidekiq! + carrierwave + cocoon (~> 1.2.6) coffee-rails (~> 4.0.0) + devise (~> 3.2) + guard-livereload jbuilder (~> 2.0) jquery-rails + jquery-ui-rails (~> 5.0.0) + letter_opener (~> 1.2.0) + meta_request + mini_magick (~> 3.7.0) + mysql2 + open_graph_helper! + pry-plus + pry-rails rails (= 4.1.0) + ransack! + roadie sass-rails (~> 4.0.3) sdoc (~> 0.4.0) + seo_helper (~> 1.0)! + settingslogic (~> 2.0.9) + sidekiq (~> 3.2.1) + simple_form (= 3.1.0rc1) + sinatra + sitemap_generator + slim spring sqlite3 + stripe turbolinks uglifier (>= 1.3.0) + will_paginate (~> 3.0) + will_paginate-bootstrap diff --git a/Guardfile b/Guardfile new file mode 100644 index 0000000..180e51f --- /dev/null +++ b/Guardfile @@ -0,0 +1,11 @@ +# A sample Guardfile +# More info at https://github.com/guard/guard#readme + +guard 'livereload' do + watch(%r{app/views/.+\.(erb|haml|slim)$}) + watch(%r{app/helpers/.+\.rb}) + watch(%r{public/.+\.(css|js|html)}) + watch(%r{config/locales/.+\.yml}) + # Rails Assets Pipeline + watch(%r{(app|vendor)(/assets/\w+/(.+\.(css|js|html|png|jpg))).*}) { |m| "/assets/#{m[3]}" } +end diff --git a/README.md b/README.md deleted file mode 100644 index e69de29..0000000 diff --git a/app/assets/images/logo-artstore.png b/app/assets/images/logo-artstore.png new file mode 100644 index 0000000..e3c5d1a Binary files /dev/null and b/app/assets/images/logo-artstore.png differ diff --git a/app/assets/javascripts/account/orders.js.coffee b/app/assets/javascripts/account/orders.js.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/app/assets/javascripts/account/orders.js.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/javascripts/admin.js.coffee b/app/assets/javascripts/admin.js.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/app/assets/javascripts/admin.js.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/javascripts/admin/orders.js.coffee b/app/assets/javascripts/admin/orders.js.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/app/assets/javascripts/admin/orders.js.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/javascripts/admin/photos.js.coffee b/app/assets/javascripts/admin/photos.js.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/app/assets/javascripts/admin/photos.js.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/javascripts/admin/products.js.coffee b/app/assets/javascripts/admin/products.js.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/app/assets/javascripts/admin/products.js.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index d6925fa..1187e1f 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -12,5 +12,11 @@ // //= require jquery //= require jquery_ujs -//= require turbolinks -//= require_tree . +// require turbolinks +//= require bootstrap-sprockets +//= require cocoon +//= require jquery-ui/spinner +//= require jquery_customization +//= require orders +//= require facebook +// require_tree . \ No newline at end of file diff --git a/app/assets/javascripts/card_charges.js.coffee b/app/assets/javascripts/card_charges.js.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/app/assets/javascripts/card_charges.js.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/javascripts/cart_items.js.coffee b/app/assets/javascripts/cart_items.js.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/app/assets/javascripts/cart_items.js.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/javascripts/carts.js.coffee b/app/assets/javascripts/carts.js.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/app/assets/javascripts/carts.js.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/javascripts/carts_index.js.erb b/app/assets/javascripts/carts_index.js.erb new file mode 100644 index 0000000..a1a3668 --- /dev/null +++ b/app/assets/javascripts/carts_index.js.erb @@ -0,0 +1,46 @@ + + //initialize spinner + var spinners = $( ".spinner" ).spinner({min: 1}); + + $.each( spinners , function(index,spinner){ + //spinner is a DOM object + var max = parseInt($(this).attr("data_max")); + $(this).spinner( "option", "max", max); + var start_value = $(this).attr("data_start"); + //fix the bug when product is not enough. + if(start_value > max){ + start_value = max + } + + $(this).spinner( "value", start_value); + update_cart_item_quantity(this,null,start_value,false); + + + $(this).on( "spin", function( event, ui ){ + //console.log(ui.value); + update_cart_item_quantity(this,event,ui.value,true); + }); + + $(this).on( "spinchange", function(event , ui) { + var spin_value = parseInt($(this).attr("aria-valuenow")); + //console.log(this); + if(spin_value > max){ + $(this).spinner( "value", max); + spin_value = max + } + update_cart_item_quantity(this,event,spin_value,true); + + }); + + }); + + function update_cart_item_quantity(this_obj, event, update_quantity , submit){ + var span = $(this_obj).closest("span"); + var form = span.siblings("form"); + var input_text = form.find("input[type='number']"); + //var submit_button = form.find("input[type='submit']"); + input_text.attr("value" , update_quantity); + if(submit == true){ + form.submit(); + } + } diff --git a/app/assets/javascripts/facebook.js.erb b/app/assets/javascripts/facebook.js.erb new file mode 100644 index 0000000..321fed3 --- /dev/null +++ b/app/assets/javascripts/facebook.js.erb @@ -0,0 +1,9 @@ +$(document).on('ready page:load', function(){ + (function(d, s, id) { + var js, fjs = d.getElementsByTagName(s)[0]; + if (d.getElementById(id)) return; + js = d.createElement(s); js.id = id; + js.src = "//connect.facebook.net/zh_TW/sdk.js#xfbml=1&appId=325724860937686&version=v2.0"; + fjs.parentNode.insertBefore(js, fjs); + }(document, 'script', 'facebook-jssdk')); +}); \ No newline at end of file diff --git a/app/assets/javascripts/jquery_customization.js.erb b/app/assets/javascripts/jquery_customization.js.erb new file mode 100644 index 0000000..46e2874 --- /dev/null +++ b/app/assets/javascripts/jquery_customization.js.erb @@ -0,0 +1,90 @@ +$(document).on('ready page:load', function(){ + + //initialize slide show + $("div.item:first-child").addClass("active"); + + + //initialize spinner +// var spinners = $( ".spinner" ).spinner({min: 1}); +// +// $.each( spinners , function(index,spinner){ +// //spinner is a DOM object +// var max = parseInt($(this).attr("data_max")); +// $(this).spinner( "option", "max", max); +// var start_value = $(this).attr("data_start"); +// //fix the bug when product is not enough. +// if(start_value > max){ +// start_value = max +// } +// +// $(this).spinner( "value", start_value); +// update_cart_item_quantity(this,null,start_value,false); +// +// +// $(this).on( "spin", function( event, ui ){ +// //console.log(ui.value); +// update_cart_item_quantity(this,event,ui.value,true); +// }); +// +// $(this).on( "spinchange", function(event , ui) { +// var spin_value = parseInt($(this).attr("aria-valuenow")); +// //console.log(this); +// if(spin_value > max){ +// $(this).spinner( "value", max); +// spin_value = max +// } +// update_cart_item_quantity(this,event,spin_value,true); +// +// }); +// +// }); +// +// function update_cart_item_quantity(this_obj, event, update_quantity , submit){ +// var span = $(this_obj).closest("span"); +// var form = span.siblings("form"); +// var input_text = form.find("input[type='number']"); +// //var submit_button = form.find("input[type='submit']"); +// input_text.attr("value" , update_quantity); +// if(submit == true){ +// form.submit(); +// } +// } + + + + //initialize state td + var tds = $('td.td_aasm_state'); + $.each( tds , function(td){ + nowstate = $(this).attr('data_nowstate'); + setector_str = "li[data_state=" + nowstate + "]"; + $(this).find(setector_str).addClass("active"); + + + }); + + //initialize state li + var lis = $('div.pagination li'); + $.each( lis , function(li){ + + $(this).on('click', function(){ + console.log(li_siblings); + var li_siblings = $(this).siblings("li.active"); + li_siblings.removeClass("active"); + $(this).addClass("active"); + + var div = $(this).closest("div.pagination"); + var form = div.siblings("form"); + var input_text = form.find("input[type='text']"); + var state = $(this).attr("data_state"); + input_text.attr("value" , state); + form.submit(); + }); + }); + + + + + + //var tmpl = '
' + +}); \ No newline at end of file diff --git a/app/assets/javascripts/orders.js.coffee b/app/assets/javascripts/orders.js.coffee new file mode 100644 index 0000000..7f447c3 --- /dev/null +++ b/app/assets/javascripts/orders.js.coffee @@ -0,0 +1,36 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ + + +jQuery ($) -> + $("#payment-form").submit (event) -> + $form = $(this) + + # Disable the submit button to prevent repeated clicks + $form.find("button").prop "disabled", true + Stripe.createToken $form, stripeResponseHandler + + # Prevent the form from submitting with the default action + false + + return + +stripeResponseHandler = (status, response) -> + $form = $("#payment-form") + if response.error + + # Show the errors on the form + $form.find(".payment-errors").text response.error.message + $form.find("button").prop "disabled", false + else + + # token contains id, last4, and card type + token = response.id + + # Insert the token into the form so it gets submitted to the server + $form.append $("").val(token) + + # and submit + $form.get(0).submit() + return \ No newline at end of file diff --git a/app/assets/javascripts/products.js.coffee b/app/assets/javascripts/products.js.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/app/assets/javascripts/products.js.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/stylesheets/account/orders.css.scss b/app/assets/stylesheets/account/orders.css.scss new file mode 100644 index 0000000..782d07c --- /dev/null +++ b/app/assets/stylesheets/account/orders.css.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the account::orders controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/admin.css.scss b/app/assets/stylesheets/admin.css.scss new file mode 100644 index 0000000..6b55735 --- /dev/null +++ b/app/assets/stylesheets/admin.css.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the admin controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/admin/orders.css.scss b/app/assets/stylesheets/admin/orders.css.scss new file mode 100644 index 0000000..7ed90c7 --- /dev/null +++ b/app/assets/stylesheets/admin/orders.css.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the admin::orders controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/admin/photos.css.scss b/app/assets/stylesheets/admin/photos.css.scss new file mode 100644 index 0000000..e8d0809 --- /dev/null +++ b/app/assets/stylesheets/admin/photos.css.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the admin::photos controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/admin/products.css.scss b/app/assets/stylesheets/admin/products.css.scss new file mode 100644 index 0000000..da8969d --- /dev/null +++ b/app/assets/stylesheets/admin/products.css.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the admin::products controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index a443db3..7870102 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -10,6 +10,23 @@ * defined in the other CSS/SCSS files in this directory. It is generally better to create a new * file per style scope. * - *= require_tree . + *= require_self + *= require jquery-ui/spinner + *= require products + *= require bootstrap_and_customization + *= require flat-ui + * require_tree . */ + + +.group:before, .group:after { + content: ""; + display: table; +} +.group:after { + clear: both; +} +.group { + zoom: 1; /* IE6&7 */ +} \ No newline at end of file diff --git a/app/assets/stylesheets/bootstrap_and_customization.css.scss b/app/assets/stylesheets/bootstrap_and_customization.css.scss new file mode 100644 index 0000000..ffcb5e4 --- /dev/null +++ b/app/assets/stylesheets/bootstrap_and_customization.css.scss @@ -0,0 +1,51 @@ +@import 'bootstrap-sprockets'; +@import 'bootstrap'; + + + + +.center { + text-align: center; +} + +/* why does this css not work? */ +.img-box img { + width: 100%; + height: 261px; +} + + +.carousel-inner .img-box img{ + width: 100%; + height: 261px; +} + + + + +.form-img-box img{ + width: 40px; + height: 40px; + +} + + +.form-inline div,a{ + display: inline-block; +} + + +.pagination ul li.active.li_failed_order > a, .pagination ul li.active.li_failed_order > span{ + background-color: #ec7063; +} + +.pagination ul li.li_failed_order > a:hover, .pagination ul li.li_failed_order > span:hover, .pagination ul li.li_failed_order > a:focus, .pagination ul li.li_failed_order > span:focus{ + background-color: #ec7063; +} + + +div.div-fb{ + padding-top: 20px; +} + + diff --git a/app/assets/stylesheets/card_charges.css.scss b/app/assets/stylesheets/card_charges.css.scss new file mode 100644 index 0000000..24adb84 --- /dev/null +++ b/app/assets/stylesheets/card_charges.css.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the card_charges controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/cart_items.css.scss b/app/assets/stylesheets/cart_items.css.scss new file mode 100644 index 0000000..c8ba380 --- /dev/null +++ b/app/assets/stylesheets/cart_items.css.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the cart_items controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/carts.css.scss b/app/assets/stylesheets/carts.css.scss new file mode 100644 index 0000000..62647c9 --- /dev/null +++ b/app/assets/stylesheets/carts.css.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the carts controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/flat-ui.css b/app/assets/stylesheets/flat-ui.css new file mode 100755 index 0000000..25df1b1 --- /dev/null +++ b/app/assets/stylesheets/flat-ui.css @@ -0,0 +1,6309 @@ +@font-face { + font-family: 'Lato'; + src: url('../fonts/lato/lato-black.eot'); + src: url('../fonts/lato/lato-black.eot?#iefix') format('embedded-opentype'), url('../fonts/lato/lato-black.woff') format('woff'), url('../fonts/lato/lato-black.ttf') format('truetype'), url('../fonts/lato/lato-black.svg#latoblack') format('svg'); + font-weight: 900; + font-style: normal; +} +@font-face { + font-family: 'Lato'; + src: url('../fonts/lato/lato-bold.eot'); + src: url('../fonts/lato/lato-bold.eot?#iefix') format('embedded-opentype'), url('../fonts/lato/lato-bold.woff') format('woff'), url('../fonts/lato/lato-bold.ttf') format('truetype'), url('../fonts/lato/lato-bold.svg#latobold') format('svg'); + font-weight: bold; + font-style: normal; +} +@font-face { + font-family: 'Lato'; + src: url('../fonts/lato/lato-bolditalic.eot'); + src: url('../fonts/lato/lato-bolditalic.eot?#iefix') format('embedded-opentype'), url('../fonts/lato/lato-bolditalic.woff') format('woff'), url('../fonts/lato/lato-bolditalic.ttf') format('truetype'), url('../fonts/lato/lato-bolditalic.svg#latobold-italic') format('svg'); + font-weight: bold; + font-style: italic; +} +@font-face { + font-family: 'Lato'; + src: url('../fonts/lato/lato-italic.eot'); + src: url('../fonts/lato/lato-italic.eot?#iefix') format('embedded-opentype'), url('../fonts/lato/lato-italic.woff') format('woff'), url('../fonts/lato/lato-italic.ttf') format('truetype'), url('../fonts/lato/lato-italic.svg#latoitalic') format('svg'); + font-weight: normal; + font-style: italic; +} +@font-face { + font-family: 'Lato'; + src: url('../fonts/lato/lato-light.eot'); + src: url('../fonts/lato/lato-light.eot?#iefix') format('embedded-opentype'), url('../fonts/lato/lato-light.woff') format('woff'), url('../fonts/lato/lato-light.ttf') format('truetype'), url('../fonts/lato/lato-light.svg#latolight') format('svg'); + font-weight: 300; + font-style: normal; +} +@font-face { + font-family: 'Lato'; + src: url('../fonts/lato/lato-regular.eot'); + src: url('../fonts/lato/lato-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/lato/lato-regular.woff') format('woff'), url('../fonts/lato/lato-regular.ttf') format('truetype'), url('../fonts/lato/lato-regular.svg#latoregular') format('svg'); + font-weight: normal; + font-style: normal; +} +@font-face { + font-family: "Flat-UI-Icons"; + src: url('../fonts/flat-ui-icons-regular.eot'); + src: url('../fonts/flat-ui-icons-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/flat-ui-icons-regular.woff') format('woff'), url('../fonts/flat-ui-icons-regular.ttf') format('truetype'), url('../fonts/flat-ui-icons-regular.svg#flat-ui-icons-regular') format('svg'); + font-weight: normal; + font-style: normal; +} +/* Use the following CSS code if you want to use data attributes for inserting your icons */ +[data-icon]:before { + font-family: 'Flat-UI-Icons'; + content: attr(data-icon); + speak: none; + font-weight: normal; + font-variant: normal; + text-transform: none; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +/* Use the following CSS code if you want to have a class per icon */ +/* +Instead of a list of all class selectors, +you can use the generic selector below, but it's slower: +[class*="fui-"] { +*/ +.fui-triangle-up, +.fui-triangle-up-small, +.fui-triangle-right-large, +.fui-triangle-left-large, +.fui-triangle-down, +.fui-info, +.fui-alert, +.fui-question, +.fui-window, +.fui-windows, +.fui-arrow-right, +.fui-arrow-left, +.fui-loop, +.fui-cmd, +.fui-mic, +.fui-triangle-down-small, +.fui-check-inverted, +.fui-heart, +.fui-location, +.fui-plus, +.fui-check, +.fui-cross, +.fui-list, +.fui-new, +.fui-video, +.fui-photo, +.fui-volume, +.fui-time, +.fui-eye, +.fui-chat, +.fui-home, +.fui-upload, +.fui-search, +.fui-user, +.fui-mail, +.fui-lock, +.fui-power, +.fui-star, +.fui-calendar, +.fui-gear, +.fui-book, +.fui-exit, +.fui-trash, +.fui-folder, +.fui-bubble, +.fui-cross-inverted, +.fui-plus-inverted, +.fui-export, +.fui-radio-unchecked, +.fui-radio-checked, +.fui-checkbox-unchecked, +.fui-checkbox-checked, +.fui-flat, +.fui-calendar-solid, +.fui-star-2, +.fui-credit-card, +.fui-clip, +.fui-link, +.fui-pause, +.fui-play, +.fui-tag, +.fui-document, +.fui-image, +.fui-facebook, +.fui-youtube, +.fui-vimeo, +.fui-twitter, +.fui-stumbleupon, +.fui-spotify, +.fui-skype, +.fui-pinterest, +.fui-path, +.fui-myspace, +.fui-linkedin, +.fui-googleplus, +.fui-dribbble, +.fui-blogger, +.fui-behance, +.fui-list-thumbnailed, +.fui-list-small-thumbnails, +.fui-list-numbered, +.fui-list-large-thumbnails, +.fui-list-columned, +.fui-list-bulleted { + display: inline-block; + font-family: 'Flat-UI-Icons'; + speak: none; + font-style: normal; + font-weight: normal; + font-variant: normal; + text-transform: none; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +.fui-triangle-up:before { + content: "\e000"; +} +.fui-triangle-up-small:before { + content: "\e001"; +} +.fui-triangle-right-large:before { + content: "\e002"; +} +.fui-triangle-left-large:before { + content: "\e003"; +} +.fui-triangle-down:before { + content: "\e004"; +} +.fui-info:before { + content: "\e016"; +} +.fui-alert:before { + content: "\e017"; +} +.fui-question:before { + content: "\e018"; +} +.fui-window:before { + content: "\e019"; +} +.fui-windows:before { + content: "\e01a"; +} +.fui-arrow-right:before { + content: "\e02c"; +} +.fui-arrow-left:before { + content: "\e02d"; +} +.fui-loop:before { + content: "\e02e"; +} +.fui-cmd:before { + content: "\e02f"; +} +.fui-mic:before { + content: "\e030"; +} +.fui-triangle-down-small:before { + content: "\e005"; +} +.fui-check-inverted:before { + content: "\e006"; +} +.fui-heart:before { + content: "\e007"; +} +.fui-location:before { + content: "\e008"; +} +.fui-plus:before { + content: "\e009"; +} +.fui-check:before { + content: "\e00a"; +} +.fui-cross:before { + content: "\e00b"; +} +.fui-list:before { + content: "\e00c"; +} +.fui-new:before { + content: "\e00d"; +} +.fui-video:before { + content: "\e00e"; +} +.fui-photo:before { + content: "\e00f"; +} +.fui-volume:before { + content: "\e010"; +} +.fui-time:before { + content: "\e011"; +} +.fui-eye:before { + content: "\e012"; +} +.fui-chat:before { + content: "\e013"; +} +.fui-home:before { + content: "\e015"; +} +.fui-upload:before { + content: "\e01b"; +} +.fui-search:before { + content: "\e01c"; +} +.fui-user:before { + content: "\e01d"; +} +.fui-mail:before { + content: "\e01e"; +} +.fui-lock:before { + content: "\e01f"; +} +.fui-power:before { + content: "\e020"; +} +.fui-star:before { + content: "\e021"; +} +.fui-calendar:before { + content: "\e023"; +} +.fui-gear:before { + content: "\e024"; +} +.fui-book:before { + content: "\e025"; +} +.fui-exit:before { + content: "\e026"; +} +.fui-trash:before { + content: "\e027"; +} +.fui-folder:before { + content: "\e028"; +} +.fui-bubble:before { + content: "\e029"; +} +.fui-cross-inverted:before { + content: "\e02a"; +} +.fui-plus-inverted:before { + content: "\e031"; +} +.fui-export:before { + content: "\e014"; +} +.fui-radio-unchecked:before { + content: "\e02b"; +} +.fui-radio-checked:before { + content: "\e032"; +} +.fui-checkbox-unchecked:before { + content: "\e033"; +} +.fui-checkbox-checked:before { + content: "\e034"; +} +.fui-flat:before { + content: "\e035"; +} +.fui-calendar-solid:before { + content: "\e022"; +} +.fui-star-2:before { + content: "\e036"; +} +.fui-credit-card:before { + content: "\e037"; +} +.fui-clip:before { + content: "\e038"; +} +.fui-link:before { + content: "\e039"; +} +.fui-pause:before { + content: "\e03b"; +} +.fui-play:before { + content: "\e03c"; +} +.fui-tag:before { + content: "\e03d"; +} +.fui-document:before { + content: "\e03e"; +} +.fui-image:before { + content: "\e03a"; +} +.fui-facebook:before { + content: "\e03f"; +} +.fui-youtube:before { + content: "\e040"; +} +.fui-vimeo:before { + content: "\e041"; +} +.fui-twitter:before { + content: "\e042"; +} +.fui-stumbleupon:before { + content: "\e043"; +} +.fui-spotify:before { + content: "\e044"; +} +.fui-skype:before { + content: "\e045"; +} +.fui-pinterest:before { + content: "\e046"; +} +.fui-path:before { + content: "\e047"; +} +.fui-myspace:before { + content: "\e048"; +} +.fui-linkedin:before { + content: "\e049"; +} +.fui-googleplus:before { + content: "\e04a"; +} +.fui-dribbble:before { + content: "\e04c"; +} +.fui-blogger:before { + content: "\e04d"; +} +.fui-behance:before { + content: "\e04e"; +} +.fui-list-thumbnailed:before { + content: "\e04b"; +} +.fui-list-small-thumbnails:before { + content: "\e04f"; +} +.fui-list-numbered:before { + content: "\e050"; +} +.fui-list-large-thumbnails:before { + content: "\e051"; +} +.fui-list-columned:before { + content: "\e052"; +} +.fui-list-bulleted:before { + content: "\e053"; +} +.dropdown-arrow-inverse { + border-bottom-color: #34495e !important; + border-top-color: #34495e !important; +} +body { + font-family: "Lato", Helvetica, Arial, sans-serif; + font-size: 18px; + line-height: 1.72222; + color: #34495e; + background-color: #ffffff; +} +a { + color: #16a085; + text-decoration: none; + -webkit-transition: 0.25s; + transition: 0.25s; +} +a:hover, +a:focus { + color: #1abc9c; + text-decoration: none; +} +a:focus { + outline: none; +} +.img-rounded { + border-radius: 6px; +} +.img-thumbnail { + padding: 4px; + line-height: 1.72222; + background-color: #ffffff; + border: 2px solid #bdc3c7; + border-radius: 6px; + -webkit-transition: all 0.25s ease-in-out; + transition: all 0.25s ease-in-out; + display: inline-block; + max-width: 100%; + height: auto; +} +.img-comment { + font-size: 15px; + line-height: 1.2; + font-style: italic; + margin: 24px 0; +} +h1, +h2, +h3, +h4, +h5, +h6, +.h1, +.h2, +.h3, +.h4, +.h5, +.h6 { + font-family: inherit; + font-weight: 700; + line-height: 1.1; + color: inherit; +} +h1 small, +h2 small, +h3 small, +h4 small, +h5 small, +h6 small, +.h1 small, +.h2 small, +.h3 small, +.h4 small, +.h5 small, +.h6 small { + color: #e7e9ec; +} +h1, +h2, +h3 { + margin-top: 30px; + margin-bottom: 15px; +} +h4, +h5, +h6 { + margin-top: 15px; + margin-bottom: 15px; +} +h6 { + font-weight: normal; +} +h1, +.h1 { + font-size: 61px; +} +h2, +.h2 { + font-size: 53px; +} +h3, +.h3 { + font-size: 40px; +} +h4, +.h4 { + font-size: 29px; +} +h5, +.h5 { + font-size: 28px; +} +h6, +.h6 { + font-size: 24px; +} +p { + font-size: 18px; + line-height: 1.72222; + margin: 0 0 15px; +} +.lead { + margin-bottom: 30px; + font-size: 28px; + line-height: 1.46428571; + font-weight: 300; +} +@media (min-width: 768px) { + .lead { + font-size: 30.006px; + } +} +small, +.small { + font-size: 83%; + line-height: 2.067; +} +.text-muted { + color: #bdc3c7; +} +.text-inverse { + color: #ffffff; +} +.text-primary { + color: #1abc9c; +} +a.text-primary:hover { + color: #15967d; +} +.text-warning { + color: #f1c40f; +} +a.text-warning:hover { + color: #c19d0c; +} +.text-danger { + color: #e74c3c; +} +a.text-danger:hover { + color: #b93d30; +} +.text-success { + color: #2ecc71; +} +a.text-success:hover { + color: #25a35a; +} +.text-info { + color: #3498db; +} +a.text-info:hover { + color: #2a7aaf; +} +.bg-primary { + color: #ffffff; + background-color: #34495e; +} +a.bg-primary:hover { + background-color: #222f3d; +} +.bg-success { + background-color: #dff0d8; +} +a.bg-success:hover { + background-color: #c1e2b3; +} +.bg-info { + background-color: #d9edf7; +} +a.bg-info:hover { + background-color: #afd9ee; +} +.bg-warning { + background-color: #fcf8e3; +} +a.bg-warning:hover { + background-color: #f7ecb5; +} +.bg-danger { + background-color: #f2dede; +} +a.bg-danger:hover { + background-color: #e4b9b9; +} +.page-header { + padding-bottom: 14px; + margin: 60px 0 30px; + border-bottom: 1px solid #e7e9ec; +} +ul, +ol { + margin-bottom: 15px; +} +dl { + margin-bottom: 30px; +} +dt, +dd { + line-height: 1.72222; +} +@media (min-width: 768px) { + .dl-horizontal dt { + width: 160px; + } + .dl-horizontal dd { + margin-left: 180px; + } +} +abbr[title], +abbr[data-original-title] { + border-bottom: 1px dotted #bdc3c7; +} +blockquote { + border-left: 3px solid #e7e9ec; + padding: 0 0 0 16px; + margin: 0 0 30px; +} +blockquote p { + font-size: 20px; + line-height: 1.55; + font-weight: normal; + margin-bottom: .4em; +} +blockquote small, +blockquote .small { + font-size: 18px; + line-height: 1.72222; + font-style: italic; + color: inherit; +} +blockquote small:before, +blockquote .small:before { + content: ""; +} +blockquote.pull-right { + padding-right: 16px; + padding-left: 0; + border-right: 3px solid #e7e9ec; + border-left: 0; +} +blockquote.pull-right small:after { + content: ""; +} +address { + margin-bottom: 30px; + line-height: 1.72222; +} +code, +kbd, +pre, +samp { + font-family: Monaco, Menlo, Consolas, "Courier New", monospace; +} +code { + padding: 2px 6px; + font-size: 85%; + color: #c7254e; + background-color: #f9f2f4; + border-radius: 4px; +} +kbd { + padding: 2px 6px; + font-size: 85%; + color: #ffffff; + background-color: #34495e; + border-radius: 4px; + box-shadow: none; +} +pre { + padding: 8px; + margin: 0 0 15px; + font-size: 13px; + line-height: 1.72222; + color: inherit; + background-color: #ffffff; + border: 2px solid #e7e9ec; + border-radius: 6px; + white-space: pre; +} +.pre-scrollable { + max-height: 340px; +} +.thumbnail { + display: block; + padding: 4px; + margin-bottom: 5px; + line-height: 1.72222; + background-color: #ffffff; + border: 2px solid #bdc3c7; + border-radius: 6px; + -webkit-transition: all 0.25s ease-in-out; + transition: all 0.25s ease-in-out; +} +.thumbnail > img, +.thumbnail a > img { + display: block; + max-width: 100%; + height: auto; + margin-left: auto; + margin-right: auto; +} +a.thumbnail:hover, +a.thumbnail:focus, +a.thumbnail.active { + border-color: #16a085; +} +.thumbnail .caption { + padding: 9px; + color: #34495e; +} +.btn { + border: none; + font-size: 15px; + font-weight: normal; + line-height: 1.4; + border-radius: 4px; + padding: 10px 15px; + -webkit-font-smoothing: subpixel-antialiased; + -webkit-transition: border .25s linear, color .25s linear, background-color .25s linear; + transition: border .25s linear, color .25s linear, background-color .25s linear; +} +.btn:hover, +.btn:focus { + outline: none; + color: #ffffff; +} +.btn:active, +.btn.active { + outline: none; + -webkit-box-shadow: none; + box-shadow: none; +} +.btn.disabled, +.btn[disabled], +fieldset[disabled] .btn { + background-color: #bdc3c7; + color: rgba(255, 255, 255, 0.75); + opacity: 0.7; + filter: alpha(opacity=70); +} +.btn > [class^="fui-"] { + margin: 0 1px; + position: relative; + line-height: 1; + top: 1px; +} +.btn-xs.btn > [class^="fui-"] { + font-size: 11px; + top: 0; +} +.btn-hg.btn > [class^="fui-"] { + top: 2px; +} +.btn-default { + color: #ffffff; + background-color: #bdc3c7; +} +.btn-default:hover, +.btn-default.hover, +.btn-default:focus, +.btn-default:active, +.btn-default.active, +.open .dropdown-toggle.btn-default { + color: #ffffff; + background-color: #cacfd2; + border-color: #cacfd2; +} +.btn-default:active, +.btn-default.active, +.open .dropdown-toggle.btn-default { + background: #a1a6a9; + border-color: #a1a6a9; +} +.btn-default.disabled, +.btn-default[disabled], +fieldset[disabled] .btn-default, +.btn-default.disabled:hover, +.btn-default[disabled]:hover, +fieldset[disabled] .btn-default:hover, +.btn-default.disabled.hover, +.btn-default[disabled].hover, +fieldset[disabled] .btn-default.hover, +.btn-default.disabled:focus, +.btn-default[disabled]:focus, +fieldset[disabled] .btn-default:focus, +.btn-default.disabled:active, +.btn-default[disabled]:active, +fieldset[disabled] .btn-default:active, +.btn-default.disabled.active, +.btn-default[disabled].active, +fieldset[disabled] .btn-default.active { + background-color: #bdc3c7; + border-color: #bdc3c7; +} +.btn-default .badge { + color: #bdc3c7; + background-color: #ffffff; +} +.btn-primary { + color: #ffffff; + background-color: #1abc9c; +} +.btn-primary:hover, +.btn-primary.hover, +.btn-primary:focus, +.btn-primary:active, +.btn-primary.active, +.open .dropdown-toggle.btn-primary { + color: #ffffff; + background-color: #48c9b0; + border-color: #48c9b0; +} +.btn-primary:active, +.btn-primary.active, +.open .dropdown-toggle.btn-primary { + background: #16a085; + border-color: #16a085; +} +.btn-primary.disabled, +.btn-primary[disabled], +fieldset[disabled] .btn-primary, +.btn-primary.disabled:hover, +.btn-primary[disabled]:hover, +fieldset[disabled] .btn-primary:hover, +.btn-primary.disabled.hover, +.btn-primary[disabled].hover, +fieldset[disabled] .btn-primary.hover, +.btn-primary.disabled:focus, +.btn-primary[disabled]:focus, +fieldset[disabled] .btn-primary:focus, +.btn-primary.disabled:active, +.btn-primary[disabled]:active, +fieldset[disabled] .btn-primary:active, +.btn-primary.disabled.active, +.btn-primary[disabled].active, +fieldset[disabled] .btn-primary.active { + background-color: #1abc9c; + border-color: #1abc9c; +} +.btn-primary .badge { + color: #1abc9c; + background-color: #ffffff; +} +.btn-info { + color: #ffffff; + background-color: #3498db; +} +.btn-info:hover, +.btn-info.hover, +.btn-info:focus, +.btn-info:active, +.btn-info.active, +.open .dropdown-toggle.btn-info { + color: #ffffff; + background-color: #5dade2; + border-color: #5dade2; +} +.btn-info:active, +.btn-info.active, +.open .dropdown-toggle.btn-info { + background: #2c81ba; + border-color: #2c81ba; +} +.btn-info.disabled, +.btn-info[disabled], +fieldset[disabled] .btn-info, +.btn-info.disabled:hover, +.btn-info[disabled]:hover, +fieldset[disabled] .btn-info:hover, +.btn-info.disabled.hover, +.btn-info[disabled].hover, +fieldset[disabled] .btn-info.hover, +.btn-info.disabled:focus, +.btn-info[disabled]:focus, +fieldset[disabled] .btn-info:focus, +.btn-info.disabled:active, +.btn-info[disabled]:active, +fieldset[disabled] .btn-info:active, +.btn-info.disabled.active, +.btn-info[disabled].active, +fieldset[disabled] .btn-info.active { + background-color: #3498db; + border-color: #3498db; +} +.btn-info .badge { + color: #3498db; + background-color: #ffffff; +} +.btn-danger { + color: #ffffff; + background-color: #e74c3c; +} +.btn-danger:hover, +.btn-danger.hover, +.btn-danger:focus, +.btn-danger:active, +.btn-danger.active, +.open .dropdown-toggle.btn-danger { + color: #ffffff; + background-color: #ec7063; + border-color: #ec7063; +} +.btn-danger:active, +.btn-danger.active, +.open .dropdown-toggle.btn-danger { + background: #c44133; + border-color: #c44133; +} +.btn-danger.disabled, +.btn-danger[disabled], +fieldset[disabled] .btn-danger, +.btn-danger.disabled:hover, +.btn-danger[disabled]:hover, +fieldset[disabled] .btn-danger:hover, +.btn-danger.disabled.hover, +.btn-danger[disabled].hover, +fieldset[disabled] .btn-danger.hover, +.btn-danger.disabled:focus, +.btn-danger[disabled]:focus, +fieldset[disabled] .btn-danger:focus, +.btn-danger.disabled:active, +.btn-danger[disabled]:active, +fieldset[disabled] .btn-danger:active, +.btn-danger.disabled.active, +.btn-danger[disabled].active, +fieldset[disabled] .btn-danger.active { + background-color: #e74c3c; + border-color: #e74c3c; +} +.btn-danger .badge { + color: #e74c3c; + background-color: #ffffff; +} +.btn-success { + color: #ffffff; + background-color: #2ecc71; +} +.btn-success:hover, +.btn-success.hover, +.btn-success:focus, +.btn-success:active, +.btn-success.active, +.open .dropdown-toggle.btn-success { + color: #ffffff; + background-color: #58d68d; + border-color: #58d68d; +} +.btn-success:active, +.btn-success.active, +.open .dropdown-toggle.btn-success { + background: #27ad60; + border-color: #27ad60; +} +.btn-success.disabled, +.btn-success[disabled], +fieldset[disabled] .btn-success, +.btn-success.disabled:hover, +.btn-success[disabled]:hover, +fieldset[disabled] .btn-success:hover, +.btn-success.disabled.hover, +.btn-success[disabled].hover, +fieldset[disabled] .btn-success.hover, +.btn-success.disabled:focus, +.btn-success[disabled]:focus, +fieldset[disabled] .btn-success:focus, +.btn-success.disabled:active, +.btn-success[disabled]:active, +fieldset[disabled] .btn-success:active, +.btn-success.disabled.active, +.btn-success[disabled].active, +fieldset[disabled] .btn-success.active { + background-color: #2ecc71; + border-color: #2ecc71; +} +.btn-success .badge { + color: #2ecc71; + background-color: #ffffff; +} +.btn-warning { + color: #ffffff; + background-color: #f1c40f; +} +.btn-warning:hover, +.btn-warning.hover, +.btn-warning:focus, +.btn-warning:active, +.btn-warning.active, +.open .dropdown-toggle.btn-warning { + color: #ffffff; + background-color: #f5d313; + border-color: #f5d313; +} +.btn-warning:active, +.btn-warning.active, +.open .dropdown-toggle.btn-warning { + background: #cda70d; + border-color: #cda70d; +} +.btn-warning.disabled, +.btn-warning[disabled], +fieldset[disabled] .btn-warning, +.btn-warning.disabled:hover, +.btn-warning[disabled]:hover, +fieldset[disabled] .btn-warning:hover, +.btn-warning.disabled.hover, +.btn-warning[disabled].hover, +fieldset[disabled] .btn-warning.hover, +.btn-warning.disabled:focus, +.btn-warning[disabled]:focus, +fieldset[disabled] .btn-warning:focus, +.btn-warning.disabled:active, +.btn-warning[disabled]:active, +fieldset[disabled] .btn-warning:active, +.btn-warning.disabled.active, +.btn-warning[disabled].active, +fieldset[disabled] .btn-warning.active { + background-color: #f1c40f; + border-color: #f1c40f; +} +.btn-warning .badge { + color: #f1c40f; + background-color: #ffffff; +} +.btn-inverse { + color: #ffffff; + background-color: #34495e; +} +.btn-inverse:hover, +.btn-inverse.hover, +.btn-inverse:focus, +.btn-inverse:active, +.btn-inverse.active, +.open .dropdown-toggle.btn-inverse { + color: #ffffff; + background-color: #415b76; + border-color: #415b76; +} +.btn-inverse:active, +.btn-inverse.active, +.open .dropdown-toggle.btn-inverse { + background: #2c3e50; + border-color: #2c3e50; +} +.btn-inverse.disabled, +.btn-inverse[disabled], +fieldset[disabled] .btn-inverse, +.btn-inverse.disabled:hover, +.btn-inverse[disabled]:hover, +fieldset[disabled] .btn-inverse:hover, +.btn-inverse.disabled.hover, +.btn-inverse[disabled].hover, +fieldset[disabled] .btn-inverse.hover, +.btn-inverse.disabled:focus, +.btn-inverse[disabled]:focus, +fieldset[disabled] .btn-inverse:focus, +.btn-inverse.disabled:active, +.btn-inverse[disabled]:active, +fieldset[disabled] .btn-inverse:active, +.btn-inverse.disabled.active, +.btn-inverse[disabled].active, +fieldset[disabled] .btn-inverse.active { + background-color: #34495e; + border-color: #34495e; +} +.btn-inverse .badge { + color: #34495e; + background-color: #ffffff; +} +.btn-embossed { + -webkit-box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15); + box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15); +} +.btn-embossed.active, +.btn-embossed:active { + -webkit-box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.15); + box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.15); +} +.btn-wide { + min-width: 140px; + padding-left: 30px; + padding-right: 30px; +} +.btn-link { + color: #16a085; +} +.btn-link:hover, +.btn-link:focus { + color: #1abc9c; + text-decoration: underline; + background-color: transparent; +} +.btn-link[disabled]:hover, +fieldset[disabled] .btn-link:hover, +.btn-link[disabled]:focus, +fieldset[disabled] .btn-link:focus { + color: #bdc3c7; + text-decoration: none; +} +.btn-hg { + padding: 13px 20px; + font-size: 22px; + line-height: 1.227; + border-radius: 6px; +} +.btn-lg { + padding: 10px 19px; + font-size: 17px; + line-height: 1.471; + border-radius: 6px; +} +.btn-sm { + padding: 9px 13px; + font-size: 13px; + line-height: 1.385; + border-radius: 4px; +} +.btn-xs { + padding: 6px 9px; + font-size: 12px; + line-height: 1.083; + border-radius: 3px; +} +.btn-tip { + font-weight: 300; + padding-left: 10px; + font-size: 92%; +} +.btn-block { + white-space: normal; +} +[class*="btn-social-"] { + padding: 10px 15px; + font-size: 13px; + line-height: 1.077; + border-radius: 4px; +} +.btn-social-pinterest { + color: #ffffff; + background-color: #cb2028; +} +.btn-social-pinterest:hover, +.btn-social-pinterest:focus { + background-color: #d54d53; +} +.btn-social-pinterest:active, +.btn-social-pinterest.active { + background-color: #ad1b22; +} +.btn-social-linkedin { + color: #ffffff; + background-color: #0072b5; +} +.btn-social-linkedin:hover, +.btn-social-linkedin:focus { + background-color: #338ec4; +} +.btn-social-linkedin:active, +.btn-social-linkedin.active { + background-color: #00619a; +} +.btn-social-stumbleupon { + color: #ffffff; + background-color: #ed4a13; +} +.btn-social-stumbleupon:hover, +.btn-social-stumbleupon:focus { + background-color: #f16e42; +} +.btn-social-stumbleupon:active, +.btn-social-stumbleupon.active { + background-color: #c93f10; +} +.btn-social-googleplus { + color: #ffffff; + background-color: #2d2d2d; +} +.btn-social-googleplus:hover, +.btn-social-googleplus:focus { + background-color: #575757; +} +.btn-social-googleplus:active, +.btn-social-googleplus.active { + background-color: #262626; +} +.btn-social-facebook { + color: #ffffff; + background-color: #2f4b93; +} +.btn-social-facebook:hover, +.btn-social-facebook:focus { + background-color: #596fa9; +} +.btn-social-facebook:active, +.btn-social-facebook.active { + background-color: #28407d; +} +.btn-social-twitter { + color: #ffffff; + background-color: #00bdef; +} +.btn-social-twitter:hover, +.btn-social-twitter:focus { + background-color: #33caf2; +} +.btn-social-twitter:active, +.btn-social-twitter.active { + background-color: #00a1cb; +} +.btn-default .caret { + border-top-color: #ffffff; +} +.btn-primary .caret, +.btn-success .caret, +.btn-warning .caret, +.btn-danger .caret, +.btn-info .caret { + border-top-color: #ffffff; +} +.dropup .btn-default .caret { + border-bottom-color: #ffffff; +} +.dropup .btn-primary .caret, +.dropup .btn-success .caret, +.dropup .btn-warning .caret, +.dropup .btn-danger .caret, +.dropup .btn-info .caret { + border-bottom-color: #ffffff; +} +.btn-group-xs > .btn { + padding: 6px 9px; + font-size: 12px; + line-height: 1.083; + border-radius: 3px; +} +.btn-group-sm > .btn { + padding: 9px 13px; + font-size: 13px; + line-height: 1.385; + border-radius: 4px; +} +.btn-group-lg > .btn { + padding: 10px 19px; + font-size: 17px; + line-height: 1.471; + border-radius: 6px; +} +.btn-group-gh > .btn { + padding: 13px 20px; + font-size: 22px; + line-height: 1.227; + border-radius: 6px; +} +.btn-group > .btn + .btn { + margin-left: 0; +} +.btn-group > .btn + .dropdown-toggle { + border-left: 2px solid rgba(52, 73, 94, 0.15); + padding-left: 12px; + padding-right: 12px; +} +.btn-group > .btn + .dropdown-toggle .caret { + margin-left: 3px; + margin-right: 3px; +} +.btn-group > .btn.btn-gh + .dropdown-toggle .caret { + margin-left: 7px; + margin-right: 7px; +} +.btn-group > .btn.btn-sm + .dropdown-toggle .caret { + margin-left: 0; + margin-right: 0; +} +.dropdown-toggle .caret { + margin-left: 8px; +} +.btn-group > .btn, +.btn-group > .dropdown-menu, +.btn-group > .popover { + font-weight: 400; +} +.btn-group:focus .dropdown-toggle { + outline: none; + -webkit-transition: 0.25s; + transition: 0.25s; +} +.btn-group.open .dropdown-toggle { + color: rgba(255, 255, 255, 0.75); + -webkit-box-shadow: none; + box-shadow: none; +} +.btn-toolbar .btn.active { + color: #ffffff; +} +.btn-toolbar .btn > [class^="fui-"] { + font-size: 16px; + margin: 0 1px; +} +.caret { + border-width: 8px 6px; + border-bottom-color: #34495e; + border-top-color: #34495e; + border-style: solid; + border-bottom-style: none; + -webkit-transition: 0.25s; + transition: 0.25s; + -webkit-transform: scale(1.001); + -ms-transform: scale(1.001); + transform: scale(1.001); +} +.dropup .caret, +.dropup .btn-lg .caret, +.navbar-fixed-bottom .dropdown .caret { + border-bottom-width: 8px; +} +.btn-lg .caret { + border-top-width: 8px; + border-right-width: 6px; + border-left-width: 6px; +} +.select { + display: inline-block; + margin-bottom: 10px; +} +[class*="span"] > .select[class*="span"] { + margin-left: 0; +} +.select[class*="span"] .btn { + width: 100%; +} +.select.select-block { + display: block; + float: none; + margin-left: 0; + width: auto; +} +.select.select-block:before, +.select.select-block:after { + content: " "; + /* 1 */ + + display: table; + /* 2 */ + +} +.select.select-block:after { + clear: both; +} +.select.select-block .btn { + width: 100%; +} +.select.select-block .dropdown-menu { + width: 100%; +} +.select .btn { + width: 220px; +} +.select .btn.btn-hg .filter-option { + left: 20px; + right: 40px; + top: 13px; +} +.select .btn.btn-hg .caret { + right: 20px; +} +.select .btn.btn-lg .filter-option { + left: 18px; + right: 38px; +} +.select .btn.btn-sm .filter-option { + left: 13px; + right: 33px; +} +.select .btn.btn-sm .caret { + right: 13px; +} +.select .btn.btn-xs .filter-option { + left: 13px; + right: 33px; + top: 5px; +} +.select .btn.btn-xs .caret { + right: 13px; +} +.select .btn .filter-option { + height: 26px; + left: 13px; + overflow: hidden; + position: absolute; + right: 33px; + text-align: left; + top: 10px; +} +.select .btn .caret { + position: absolute; + right: 16px; + top: 50%; + margin-top: -3px; +} +.select .btn .dropdown-toggle { + border-radius: 6px; +} +.select .btn .dropdown-menu { + min-width: 100%; +} +.select .btn .dropdown-menu dt { + cursor: default; + display: block; + padding: 3px 20px; +} +.select .btn .dropdown-menu li:not(.disabled) > a:hover small { + color: rgba(255, 255, 255, 0.004); +} +.select .btn .dropdown-menu li > a { + min-height: 20px; +} +.select .btn .dropdown-menu li > a.opt { + padding-left: 35px; +} +.select .btn .dropdown-menu li small { + padding-left: .5em; +} +.select .btn .dropdown-menu li > dt small { + font-weight: normal; +} +.select .btn > .disabled, +.select .btn .dropdown-menu li.disabled > a { + cursor: default; +} +.select .caret { + border-bottom-color: #ffffff; + border-top-color: #ffffff; +} +legend { + display: block; + width: 100%; + padding: 0; + margin-bottom: 15px; + font-size: 24px; + line-height: inherit; + color: inherit; + border-bottom: none; +} +textarea { + font-size: 20px; + line-height: 24px; + padding: 5px 11px; +} +input[type="search"] { + -webkit-appearance: none !important; +} +label { + font-weight: normal; + font-size: 15px; + line-height: 2.4; +} +.form-control:-moz-placeholder { + color: #b2bcc5; +} +.form-control::-moz-placeholder { + color: #b2bcc5; + opacity: 1; +} +.form-control:-ms-input-placeholder { + color: #b2bcc5; +} +.form-control::-webkit-input-placeholder { + color: #b2bcc5; +} +.form-control.placeholder { + color: #b2bcc5; +} +.form-control { + border: 2px solid #bdc3c7; + color: #34495e; + font-family: "Lato", Helvetica, Arial, sans-serif; + font-size: 15px; + line-height: 1.467; + padding: 8px 12px; + height: 42px; + -webkit-appearance: none; + border-radius: 6px; + -webkit-box-shadow: none; + box-shadow: none; + -webkit-transition: border .25s linear, color .25s linear, background-color .25s linear; + transition: border .25s linear, color .25s linear, background-color .25s linear; +} +.form-group.focus .form-control, +.form-control:focus { + border-color: #1abc9c; + outline: 0; + -webkit-box-shadow: none; + box-shadow: none; +} +.form-control[disabled], +.form-control[readonly], +fieldset[disabled] .form-control { + background-color: #f4f6f6; + border-color: #d5dbdb; + color: #d5dbdb; + cursor: default; + opacity: 0.7; + filter: alpha(opacity=70); +} +.form-control.flat { + border-color: transparent; +} +.form-control.flat:hover { + border-color: #bdc3c7; +} +.form-control.flat:focus { + border-color: #1abc9c; +} +.input-sm { + height: 35px; + padding: 6px 10px; + font-size: 13px; + line-height: 1.462; + border-radius: 6px; +} +select.input-sm { + height: 35px; + line-height: 35px; +} +textarea.input-sm, +select[multiple].input-sm { + height: auto; +} +.input-lg { + height: 45px; + padding: 10px 15px; + font-size: 17px; + line-height: 1.235; + border-radius: 6px; +} +select.input-lg { + height: 45px; + line-height: 45px; +} +textarea.input-lg, +select[multiple].input-lg { + height: auto; +} +.input-hg { + height: 53px; + padding: 10px 16px; + font-size: 22px; + line-height: 1.318; + border-radius: 6px; +} +select.input-hg { + height: 53px; + line-height: 53px; +} +textarea.input-hg, +select[multiple].input-hg { + height: auto; +} +.has-warning .help-block, +.has-warning .control-label, +.has-warning .radio, +.has-warning .checkbox, +.has-warning .radio-inline, +.has-warning .checkbox-inline { + color: #f1c40f; +} +.has-warning .form-control { + color: #f1c40f; + border-color: #f1c40f; + -webkit-box-shadow: none; + box-shadow: none; +} +.has-warning .form-control:-moz-placeholder { + color: #f1c40f; +} +.has-warning .form-control::-moz-placeholder { + color: #f1c40f; + opacity: 1; +} +.has-warning .form-control:-ms-input-placeholder { + color: #f1c40f; +} +.has-warning .form-control::-webkit-input-placeholder { + color: #f1c40f; +} +.has-warning .form-control.placeholder { + color: #f1c40f; +} +.has-warning .form-control:focus { + border-color: #f1c40f; + -webkit-box-shadow: none; + box-shadow: none; +} +.has-warning .input-group-addon { + color: #f1c40f; + border-color: #f1c40f; + background-color: #ffffff; +} +.has-error .help-block, +.has-error .control-label, +.has-error .radio, +.has-error .checkbox, +.has-error .radio-inline, +.has-error .checkbox-inline { + color: #e74c3c; +} +.has-error .form-control { + color: #e74c3c; + border-color: #e74c3c; + -webkit-box-shadow: none; + box-shadow: none; +} +.has-error .form-control:-moz-placeholder { + color: #e74c3c; +} +.has-error .form-control::-moz-placeholder { + color: #e74c3c; + opacity: 1; +} +.has-error .form-control:-ms-input-placeholder { + color: #e74c3c; +} +.has-error .form-control::-webkit-input-placeholder { + color: #e74c3c; +} +.has-error .form-control.placeholder { + color: #e74c3c; +} +.has-error .form-control:focus { + border-color: #e74c3c; + -webkit-box-shadow: none; + box-shadow: none; +} +.has-error .input-group-addon { + color: #e74c3c; + border-color: #e74c3c; + background-color: #ffffff; +} +.has-success .help-block, +.has-success .control-label, +.has-success .radio, +.has-success .checkbox, +.has-success .radio-inline, +.has-success .checkbox-inline { + color: #2ecc71; +} +.has-success .form-control { + color: #2ecc71; + border-color: #2ecc71; + -webkit-box-shadow: none; + box-shadow: none; +} +.has-success .form-control:-moz-placeholder { + color: #2ecc71; +} +.has-success .form-control::-moz-placeholder { + color: #2ecc71; + opacity: 1; +} +.has-success .form-control:-ms-input-placeholder { + color: #2ecc71; +} +.has-success .form-control::-webkit-input-placeholder { + color: #2ecc71; +} +.has-success .form-control.placeholder { + color: #2ecc71; +} +.has-success .form-control:focus { + border-color: #2ecc71; + -webkit-box-shadow: none; + box-shadow: none; +} +.has-success .input-group-addon { + color: #2ecc71; + border-color: #2ecc71; + background-color: #ffffff; +} +.help-block { + font-size: 15px; + margin-bottom: 5px; + color: inherit; +} +.form-group { + position: relative; + margin-bottom: 20px; +} +.form-horizontal .control-label, +.form-horizontal .radio, +.form-horizontal .checkbox, +.form-horizontal .radio-inline, +.form-horizontal .checkbox-inline { + margin-top: 0; + margin-bottom: 0; + padding-top: 6px; +} +.form-horizontal .form-group { + margin-left: -15px; + margin-right: -15px; +} +.form-horizontal .form-group:before, +.form-horizontal .form-group:after { + content: " "; + /* 1 */ + + display: table; + /* 2 */ + +} +.form-horizontal .form-group:after { + clear: both; +} +.form-horizontal .form-control-static { + padding-top: 6px; +} +.form-group { + position: relative; +} +.form-control + .input-icon { + position: absolute; + top: 2px; + right: 2px; + line-height: 37px; + vertical-align: middle; + font-size: 20px; + color: #b2bcc5; + background-color: #ffffff; + padding: 0 12px 0 0; + border-radius: 6px; +} +.input-hg + .input-icon { + line-height: 49px; + padding: 0 16px 0 0; +} +.input-lg + .input-icon { + line-height: 41px; + padding: 0 15px 0 0; +} +.input-sm + .input-icon { + font-size: 18px; + line-height: 30px; + padding: 0 10px 0 0; +} +.has-success .input-icon { + color: #2ecc71; +} +.has-warning .input-icon { + color: #f1c40f; +} +.has-error .input-icon { + color: #e74c3c; +} +.form-control[disabled] + .input-icon, +.form-control[readonly] + .input-icon, +fieldset[disabled] .form-control + .input-icon, +.form-control.disabled + .input-icon { + color: #d5dbdb; + background-color: transparent; + opacity: 0.7; + filter: alpha(opacity=70); +} +.input-group-hg > .form-control, +.input-group-hg > .input-group-addon, +.input-group-hg > .input-group-btn > .btn { + height: 53px; + padding: 10px 16px; + font-size: 22px; + line-height: 1.318; + border-radius: 6px; +} +select.input-group-hg > .form-control, +select.input-group-hg > .input-group-addon, +select.input-group-hg > .input-group-btn > .btn { + height: 53px; + line-height: 53px; +} +textarea.input-group-hg > .form-control, +textarea.input-group-hg > .input-group-addon, +textarea.input-group-hg > .input-group-btn > .btn, +select[multiple].input-group-hg > .form-control, +select[multiple].input-group-hg > .input-group-addon, +select[multiple].input-group-hg > .input-group-btn > .btn { + height: auto; +} +.input-group-lg > .form-control, +.input-group-lg > .input-group-addon, +.input-group-lg > .input-group-btn > .btn { + height: 45px; + padding: 10px 15px; + font-size: 17px; + line-height: 1.235; + border-radius: 6px; +} +select.input-group-lg > .form-control, +select.input-group-lg > .input-group-addon, +select.input-group-lg > .input-group-btn > .btn { + height: 45px; + line-height: 45px; +} +textarea.input-group-lg > .form-control, +textarea.input-group-lg > .input-group-addon, +textarea.input-group-lg > .input-group-btn > .btn, +select[multiple].input-group-lg > .form-control, +select[multiple].input-group-lg > .input-group-addon, +select[multiple].input-group-lg > .input-group-btn > .btn { + height: auto; +} +.input-group-sm > .form-control, +.input-group-sm > .input-group-addon, +.input-group-sm > .input-group-btn > .btn { + height: 35px; + padding: 6px 10px; + font-size: 13px; + line-height: 1.462; + border-radius: 6px; +} +select.input-group-sm > .form-control, +select.input-group-sm > .input-group-addon, +select.input-group-sm > .input-group-btn > .btn { + height: 35px; + line-height: 35px; +} +textarea.input-group-sm > .form-control, +textarea.input-group-sm > .input-group-addon, +textarea.input-group-sm > .input-group-btn > .btn, +select[multiple].input-group-sm > .form-control, +select[multiple].input-group-sm > .input-group-addon, +select[multiple].input-group-sm > .input-group-btn > .btn { + height: auto; +} +.input-group-addon { + padding: 10px 12px; + font-size: 15px; + color: #ffffff; + text-align: center; + background-color: #bdc3c7; + border: 1px solid #bdc3c7; + border-radius: 6px; + -webkit-transition: border .25s linear, color .25s linear, background-color .25s linear; + transition: border .25s linear, color .25s linear, background-color .25s linear; +} +.input-group-hg .input-group-addon, +.input-group-lg .input-group-addon, +.input-group-sm .input-group-addon { + line-height: 1; +} +.input-group .form-control:first-child, +.input-group-addon:first-child, +.input-group-btn:first-child > .btn, +.input-group-btn:first-child > .dropdown-toggle, +.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) { + border-bottom-right-radius: 0; + border-top-right-radius: 0; +} +.input-group .form-control:last-child, +.input-group-addon:last-child, +.input-group-btn:last-child > .btn, +.input-group-btn:last-child > .dropdown-toggle, +.input-group-btn:first-child > .btn:not(:first-child) { + border-bottom-left-radius: 0; + border-top-left-radius: 0; +} +.form-group.focus .input-group-addon, +.input-group.focus .input-group-addon { + background-color: #1abc9c; + border-color: #1abc9c; +} +.form-group.focus .input-group-btn > .btn-default + .btn-default, +.input-group.focus .input-group-btn > .btn-default + .btn-default { + border-left-color: #16a085; +} +.form-group.focus .input-group-btn .btn, +.input-group.focus .input-group-btn .btn { + border-color: #1abc9c; + background-color: #ffffff; + color: #1abc9c; +} +.form-group.focus .input-group-btn .btn-default, +.input-group.focus .input-group-btn .btn-default { + color: #ffffff; + background-color: #1abc9c; +} +.form-group.focus .input-group-btn .btn-default:hover, +.input-group.focus .input-group-btn .btn-default:hover, +.form-group.focus .input-group-btn .btn-default.hover, +.input-group.focus .input-group-btn .btn-default.hover, +.form-group.focus .input-group-btn .btn-default:focus, +.input-group.focus .input-group-btn .btn-default:focus, +.form-group.focus .input-group-btn .btn-default:active, +.input-group.focus .input-group-btn .btn-default:active, +.form-group.focus .input-group-btn .btn-default.active, +.input-group.focus .input-group-btn .btn-default.active, +.open .dropdown-toggle.form-group.focus .input-group-btn .btn-default, +.open .dropdown-toggle.input-group.focus .input-group-btn .btn-default { + color: #ffffff; + background-color: #48c9b0; + border-color: #48c9b0; +} +.form-group.focus .input-group-btn .btn-default:active, +.input-group.focus .input-group-btn .btn-default:active, +.form-group.focus .input-group-btn .btn-default.active, +.input-group.focus .input-group-btn .btn-default.active, +.open .dropdown-toggle.form-group.focus .input-group-btn .btn-default, +.open .dropdown-toggle.input-group.focus .input-group-btn .btn-default { + background: #16a085; + border-color: #16a085; +} +.form-group.focus .input-group-btn .btn-default.disabled, +.input-group.focus .input-group-btn .btn-default.disabled, +.form-group.focus .input-group-btn .btn-default[disabled], +.input-group.focus .input-group-btn .btn-default[disabled], +fieldset[disabled] .form-group.focus .input-group-btn .btn-default, +fieldset[disabled] .input-group.focus .input-group-btn .btn-default, +.form-group.focus .input-group-btn .btn-default.disabled:hover, +.input-group.focus .input-group-btn .btn-default.disabled:hover, +.form-group.focus .input-group-btn .btn-default[disabled]:hover, +.input-group.focus .input-group-btn .btn-default[disabled]:hover, +fieldset[disabled] .form-group.focus .input-group-btn .btn-default:hover, +fieldset[disabled] .input-group.focus .input-group-btn .btn-default:hover, +.form-group.focus .input-group-btn .btn-default.disabled.hover, +.input-group.focus .input-group-btn .btn-default.disabled.hover, +.form-group.focus .input-group-btn .btn-default[disabled].hover, +.input-group.focus .input-group-btn .btn-default[disabled].hover, +fieldset[disabled] .form-group.focus .input-group-btn .btn-default.hover, +fieldset[disabled] .input-group.focus .input-group-btn .btn-default.hover, +.form-group.focus .input-group-btn .btn-default.disabled:focus, +.input-group.focus .input-group-btn .btn-default.disabled:focus, +.form-group.focus .input-group-btn .btn-default[disabled]:focus, +.input-group.focus .input-group-btn .btn-default[disabled]:focus, +fieldset[disabled] .form-group.focus .input-group-btn .btn-default:focus, +fieldset[disabled] .input-group.focus .input-group-btn .btn-default:focus, +.form-group.focus .input-group-btn .btn-default.disabled:active, +.input-group.focus .input-group-btn .btn-default.disabled:active, +.form-group.focus .input-group-btn .btn-default[disabled]:active, +.input-group.focus .input-group-btn .btn-default[disabled]:active, +fieldset[disabled] .form-group.focus .input-group-btn .btn-default:active, +fieldset[disabled] .input-group.focus .input-group-btn .btn-default:active, +.form-group.focus .input-group-btn .btn-default.disabled.active, +.input-group.focus .input-group-btn .btn-default.disabled.active, +.form-group.focus .input-group-btn .btn-default[disabled].active, +.input-group.focus .input-group-btn .btn-default[disabled].active, +fieldset[disabled] .form-group.focus .input-group-btn .btn-default.active, +fieldset[disabled] .input-group.focus .input-group-btn .btn-default.active { + background-color: #1abc9c; + border-color: #1abc9c; +} +.form-group.focus .input-group-btn .btn-default .badge, +.input-group.focus .input-group-btn .btn-default .badge { + color: #1abc9c; + background-color: #ffffff; +} +.input-group-btn .btn { + background-color: #ffffff; + border: 2px solid #bdc3c7; + color: #bdc3c7; + line-height: 18px; +} +.input-group-btn .btn-default { + color: #ffffff; + background-color: #bdc3c7; +} +.input-group-btn .btn-default:hover, +.input-group-btn .btn-default.hover, +.input-group-btn .btn-default:focus, +.input-group-btn .btn-default:active, +.input-group-btn .btn-default.active, +.open .dropdown-toggle.input-group-btn .btn-default { + color: #ffffff; + background-color: #cacfd2; + border-color: #cacfd2; +} +.input-group-btn .btn-default:active, +.input-group-btn .btn-default.active, +.open .dropdown-toggle.input-group-btn .btn-default { + background: #a1a6a9; + border-color: #a1a6a9; +} +.input-group-btn .btn-default.disabled, +.input-group-btn .btn-default[disabled], +fieldset[disabled] .input-group-btn .btn-default, +.input-group-btn .btn-default.disabled:hover, +.input-group-btn .btn-default[disabled]:hover, +fieldset[disabled] .input-group-btn .btn-default:hover, +.input-group-btn .btn-default.disabled.hover, +.input-group-btn .btn-default[disabled].hover, +fieldset[disabled] .input-group-btn .btn-default.hover, +.input-group-btn .btn-default.disabled:focus, +.input-group-btn .btn-default[disabled]:focus, +fieldset[disabled] .input-group-btn .btn-default:focus, +.input-group-btn .btn-default.disabled:active, +.input-group-btn .btn-default[disabled]:active, +fieldset[disabled] .input-group-btn .btn-default:active, +.input-group-btn .btn-default.disabled.active, +.input-group-btn .btn-default[disabled].active, +fieldset[disabled] .input-group-btn .btn-default.active { + background-color: #bdc3c7; + border-color: #bdc3c7; +} +.input-group-btn .btn-default .badge { + color: #bdc3c7; + background-color: #ffffff; +} +.input-group-hg .input-group-btn .btn { + line-height: 31px; +} +.input-group-lg .input-group-btn .btn { + line-height: 21px; +} +.input-group-sm .input-group-btn .btn { + line-height: 19px; +} +.input-group-btn:first-child > .btn { + border-right-width: 0; + margin-right: -2px; +} +.input-group-btn:last-child > .btn { + border-left-width: 0; + margin-left: -2px; +} +.input-group-btn > .btn-default + .btn-default { + border-left: 2px solid #bdc3c7; +} +.input-group-btn > .btn:first-child + .btn .caret { + margin-left: 0; +} +.input-group-rounded .input-group-btn + .form-control, +.input-group-rounded .input-group-btn:last-child .btn { + border-bottom-right-radius: 20px; + border-top-right-radius: 20px; +} +.input-group-hg.input-group-rounded .input-group-btn + .form-control, +.input-group-hg.input-group-rounded .input-group-btn:last-child .btn { + border-bottom-right-radius: 27px; + border-top-right-radius: 27px; +} +.input-group-lg.input-group-rounded .input-group-btn + .form-control, +.input-group-lg.input-group-rounded .input-group-btn:last-child .btn { + border-bottom-right-radius: 25px; + border-top-right-radius: 25px; +} +.input-group-rounded .form-control:first-child, +.input-group-rounded .input-group-btn:first-child .btn { + border-bottom-left-radius: 20px; + border-top-left-radius: 20px; +} +.input-group-hg.input-group-rounded .form-control:first-child, +.input-group-hg.input-group-rounded .input-group-btn:first-child .btn { + border-bottom-left-radius: 27px; + border-top-left-radius: 27px; +} +.input-group-lg.input-group-rounded .form-control:first-child, +.input-group-lg.input-group-rounded .input-group-btn:first-child .btn { + border-bottom-left-radius: 25px; + border-top-left-radius: 25px; +} +.input-group-rounded .input-group-btn + .form-control { + padding-left: 0; +} +.btn-file { + overflow: hidden; + position: relative; +} +.btn-file > input[type="file"] { + position: absolute; + top: 0; + right: 0; + left: 0; + bottom: 0; + margin: 0; + opacity: 0; + filter: alpha(opacity=0); + font-size: 23px; + direction: ltr; + cursor: pointer; + width: 100%; +} +.fileinput { + margin-bottom: 9px; + display: block; +} +.fileinput .fileinput-filename { + font-size: 15px; +} +.fileinput .uneditable-input { + display: inline-block; + margin-bottom: 0px; + vertical-align: middle; + cursor: text; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +.fileinput .uneditable-input [class^="fui-"] { + margin-right: .3em; +} +.fileinput .fileinput-preview { + cursor: pointer; +} +.fileinput .thumbnail { + overflow: hidden; + display: inline-block; +} +.fileinput-exists .fileinput-new, +.fileinput-new .fileinput-exists { + display: none; +} +.fileinput-inline .fileinput-controls { + display: inline; +} +.fileinput-new .input-group .btn-file { + border-radius: 0 4px 4px 0; +} +.fileinput-new .input-group .btn-file.btn-xs, +.fileinput-new .input-group .btn-file.btn-sm { + border-radius: 0 3px 3px 0; +} +.fileinput-new .input-group .btn-file.btn-lg { + border-radius: 0 6px 6px 0; +} +.form-group.has-warning .fileinput .uneditable-input { + color: #f1c40f; + border-color: #faebcc; +} +.form-group.has-warning .fileinput .fileinput-preview { + color: #f1c40f; +} +.form-group.has-warning .fileinput .thumbnail { + border-color: #faebcc; +} +.form-group.has-error .fileinput .uneditable-input { + color: #e74c3c; + border-color: #ebccd1; +} +.form-group.has-error .fileinput .fileinput-preview { + color: #e74c3c; +} +.form-group.has-error .fileinput .thumbnail { + border-color: #ebccd1; +} +.form-group.has-success .fileinput .uneditable-input { + color: #2ecc71; + border-color: #d6e9c6; +} +.form-group.has-success .fileinput .fileinput-preview { + color: #2ecc71; +} +.form-group.has-success .fileinput .thumbnail { + border-color: #d6e9c6; +} +.input-group-addon:not(:first-child) { + border-left: 0; +} +.checkbox, +.radio { + margin-bottom: 12px; + padding-left: 32px; + position: relative; + -webkit-transition: color 0.25s linear; + transition: color 0.25s linear; + font-size: 14px; + line-height: 1.5; +} +.checkbox input, +.radio input { + outline: none !important; + display: none; +} +.checkbox .icons, +.radio .icons { + color: #bdc3c7; + display: block; + height: 20px; + left: 0; + position: absolute; + top: 0; + width: 20px; + text-align: center; + line-height: 21px; + font-size: 20px; + cursor: pointer; + -webkit-transition: color 0.25s linear; + transition: color 0.25s linear; +} +.checkbox .icons .first-icon, +.radio .icons .first-icon, +.checkbox .icons .second-icon, +.radio .icons .second-icon { + display: inline-table; + position: absolute; + left: 0; + top: 0; + background-color: transparent; + margin: 0; + opacity: 1; + filter: alpha(opacity=100); +} +.checkbox .icons .second-icon, +.radio .icons .second-icon { + opacity: 0; + filter: alpha(opacity=0); +} +.checkbox:hover, +.radio:hover { + -webkit-transition: color 0.25s linear; + transition: color 0.25s linear; +} +.checkbox:hover .first-icon, +.radio:hover .first-icon { + opacity: 0; + filter: alpha(opacity=0); +} +.checkbox:hover .second-icon, +.radio:hover .second-icon { + opacity: 1; + filter: alpha(opacity=100); +} +.checkbox.checked, +.radio.checked { + color: #1abc9c; +} +.checkbox.checked .first-icon, +.radio.checked .first-icon { + opacity: 0; + filter: alpha(opacity=0); +} +.checkbox.checked .second-icon, +.radio.checked .second-icon { + opacity: 1; + filter: alpha(opacity=100); + color: #1abc9c; + -webkit-transition: color 0.25s linear; + transition: color 0.25s linear; +} +.checkbox.disabled, +.radio.disabled { + cursor: default; + color: #e6e8ea; +} +.checkbox.disabled .icons, +.radio.disabled .icons { + color: #e6e8ea; +} +.checkbox.disabled .first-icon, +.radio.disabled .first-icon { + opacity: 1; + filter: alpha(opacity=100); +} +.checkbox.disabled .second-icon, +.radio.disabled .second-icon { + opacity: 0; + filter: alpha(opacity=0); +} +.checkbox.disabled.checked .icons, +.radio.disabled.checked .icons { + color: #e6e8ea; +} +.checkbox.disabled.checked .first-icon, +.radio.disabled.checked .first-icon { + opacity: 0; + filter: alpha(opacity=0); +} +.checkbox.disabled.checked .second-icon, +.radio.disabled.checked .second-icon { + opacity: 1; + filter: alpha(opacity=100); + color: #e6e8ea; +} +.checkbox.primary .icons, +.radio.primary .icons { + color: #34495e; +} +.checkbox.primary.checked, +.radio.primary.checked { + color: #1abc9c; +} +.checkbox.primary.checked .icons, +.radio.primary.checked .icons { + color: #1abc9c; +} +.checkbox.primary.disabled, +.radio.primary.disabled { + cursor: default; + color: #bdc3c7; +} +.checkbox.primary.disabled .icons, +.radio.primary.disabled .icons { + color: #bdc3c7; +} +.checkbox.primary.disabled.checked .icons, +.radio.primary.disabled.checked .icons { + color: #bdc3c7; +} +.radio + .radio, +.checkbox + .checkbox { + margin-top: 10px; +} +.tagsinput { + background: white; + border: 2px solid #ebedef; + border-radius: 6px; + height: 100px; + margin-bottom: 18px; + padding: 6px 1px 1px 6px; + overflow-y: auto; + text-align: left; +} +.tagsinput .tag { + border-radius: 4px; + background-color: #ebedef; + color: #7b8996; + font-size: 14px; + cursor: pointer; + display: inline-block; + margin-right: 5px; + margin-bottom: 5px; + overflow: hidden; + line-height: 15px; + padding: 6px 13px 8px 19px; + position: relative; + vertical-align: middle; + -webkit-transition: 0.25s linear; + transition: 0.25s linear; +} +.tagsinput .tag:hover { + background-color: #16a085; + color: #ffffff; + padding-left: 12px; + padding-right: 20px; +} +.tagsinput .tag:hover .tagsinput-remove-link { + color: #ffffff; + opacity: 1; + display: block\9; +} +.tagsinput input { + background: transparent; + border: none; + color: #34495e; + font-family: "Lato", Helvetica, Arial, sans-serif; + font-size: 14px; + margin: 0px; + padding: 0 0 0 5px; + outline: none !important; + margin: 6px 5px 0 0; + vertical-align: top; + width: 12px; +} +.tagsinput-remove-link { + bottom: 0; + color: #ffffff; + cursor: pointer; + font-size: 12px; + opacity: 0; + padding: 7px 7px 5px 0; + position: absolute; + right: 0; + text-align: right; + text-decoration: none; + top: 0; + width: 100%; + z-index: 2; + display: none\9; +} +.tagsinput-remove-link:before { + color: #ffffff; + content: "\e00b"; + font-family: "Flat-UI-Icons"; +} +.tagsinput-add-container { + vertical-align: middle; + display: inline-block; +} +.tagsinput-add { + background-color: #d6dbdf; + border-radius: 3px; + color: #ffffff; + cursor: pointer; + display: inline-block; + font-size: 14px; + line-height: 1; + margin-bottom: 5px; + padding: 7px 9px; + vertical-align: top; + -webkit-transition: 0.25s linear; + transition: 0.25s linear; +} +.tagsinput-add:hover { + background-color: #1abc9c; +} +.tagsinput-add:before { + content: "\e009"; + font-family: "Flat-UI-Icons"; +} +.tags_clear { + clear: both; + width: 100%; + height: 0px; +} +.not_valid { + background: #fbd8db !important; + color: #90111a !important; + margin-left: 5px !important; +} +.tagsinput-primary { + border-color: #1abc9c; +} +.tagsinput-primary .tag { + background-color: #1abc9c; + color: #ffffff; +} +.twitter-typeahead { + width: 100%; +} +.twitter-typeahead .tt-query, +.twitter-typeahead .tt-hint { + border: 2px solid #bdc3c7; + color: #34495e; + font-family: "Lato", Helvetica, Arial, sans-serif; + font-size: 15px; + line-height: 1.467; + padding: 8px 12px; + height: 42px; + -webkit-appearance: none; + border-radius: 6px; + -webkit-box-shadow: none; + box-shadow: none; + -webkit-transition: border .25s linear, color .25s linear, background-color .25s linear; + transition: border .25s linear, color .25s linear, background-color .25s linear; +} +.twitter-typeahead .tt-query:-moz-placeholder, +.twitter-typeahead .tt-hint:-moz-placeholder { + color: #b2bcc5; +} +.twitter-typeahead .tt-query::-moz-placeholder, +.twitter-typeahead .tt-hint::-moz-placeholder { + color: #b2bcc5; + opacity: 1; +} +.twitter-typeahead .tt-query:-ms-input-placeholder, +.twitter-typeahead .tt-hint:-ms-input-placeholder { + color: #b2bcc5; +} +.twitter-typeahead .tt-query::-webkit-input-placeholder, +.twitter-typeahead .tt-hint::-webkit-input-placeholder { + color: #b2bcc5; +} +.twitter-typeahead .tt-query.placeholder, +.twitter-typeahead .tt-hint.placeholder { + color: #b2bcc5; +} +.form-group.focus .twitter-typeahead .tt-query, +.form-group.focus .twitter-typeahead .tt-hint, +.twitter-typeahead .tt-query:focus, +.twitter-typeahead .tt-hint:focus { + border-color: #1abc9c; + outline: 0; + -webkit-box-shadow: none; + box-shadow: none; +} +.twitter-typeahead .tt-query[disabled], +.twitter-typeahead .tt-hint[disabled], +.twitter-typeahead .tt-query[readonly], +.twitter-typeahead .tt-hint[readonly], +fieldset[disabled] .twitter-typeahead .tt-query, +fieldset[disabled] .twitter-typeahead .tt-hint { + background-color: #f4f6f6; + border-color: #d5dbdb; + color: #d5dbdb; + cursor: default; + opacity: 0.7; + filter: alpha(opacity=70); +} +.twitter-typeahead .tt-query.flat, +.twitter-typeahead .tt-hint.flat { + border-color: transparent; +} +.twitter-typeahead .tt-query.flat:hover, +.twitter-typeahead .tt-hint.flat:hover { + border-color: #bdc3c7; +} +.twitter-typeahead .tt-query.flat:focus, +.twitter-typeahead .tt-hint.flat:focus { + border-color: #1abc9c; +} +.twitter-typeahead .tt-query + .input-icon, +.twitter-typeahead .tt-hint + .input-icon { + position: absolute; + top: 2px; + right: 2px; + line-height: 37px; + vertical-align: middle; + font-size: 20px; + color: #b2bcc5; + background-color: #ffffff; + padding: 0 12px 0 0; + border-radius: 6px; +} +.twitter-typeahead .tt-dropdown-menu { + width: 100%; + margin-top: 5px; + border: 2px solid #1abc9c; + padding: 5px 0; + background-color: #ffffff; + border-radius: 6px; +} +.twitter-typeahead .tt-suggestion p { + padding: 6px 14px; + font-size: 14px; + line-height: 1.429; + margin: 0; +} +.twitter-typeahead .tt-suggestion:first-child p, +.twitter-typeahead .tt-suggestion:last-child p { + padding: 6px 14px; +} +.twitter-typeahead .tt-suggestion.tt-is-under-cursor { + color: #fff; + background-color: #16a085; +} +.progress { + background: #ebedef; + border-radius: 32px; + height: 12px; + -webkit-box-shadow: none; + box-shadow: none; +} +.progress-bar { + background: #1abc9c; + line-height: 12px; + -webkit-box-shadow: none; + box-shadow: none; +} +.progress-bar-success { + background-color: #2ecc71; +} +.progress-bar-warning { + background-color: #f1c40f; +} +.progress-bar-danger { + background-color: #e74c3c; +} +.progress-bar-info { + background-color: #3498db; +} +.ui-slider { + background: #ebedef; + border-radius: 32px; + height: 12px; + -webkit-box-shadow: none; + box-shadow: none; + margin-bottom: 20px; + position: relative; + cursor: pointer; +} +.ui-slider-handle { + background-color: #16a085; + border-radius: 50%; + cursor: pointer; + height: 18px; + position: absolute; + width: 18px; + z-index: 2; + -webkit-transition: background 0.25s; + transition: background 0.25s; +} +.ui-slider-handle:hover, +.ui-slider-handle:focus { + background-color: #48c9b0; + outline: none; +} +.ui-slider-handle:active { + background-color: #16a085; +} +.ui-slider-range { + background-color: #1abc9c; + display: block; + height: 100%; + position: absolute; + z-index: 1; +} +.ui-slider-segment { + background-color: #d9dbdd; + border-radius: 50%; + height: 6px; + width: 6px; +} +.ui-slider-value { + float: right; + font-size: 13px; + margin-top: 12px; +} +.ui-slider-value.first { + clear: left; + float: left; +} +.ui-slider-horizontal .ui-slider-handle { + margin-left: -9px; + top: -3px; +} +.ui-slider-horizontal .ui-slider-handle[style*="100"] { + margin-left: -15px; +} +.ui-slider-horizontal .ui-slider-range { + border-radius: 30px 0 0 30px; +} +.ui-slider-horizontal .ui-slider-segment { + float: left; + margin: 3px -6px 0 0; +} +.ui-slider-vertical { + width: 12px; +} +.ui-slider-vertical .ui-slider-handle { + margin-left: -3px; + margin-bottom: -11px; + top: auto; +} +.ui-slider-vertical .ui-slider-range { + width: 100%; + bottom: 0; + border-radius: 0 0 30px 30px; +} +.ui-slider-vertical .ui-slider-segment { + position: absolute; + right: 3px; +} +.ui-spinner { + display: inline-block; + overflow: hidden; + padding: 0 37px 0 0; + position: relative; + vertical-align: middle; +} +@media (max-width: 768px) { + .ui-spinner { + display: block; + } +} +.ui-spinner .ui-button-text { + display: block; + line-height: normal; +} +.ui-spinner.focus .ui-spinner-input { + color: #1abc9c; + border-color: #1abc9c; +} +.ui-spinner.focus .ui-spinner-button { + background-color: #1abc9c; +} +.ui-spinner.focus .ui-spinner-button:hover { + background-color: #16a085; +} +.ui-spinner.focus .ui-spinner-up { + border-bottom-color: #16a085; +} +.ui-spinner-input { + width: 55px; + border-radius: 6px 0 0 6px; + text-align: center; + padding: 6px 12px; + border-right-width: 0 !important; + font-weight: bold; + font-size: 20px; + line-height: 1.3; +} +.ui-spinner-input:-moz-placeholder { + color: #718191; +} +.ui-spinner-input::-moz-placeholder { + color: #718191; + opacity: 1; +} +.ui-spinner-input:-ms-input-placeholder { + color: #718191; +} +.ui-spinner-input::-webkit-input-placeholder { + color: #718191; +} +.ui-spinner-input.placeholder { + color: #718191; +} +@media (max-width: 768px) { + .ui-spinner-input { + width: 100%; + } +} +.ui-spinner-input.input-hg + .ui-spinner-button { + height: 28px; + line-height: 25px; +} +.ui-spinner-input.input-hg + .ui-spinner-button + .ui-spinner-button { + height: 25px; + line-height: 25px; +} +.ui-spinner-input.input-lg + .ui-spinner-button { + height: 24px; + line-height: 21px; +} +.ui-spinner-input.input-lg + .ui-spinner-button + .ui-spinner-button { + height: 21px; + line-height: 21px; +} +.ui-spinner-input.input-sm { + font-size: 18px; + line-height: 1; +} +.ui-spinner-input.input-sm + .ui-spinner-button { + height: 19px; + line-height: 1; +} +.ui-spinner-input.input-sm + .ui-spinner-button + .ui-spinner-button { + height: 17px; + line-height: 1; +} +.input-group-addon + .ui-spinner .ui-spinner-input { + border-bottom-left-radius: 0; + border-top-left-radius: 0; +} +.ui-spinner-button { + cursor: default; + display: block; + font-size: .5em; + line-height: 19px; + height: 22px; + margin: 0; + overflow: hidden; + padding: 0; + position: absolute; + right: 0; + text-align: center; + width: 37px; + cursor: pointer; + color: #ffffff; + text-decoration: none; + background-color: #bdc3c7; + outline: none; +} +.ui-spinner-button:hover { + background-color: #d1d5d8; + color: #e8f8f5; +} +.ui-spinner-button .ui-icon { + font-size: 0; +} +.ui-spinner-button .ui-icon:before { + content: "\e001"; + font-family: "Flat-UI-Icons"; + font-size: 16px; + -webkit-font-smoothing: antialiased; +} +.ui-spinner-up { + border-bottom: 2px solid #d1d5d8; + top: 0; + border-radius: 0 6px 0 0; +} +.ui-spinner-down { + bottom: 0; + height: 20px; + border-radius: 0 0 6px 0; +} +.ui-spinner-down .ui-icon:before { + content: "\e005"; +} +.ui-datepicker { + width: 264px; + background-color: #ffffff; + display: none; + margin: 10px 0 0 0; + border: 7px solid #1abc9c; + border-radius: 6px; + -webkit-box-shadow: -14px 14px 0 rgba(52, 73, 94, 0.06); + box-shadow: -14px 14px 0 rgba(52, 73, 94, 0.06); +} +.ui-datepicker .ui-datepicker-header { + background-color: #1abc9c; + color: #ffffff; + cursor: default; + margin: -7px -7px 2px; + position: relative; + border-radius: 6px 6px 0 0; +} +.ui-datepicker .ui-datepicker-prev, +.ui-datepicker .ui-datepicker-next { + position: absolute; + top: 0; + width: 52px; + height: 44px; + color: #ffffff; + text-align: center; + cursor: pointer; +} +.ui-datepicker .ui-datepicker-prev:hover, +.ui-datepicker .ui-datepicker-next:hover { + background-color: #48c9b0; +} +.ui-datepicker .ui-datepicker-prev:active, +.ui-datepicker .ui-datepicker-next:active { + background-color: #16a085; +} +.ui-datepicker .ui-datepicker-prev.ui-state-disabled, +.ui-datepicker .ui-datepicker-next.ui-state-disabled { + background-color: transparent; + color: rgba(255, 255, 255, 0.75); + cursor: default; + opacity: 0.7; + filter: alpha(opacity=70); +} +.ui-datepicker .ui-datepicker-prev { + left: 0; + border-right: 2px solid #5fd0ba; + border-radius: 6px 0 0 0; +} +.ui-datepicker .ui-datepicker-next { + right: 0; + border-left: 2px solid #5fd0ba; + border-radius: 0 6px 0 0; +} +.ui-datepicker .ui-datepicker-title { + margin: 0 52px; + line-height: 44px; + text-align: center; + font-size: 15px; +} +.ui-datepicker .ui-datepicker-prev span, +.ui-datepicker .ui-datepicker-next span { + display: block; + position: absolute; + left: 50%; + margin-left: -5px; + top: 50%; + margin-top: -6px; + text-indent: -9999px; + width: 0; + height: 0; + content: ""; +} +.ui-datepicker .ui-icon-circle-triangle-w { + border: inset transparent; + border-width: 7px 12px 7px 0; + border-right-color: #ffffff; +} +.ui-datepicker .ui-icon-circle-triangle-e { + border: outset transparent; + border-width: 7px 0 7px 12px; + border-left-color: #ffffff; +} +.ui-datepicker table { + font-size: 14px; + margin: 0 0 3px; + width: 100%; +} +.ui-datepicker th { + min-width: 34px; + height: 30px; + text-align: center; + font-weight: bold; + border: 0; + padding: 1px; + vertical-align: middle; +} +.ui-datepicker td { + border: 0; + padding: 1px; + text-align: center; + vertical-align: middle; +} +.ui-datepicker td span, +.ui-datepicker td a { + display: block; + text-decoration: none; + color: #34495e; + height: 30px; + line-height: 30px; + min-width: 34px; +} +.ui-datepicker td a { + border-radius: 6px; +} +.ui-datepicker td a:hover { + background-color: #d7dbdd; + color: #34495e; +} +.ui-datepicker .ui-state-active { + background-color: #1abc9c; + color: #ffffff; +} +.ui-datepicker .ui-datepicker-other-month a { + color: #c2c8cf; +} +.ui-datepicker select { + font-size: 1em; + margin: 1px 0; +} +.ui-datepicker select.ui-datepicker-month-year { + width: 100%; +} +.ui-datepicker select.ui-datepicker-month, +.ui-datepicker select.ui-datepicker-year { + width: 49%; +} +.ui-datepicker .ui-datepicker-buttonpane { + background-image: none; + margin: .7em 0 0 0; + padding: 0 .2em; + border-left: 0; + border-right: 0; + border-bottom: 0; +} +.ui-datepicker .ui-datepicker-buttonpane button { + float: right; + margin: .5em .2em .4em; + cursor: pointer; + padding: .2em .6em .3em .6em; + width: auto; + overflow: visible; +} +.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { + float: left; +} +.ui-datepicker:before { + content: ""; + border-color: transparent transparent #1abc9c; + border-style: solid; + border-width: 0 6px 6px; + height: 0; + margin-top: 0; + opacity: 1; + position: absolute; + left: 12px; + top: -13px; + width: 0; + z-index: 10; +} +.ui-datepicker.ui-datepicker-multi { + width: auto; +} +.ui-datepicker-multi .ui-datepicker-group { + float: left; +} +.ui-datepicker-multi .ui-datepicker-group table { + width: 95%; + margin: 0 auto .4em; +} +.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header, +.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { + border-left-width: 0; +} +.ui-datepicker-multi .ui-datepicker-buttonpane { + clear: left; +} +.ui-datepicker-multi-2 .ui-datepicker-group { + width: 50%; +} +.ui-datepicker-multi-3 .ui-datepicker-group { + width: 33.3%; +} +.ui-datepicker-multi-4 .ui-datepicker-group { + width: 25%; +} +.ui-datepicker-row-break { + clear: both; + width: 100%; + font-size: 0; +} +.pager { + background-color: #34495e; + border-radius: 6px; + color: #ffffff; + font-size: 16px; + font-weight: 700; + display: inline-block; +} +.pager li:first-child > a, +.pager li:first-child > span { + border-left: none; + border-radius: 6px 0 0 6px; +} +.pager li > a, +.pager li > span { + background: none; + border: none; + border-left: 2px solid #2c3e50; + color: #ffffff; + padding: 9px 15px 10px; + text-decoration: none; + white-space: nowrap; + border-radius: 0 6px 6px 0; + line-height: 1.313; +} +.pager li > a:hover, +.pager li > span:hover, +.pager li > a:focus, +.pager li > span:focus { + background-color: #2c3e50; +} +.pager li > a:active, +.pager li > span:active { + background-color: #2c3e50; +} +.pager li > a [class*="fui-"] + span, +.pager li > span [class*="fui-"] + span { + margin-left: 8px; +} +.pager li > a span + [class*="fui-"], +.pager li > span span + [class*="fui-"] { + margin-left: 8px; +} +.pagination { + position: relative; +} +@media (max-width: 767px) { + .pagination { + display: block; + } +} +.pagination ul { + background: #d6dbdf; + color: #ffffff; + padding: 0; + margin: 0; + display: inline-block; + border-radius: 6px; +} +@media (max-width: 767px) { + .pagination ul { + height: 41px; + padding: 0 55px 0 52px; + overflow: auto; + white-space: nowrap; + border-radius: 6px; + } +} +.pagination ul li { + display: inline-block; + margin-right: -3px; + vertical-align: middle; +} +.pagination ul li.active > a, +.pagination ul li.active > span { + background-color: #1abc9c; + color: #ffffff; +} +.pagination ul li.active.previous > a, +.pagination ul li.active.next > a, +.pagination ul li.active.previous > span, +.pagination ul li.active.next > span { + margin: 0; +} +.pagination ul li.active.previous > a, +.pagination ul li.active.next > a, +.pagination ul li.active.previous > span, +.pagination ul li.active.next > span, +.pagination ul li.active.previous > a:hover, +.pagination ul li.active.next > a:hover, +.pagination ul li.active.previous > span:hover, +.pagination ul li.active.next > span:hover, +.pagination ul li.active.previous > a:focus, +.pagination ul li.active.next > a:focus, +.pagination ul li.active.previous > span:focus, +.pagination ul li.active.next > span:focus { + background-color: #1abc9c; + color: #ffffff; +} +.pagination ul li:first-child > a, +.pagination ul li:first-child > span { + border-radius: 6px 0 0 6px; + border-left: none; +} +.pagination ul li:first-child.previous + li > a, +.pagination ul li:first-child.previous + li > span { + border-left-width: 0; +} +.pagination ul li:last-child { + margin-right: 0; +} +.pagination ul li:last-child > a, +.pagination ul li:last-child > span, +.pagination ul li:last-child > a:hover, +.pagination ul li:last-child > span:hover, +.pagination ul li:last-child > a:focus, +.pagination ul li:last-child > span:focus { + border-radius: 0 6px 6px 0; +} +.pagination ul li.previous > a, +.pagination ul li.next > a, +.pagination ul li.previous > span, +.pagination ul li.next > span { + border-right: 2px solid #e4e7ea; + font-size: 16px; + min-width: auto; + padding: 12px 17px; +} +.pagination ul li.next > a, +.pagination ul li.next > span { + border-right: none; +} +@media (max-width: 767px) { + .pagination ul li.next, + .pagination ul li.previous { + background-color: #d6dbdf; + position: absolute; + right: 0; + top: 0; + z-index: 10; + border-radius: 0 6px 6px 0; + } + .pagination ul li.previous { + left: 0; + right: auto; + border-radius: 6px 0 0 6px; + } +} +.pagination ul li > a, +.pagination ul li > span { + display: inline-block; + background: transparent; + border: none; + border-left: 2px solid #e4e7ea; + color: #ffffff; + font-size: 14px; + line-height: 16px; + min-height: 41px; + min-width: 41px; + outline: none; + padding: 12px 10px; + text-align: center; + -webkit-transition: 0.25s ease-out; + transition: 0.25s ease-out; +} +.pagination ul li > a:hover, +.pagination ul li > span:hover, +.pagination ul li > a:focus, +.pagination ul li > span:focus { + background-color: #1abc9c; +} +.pagination ul li > a:active, +.pagination ul li > span:active { + background-color: #1abc9c; + color: #ffffff; +} +.pagination > .btn.previous, +.pagination > .btn.next { + margin-right: 8px; + font-size: 14px; + line-height: 1.429; + padding-left: 23px; + padding-right: 23px; +} +.pagination > .btn.previous [class*="fui-"], +.pagination > .btn.next [class*="fui-"] { + font-size: 16px; + margin-left: -2px; + margin-top: -2px; +} +.pagination > .btn.next { + margin-left: 8px; + margin-right: 0; +} +.pagination > .btn.next [class*="fui-"] { + margin-right: -2px; + margin-left: 4px; +} +@media (max-width: 767px) { + .pagination > .btn { + display: block; + margin: 0; + width: 50%; + } + .pagination > .btn:first-child { + border-bottom: 2px solid #dfe2e5; + border-radius: 6px 0 0; + } + .pagination > .btn:first-child.btn-primary { + border-bottom-color: #48c9b0; + } + .pagination > .btn:first-child.btn-danger { + border-bottom-color: #ec7063; + } + .pagination > .btn:first-child.btn-warning { + border-bottom-color: #f4d03f; + } + .pagination > .btn:first-child.btn-success { + border-bottom-color: #58d68d; + } + .pagination > .btn:first-child.btn-info { + border-bottom-color: #5dade2; + } + .pagination > .btn:first-child.btn-inverse { + border-bottom-color: #5d6d7e; + } + .pagination > .btn:first-child > [class*="fui"] { + margin-left: -20px; + } + .pagination > .btn + ul { + padding: 0; + text-align: center; + border-radius: 0 0 6px 6px; + } + .pagination > .btn + ul + .btn { + border-bottom: 2px solid #dfe2e5; + position: absolute; + right: 0; + top: 0; + border-radius: 0 6px 0 0; + } + .pagination > .btn + ul + .btn.btn-primary { + border-bottom-color: #48c9b0; + } + .pagination > .btn + ul + .btn.btn-danger { + border-bottom-color: #ec7063; + } + .pagination > .btn + ul + .btn.btn-warning { + border-bottom-color: #f4d03f; + } + .pagination > .btn + ul + .btn.btn-success { + border-bottom-color: #58d68d; + } + .pagination > .btn + ul + .btn.btn-info { + border-bottom-color: #5dade2; + } + .pagination > .btn + ul + .btn.btn-inverse { + border-bottom-color: #5d6d7e; + } + .pagination > .btn + ul + .btn > [class*="fui"] { + margin-right: -20px; + } + .pagination ul { + display: block; + } + .pagination ul > li > a { + border-radius: 0; + } +} +.pagination-danger ul { + background-color: #e74c3c; +} +.pagination-danger ul li.previous > a { + border-right-color: #ef897e; +} +.pagination-danger ul li > a, +.pagination-danger ul li > span { + border-left-color: #ef897e; +} +.pagination-danger ul li > a:hover, +.pagination-danger ul li > span:hover, +.pagination-danger ul li > a:focus, +.pagination-danger ul li > span:focus { + background-color: #ec7063; +} +.pagination-danger ul li > a:active, +.pagination-danger ul li > span:active { + background-color: #c44133; +} +.pagination-danger ul li.active > a, +.pagination-danger ul li.active > span { + background-color: #c44133; +} +.pagination-danger ul li.pagination-dropdown.dropup .dropdown-arrow { + border-top-color: #e74c3c; +} +.pagination-success ul { + background-color: #2ecc71; +} +.pagination-success ul li.previous > a { + border-right-color: #75dda1; +} +.pagination-success ul li > a, +.pagination-success ul li > span { + border-left-color: #75dda1; +} +.pagination-success ul li > a:hover, +.pagination-success ul li > span:hover, +.pagination-success ul li > a:focus, +.pagination-success ul li > span:focus { + background-color: #58d68d; +} +.pagination-success ul li > a:active, +.pagination-success ul li > span:active { + background-color: #27ad60; +} +.pagination-success ul li.active > a, +.pagination-success ul li.active > span { + background-color: #27ad60; +} +.pagination-success ul li.pagination-dropdown.dropup .dropdown-arrow { + border-top-color: #2ecc71; +} +.pagination-warning ul { + background-color: #f1c40f; +} +.pagination-warning ul li.previous > a { + border-right-color: #f6d861; +} +.pagination-warning ul li > a, +.pagination-warning ul li > span { + border-left-color: #f6d861; +} +.pagination-warning ul li > a:hover, +.pagination-warning ul li > span:hover, +.pagination-warning ul li > a:focus, +.pagination-warning ul li > span:focus { + background-color: #f5d313; +} +.pagination-warning ul li > a:active, +.pagination-warning ul li > span:active { + background-color: #cda70d; +} +.pagination-warning ul li.active > a, +.pagination-warning ul li.active > span { + background-color: #cda70d; +} +.pagination-warning ul li.pagination-dropdown.dropup .dropdown-arrow { + border-top-color: #f1c40f; +} +.pagination-info ul { + background-color: #3498db; +} +.pagination-info ul li.previous > a { + border-right-color: #79bbe7; +} +.pagination-info ul li > a, +.pagination-info ul li > span { + border-left-color: #79bbe7; +} +.pagination-info ul li > a:hover, +.pagination-info ul li > span:hover, +.pagination-info ul li > a:focus, +.pagination-info ul li > span:focus { + background-color: #5dade2; +} +.pagination-info ul li > a:active, +.pagination-info ul li > span:active { + background-color: #2c81ba; +} +.pagination-info ul li.active > a, +.pagination-info ul li.active > span { + background-color: #2c81ba; +} +.pagination-info ul li.pagination-dropdown.dropup .dropdown-arrow { + border-top-color: #3498db; +} +.pagination-inverse ul { + background-color: #34495e; +} +.pagination-inverse ul li.previous > a { + border-right-color: #798795; +} +.pagination-inverse ul li > a, +.pagination-inverse ul li > span { + border-left-color: #798795; +} +.pagination-inverse ul li > a:hover, +.pagination-inverse ul li > span:hover, +.pagination-inverse ul li > a:focus, +.pagination-inverse ul li > span:focus { + background-color: #415b76; +} +.pagination-inverse ul li > a:active, +.pagination-inverse ul li > span:active { + background-color: #2c3e50; +} +.pagination-inverse ul li.active > a, +.pagination-inverse ul li.active > span { + background-color: #2c3e50; +} +.pagination-inverse ul li.pagination-dropdown.dropup .dropdown-arrow { + border-top-color: #34495e; +} +.pagination-minimal > ul > li:first-child { + border-radius: 6px 0 0 6px; +} +.pagination-minimal > ul > li:first-child.previous + li > a, +.pagination-minimal > ul > li:first-child.previous + li > span { + border-left-width: 5px; +} +.pagination-minimal > ul > li:last-child { + border-radius: 0 6px 6px 0; +} +.pagination-minimal > ul > li.previous > a, +.pagination-minimal > ul > li.next > a, +.pagination-minimal > ul > li.previous > span, +.pagination-minimal > ul > li.next > span { + background: transparent; + border: none; + border-right: 2px solid #e4e7ea; + margin: 0 9px 0 0; + padding: 12px 17px; + border-radius: 6px 0 0 6px; +} +.pagination-minimal > ul > li.previous > a, +.pagination-minimal > ul > li.next > a, +.pagination-minimal > ul > li.previous > span, +.pagination-minimal > ul > li.next > span, +.pagination-minimal > ul > li.previous > a:hover, +.pagination-minimal > ul > li.next > a:hover, +.pagination-minimal > ul > li.previous > span:hover, +.pagination-minimal > ul > li.next > span:hover, +.pagination-minimal > ul > li.previous > a:focus, +.pagination-minimal > ul > li.next > a:focus, +.pagination-minimal > ul > li.previous > span:focus, +.pagination-minimal > ul > li.next > span:focus { + border-color: #e4e7ea !important; +} +@media (max-width: 767px) { + .pagination-minimal > ul > li.previous > a, + .pagination-minimal > ul > li.next > a, + .pagination-minimal > ul > li.previous > span, + .pagination-minimal > ul > li.next > span { + margin-right: 0; + } +} +.pagination-minimal > ul > li.next { + margin-left: 9px; +} +.pagination-minimal > ul > li.next > a, +.pagination-minimal > ul > li.next > span { + border-left: 2px solid #e4e7ea; + border-right: none; + margin: 0; + border-radius: 0 6px 6px 0; +} +.pagination-minimal > ul > li.active > a, +.pagination-minimal > ul > li.active > span { + background-color: #ffffff; + border-color: #ffffff; + border-width: 2px !important; + color: #d6dbdf; + margin: 10px 5px 9px; +} +.pagination-minimal > ul > li.active > a:hover, +.pagination-minimal > ul > li.active > span:hover, +.pagination-minimal > ul > li.active > a:focus, +.pagination-minimal > ul > li.active > span:focus { + background-color: #ffffff; + border-color: #ffffff; + color: #d6dbdf; +} +.pagination-minimal > ul > li.active.previous, +.pagination-minimal > ul > li.active.next { + border-color: #e4e7ea; +} +.pagination-minimal > ul > li.active.previous { + margin-right: 6px; +} +.pagination-minimal > ul > li > a, +.pagination-minimal > ul > li > span { + background: #ffffff; + border: 5px solid #d6dbdf; + color: #ffffff; + line-height: 16px; + margin: 7px 2px 6px; + min-width: 0; + min-height: 16px; + padding: 0 4px; + border-radius: 50px; + -webkit-transition: background .2s ease-out, border-color 0s ease-out, color .2s ease-out; + transition: background .2s ease-out, border-color 0s ease-out, color .2s ease-out; +} +.pagination-minimal > ul > li > a:hover, +.pagination-minimal > ul > li > span:hover, +.pagination-minimal > ul > li > a:focus, +.pagination-minimal > ul > li > span:focus { + background-color: #1abc9c; + border-color: #1abc9c; + color: #ffffff; + -webkit-transition: background .2s ease-out, border-color .2s ease-out, color .2s ease-out; + transition: background .2s ease-out, border-color .2s ease-out, color .2s ease-out; +} +.pagination-minimal > ul > li > a:active, +.pagination-minimal > ul > li > span:active { + background-color: #16a085; + border-color: #16a085; +} +.pagination-plain { + font-size: 16px; + font-weight: 700; + list-style-type: none; + margin: 0 0 20px; + padding: 0; +} +.pagination-plain > li { + display: inline; +} +.pagination-plain > li.previous { + padding-right: 23px; +} +.pagination-plain > li.next { + padding-left: 20px; +} +.pagination-plain > li.active > a { + color: #d3d7da; +} +.pagination-plain > li > a { + padding: 0 5px; +} +@media (max-width: 767px) { + .pagination-plain { + height: 50px; + overflow: hidden; + text-align: center; + } + .pagination-plain > li.previous { + display: block; + margin-bottom: 10px; + text-align: left; + width: 50%; + } + .pagination-plain > li.next { + float: right; + margin-top: -50px; + text-align: right; + width: 50%; + } +} +.pagination-dropdown ul { + min-width: 67px; + width: auto; + left: 50%; + margin-left: -34px; +} +.pagination-dropdown ul li { + display: block; + margin-right: 0; +} +.pagination-dropdown ul li:first-child > a, +.pagination-dropdown ul li:first-child > span { + border-radius: 6px 6px 0 0; +} +.pagination-dropdown ul li:last-child > a, +.pagination-dropdown ul li:last-child > span { + border-radius: 0 0 6px 6px !important; +} +.pagination-dropdown ul li > a, +.pagination-dropdown ul li > span { + border-left: none; + display: block; + float: none; + padding: 8px 10px 7px; + text-align: center; + min-height: 0; +} +.pagination-dropdown.dropup { + position: relative; +} +.pagination-dropdown.dropup .dropdown-arrow { + border-top-color: #d6dbdf; +} +.tooltip { + font-size: 14px; + line-height: 1.286; +} +.tooltip.in { + opacity: 1; +} +.tooltip.top { + padding-bottom: 9px; +} +.tooltip.top .tooltip-arrow { + border-top-color: #34495e; + border-width: 9px 9px 0; + bottom: 0; + margin-left: -9px; +} +.tooltip.right .tooltip-arrow { + border-right-color: #34495e; + border-width: 9px 9px 9px 0; + margin-top: -9px; + left: -3px; +} +.tooltip.bottom { + padding-top: 8px; +} +.tooltip.bottom .tooltip-arrow { + border-bottom-color: #34495e; + border-width: 0 9px 9px; + margin-left: -9px; + top: -1px; +} +.tooltip.left .tooltip-arrow { + border-left-color: #34495e; + border-width: 9px 0 9px 9px; + margin-top: -9px; + right: -3px; +} +.tooltip-inner { + background-color: #34495e; + line-height: 1.286; + padding: 12px 12px; + text-align: center; + width: 183px; + border-radius: 6px; +} +.tooltip-light.bottom .tooltip-arrow { + border-bottom-color: #edeff1; +} +.tooltip-light.left .tooltip-arrow { + border-left-color: #edeff1; +} +.tooltip-light.right .tooltip-arrow { + border-right-color: #edeff1; +} +.tooltip-light.top .tooltip-arrow { + border-top-color: #edeff1; +} +.tooltip-light .tooltip-inner { + background-color: #edeff1; + color: #34495e; +} +.dropdown-menu { + background-color: #f3f4f5; + border: none; + display: block; + margin-top: 8px; + opacity: 0; + padding: 0; + visibility: hidden; + -webkit-box-shadow: none; + box-shadow: none; + -webkit-transition: 0.25s; + transition: 0.25s; +} +.open > .dropdown-menu { + margin-top: 18px !important; + opacity: 1; + visibility: visible; +} +.dropdown-menu li:first-child dt + a { + border-radius: 0; +} +.dropdown-menu li:first-child > a { + border-radius: 6px 6px 0 0; + padding-top: 8px; +} +.dropdown-menu li:last-child > a { + border-radius: 0 0 6px 6px; + padding-bottom: 10px; +} +.dropdown-menu li.active > a, +.dropdown-menu li.selected > a, +.dropdown-menu li.active > a.highlighted, +.dropdown-menu li.selected > a.highlighted { + background: #1abc9c; + color: #ffffff; +} +.dropdown-menu li.active > a:hover, +.dropdown-menu li.selected > a:hover, +.dropdown-menu li.active > a.highlighted:hover, +.dropdown-menu li.selected > a.highlighted:hover, +.dropdown-menu li.active > a:focus, +.dropdown-menu li.selected > a:focus, +.dropdown-menu li.active > a.highlighted:focus, +.dropdown-menu li.selected > a.highlighted:focus { + background: #16a085; + color: #ffffff; +} +.dropdown-menu li > a { + color: rgba(52, 73, 94, 0.75); + padding: 6px 15px 8px; + text-decoration: none; + -webkit-transition: background-color 0.25s; + transition: background-color 0.25s; +} +.dropdown-menu li > a:before, +.dropdown-menu li > a:after { + content: " "; + /* 1 */ + + display: table; + /* 2 */ + +} +.dropdown-menu li > a:after { + clear: both; +} +.dropdown-menu li > a:hover, +.dropdown-menu li > a:active, +.dropdown-menu li > a:focus { + background: #e1e4e7; + color: inherit; + outline: none; +} +.dropdown-menu li > a.highlighted { + background: #c9cfd4; + color: #ffffff; +} +.dropdown-menu li > a.highlighted:hover, +.dropdown-menu li > a.highlighted:focus { + background: #bac1c8; + color: #ffffff; +} +.dropdown-menu li > a:before { + float: right; + margin-top: 3px; +} +.dropdown-menu li dt { + font-weight: 300; + margin-bottom: 3px; + margin-top: 12px; + padding: 0 15px; +} +@media (max-width: 767px) { + .dropdown-menu { + border-radius: 0 0 6px 6px !important; + } +} +.dropdown-menu .divider { + margin-top: 3px; + margin-bottom: 3px; +} +.dropup .dropdown-menu, +.navbar-fixed-bottom .dropdown .dropdown-menu { + margin-bottom: 8px; +} +.dropup .dropdown-arrow, +.navbar-fixed-bottom .dropdown .dropdown-arrow { + border-bottom: none; + border-top: 8px outset #f3f4f5; + bottom: 100%; + top: auto; +} +.navbar-fixed-bottom .nav > li > ul:before { + border-bottom: none; + border-top: 9px outset #34495e; + bottom: 4px; + top: auto; +} +.open.dropup > .dropdown-menu { + margin-bottom: 18px; +} +.open.dropup > .dropdown-arrow { + margin-bottom: 10px; +} +.open.dropup > .dropdown-arrow.dropdown-arrow-inverse { + border-top-color: #34495e; +} +.open > .dropdown-arrow { + margin-top: 11px; + opacity: 1; +} +.dropdown-arrow { + border-style: solid; + border-width: 0 8px 7px; + border-color: transparent transparent #f3f4f5 transparent; + height: 0; + margin-top: 0; + opacity: 0; + position: absolute; + right: 19px; + top: 100%; + width: 0; + z-index: 10; + -webkit-transform: rotate(360deg); + -webkit-transition: 0.25s; + transition: 0.25s; +} +.dropdown-inverse { + background-color: #34495e; + color: #cccccc; + padding: 4px 0 6px; +} +.dropdown-inverse li { + margin: 0 4px -2px; +} +.dropdown-inverse li:first-child > a, +.dropdown-inverse li:last-child > a { + border-radius: 2px; + padding-bottom: 7px; + padding-top: 5px; +} +.dropdown-inverse li:first-child dt + a, +.dropdown-inverse li:last-child dt + a { + border-radius: 2px; +} +.dropdown-inverse li.active > a, +.dropdown-inverse li.selected > a { + background: #1abc9c; + color: #ffffff; + position: relative; + z-index: 1; +} +.dropdown-inverse li dt { + padding-left: 11px; + padding-right: 11px; +} +.dropdown-inverse li .divider { + margin-left: 11px; + margin-right: 11px; +} +.dropdown-inverse li > a { + border-radius: 2px; + color: #ffffff; + padding: 5px 11px 7px; +} +.dropdown-inverse li > a:hover, +.dropdown-inverse li > a:active, +.dropdown-inverse li > a:focus { + background: #2c3e50; +} +.dropdown-inverse li > a.highlighted { + background: #526476; +} +.dropdown-inverse li > a.highlighted:hover, +.dropdown-inverse li > a.highlighted:focus { + background: #677786; +} +.dropdown-inverse li .divider { + background-color: #526476; + border-bottom-color: #526476; +} +@media (max-width: 767px) { + .dropdown-menu li a [class*="icon-"] { + display: none; + } +} +.table { + font-size: 16px; +} +.table > thead > tr > th, +.table > tbody > tr > th, +.table > tfoot > tr > th, +.table > thead > tr > td, +.table > tbody > tr > td, +.table > tfoot > tr > td { + padding: 9px 25px; + line-height: 1.231; + border-top: 2px solid #eef0f0; +} +.table > thead > tr > th, +.table > tbody > tr > th, +.table > tfoot > tr > th { + color: #526476; + border-bottom: 2px solid #eef0f0; +} +.table [class*="fui-"] { + vertical-align: baseline; + font-size: 20px; + margin: -5px 0; + position: relative; + top: 2px; +} +.table .checkbox, +.table .radio { + margin: 0 0 0 -9px; +} +.table .checkbox.no-label, +.table .radio.no-label { + padding-left: 0; +} +.table .selected-row > td { + background-color: #f2fbfa; +} +.table img { + vertical-align: top; +} +.table-bordered { + border: 2px solid #eef0f0; + font-size: 14px; +} +.table-bordered > thead > tr th, +.table-bordered > tbody > tr th, +.table-bordered > tfoot > tr th, +.table-bordered > thead > tr td, +.table-bordered > tbody > tr td, +.table-bordered > tfoot > tr td { + border: 2px solid #eef0f0 !important; + padding-top: 8px; + padding-bottom: 8px; + vertical-align: middle; +} +.table-striped > tbody > tr:nth-child(even) > td, +.table-striped > tbody > tr.selected-row > td, +.table-striped > tbody > tr:nth-child(even) > th, +.table-striped > tbody > tr.selected-row > th { + background-color: #f9fafb; +} +.table-striped > tbody > tr:nth-child(odd) > td, +.table-striped > tbody > tr:nth-child(odd) > th { + background-color: transparent; +} +.table-hover > tbody > tr:hover > td, +.table-hover > tbody > tr:hover > th { + background-color: #f9fafb; +} +.table > thead > tr > td.success, +.table > tbody > tr > td.success, +.table > tfoot > tr > td.success, +.table > thead > tr > th.success, +.table > tbody > tr > th.success, +.table > tfoot > tr > th.success, +.table > thead > tr.success > td, +.table > tbody > tr.success > td, +.table > tfoot > tr.success > td, +.table > thead > tr.success > th, +.table > tbody > tr.success > th, +.table > tfoot > tr.success > th { + background-color: #ecfaf2; +} +.table-hover > tbody > tr > td.success:hover, +.table-hover > tbody > tr > th.success:hover, +.table-hover > tbody > tr.success:hover > td, +.table-hover > tbody > tr.success:hover > th { + background-color: #e4f8ed; +} +.table > thead > tr > td.info, +.table > tbody > tr > td.info, +.table > tfoot > tr > td.info, +.table > thead > tr > th.info, +.table > tbody > tr > th.info, +.table > tfoot > tr > th.info, +.table > thead > tr.info > td, +.table > tbody > tr.info > td, +.table > tfoot > tr.info > td, +.table > thead > tr.info > th, +.table > tbody > tr.info > th, +.table > tfoot > tr.info > th { + background-color: #edf6fc; +} +.table-hover > tbody > tr > td.info:hover, +.table-hover > tbody > tr > th.info:hover, +.table-hover > tbody > tr.info:hover > td, +.table-hover > tbody > tr.info:hover > th { + background-color: #e4f1fa; +} +.table > thead > tr > td.warning, +.table > tbody > tr > td.warning, +.table > tfoot > tr > td.warning, +.table > thead > tr > th.warning, +.table > tbody > tr > th.warning, +.table > tfoot > tr > th.warning, +.table > thead > tr.warning > td, +.table > tbody > tr.warning > td, +.table > tfoot > tr.warning > td, +.table > thead > tr.warning > th, +.table > tbody > tr.warning > th, +.table > tfoot > tr.warning > th { + background-color: #fefae9; +} +.table-hover > tbody > tr > td.warning:hover, +.table-hover > tbody > tr > th.warning:hover, +.table-hover > tbody > tr.warning:hover > td, +.table-hover > tbody > tr.warning:hover > th { + background-color: #fdf7e0; +} +.table > thead > tr > td.danger, +.table > tbody > tr > td.danger, +.table > tfoot > tr > td.danger, +.table > thead > tr > th.danger, +.table > tbody > tr > th.danger, +.table > tfoot > tr > th.danger, +.table > thead > tr.danger > td, +.table > tbody > tr.danger > td, +.table > tfoot > tr.danger > td, +.table > thead > tr.danger > th, +.table > tbody > tr.danger > th, +.table > tfoot > tr.danger > th { + background-color: #fdefed; +} +.table-hover > tbody > tr > td.danger:hover, +.table-hover > tbody > tr > th.danger:hover, +.table-hover > tbody > tr.danger:hover > td, +.table-hover > tbody > tr.danger:hover > th { + background-color: #fce7e4; +} +.label { + font-size: 72%; + font-weight: normal; + padding: .15em .5em .2em; +} +.label[href]:hover, +.label[href]:focus { + color: #ffffff; +} +.btn .label { + position: relative; + top: -1px; +} +.label-default { + background-color: #ebedef; + color: #7b8996; +} +.label-default[href] { + color: #7b8996; +} +.label-default[href]:hover, +.label-default[href]:focus { + color: #7b8996; + background-color: #e1e4e7; +} +.label-inverse { + background-color: #485b6e; + color: #ffffff; +} +.label-inverse[href] { + color: #ffffff; +} +.label-inverse[href]:hover, +.label-inverse[href]:focus { + color: #ffffff; + background-color: #a4adb7; +} +.label-success { + background-color: #2ecc71; + color: #ffffff; +} +.label-success[href] { + color: #ffffff; +} +.label-success[href]:hover, +.label-success[href]:focus { + color: #ffffff; + background-color: #27ad60; +} +.label-important { + background-color: #e74c3c; + color: #ffffff; +} +.label-important[href] { + color: #ffffff; +} +.label-important[href]:hover, +.label-important[href]:focus { + color: #ffffff; + background-color: #c44133; +} +.label-warning { + background-color: #f1c40f; + color: #ffffff; +} +.label-warning[href] { + color: #ffffff; +} +.label-warning[href]:hover, +.label-warning[href]:focus { + color: #ffffff; + background-color: #cda70d; +} +.label-info { + background-color: #3498db; + color: #ffffff; +} +.label-info[href] { + color: #ffffff; +} +.label-info[href]:hover, +.label-info[href]:focus { + color: #ffffff; + background-color: #2c81ba; +} +.label-primary { + background-color: #1abc9c; + color: #ffffff; +} +.label-primary[href] { + color: #ffffff; +} +.label-primary[href]:hover, +.label-primary[href]:focus { + color: #ffffff; + background-color: #16a085; +} +.badge { + font-size: 13px; + font-weight: normal; + color: #ffffff; + line-height: 1.615; + background-color: #d8dce0; + border-radius: 4px; + padding: 0 8px; +} +.btn .badge { + position: relative; + top: -1px; +} +a.list-group-item.active > .badge, +.nav-pills > .active > a > .badge, +.nav-list > .active > a > .badge { + color: #9aa4af; + background-color: #ffffff; +} +.alert { + color: #34495e; + padding: 18px 45px 14px 30px; + text-shadow: none; + background-color: #f9f8f3; + border: 2px solid #ebece8; + font-size: 16px; + line-height: 1.625; + border-radius: 6px; +} +.alert a { + color: #f1c40f; + font-weight: bold; +} +.alert a:hover { + text-decoration: underline; +} +.alert a.btn { + color: #ffffff; + text-decoration: none; +} +.alert a.btn:active, +.alert a.btn.active { + color: rgba(255, 255, 255, 0.75); +} +.alert h4 { + font-size: 24px; + line-height: 1.2; + margin-bottom: 4px; +} +.alert p { + font-size: inherit; + line-height: inherit; +} +.alert .close { + position: relative; + top: 3px; + right: -31px; + line-height: 18px; + font-size: 18px; + color: #34495e; +} +.alert .btn { + margin-bottom: 15px; + margin-right: 15px; + margin-top: 15px; +} +@media (max-width: 767px) { + .alert .btn { + display: block; + min-width: auto; + margin-bottom: 10px; + margin-right: -15px; + } +} +.alert-success { + background-color: #eff7f3; + border-color: #e1ebe9; +} +.alert-success a { + color: #16a085; +} +.alert-info { + background-color: #f7f9fa; + border-color: #e9ecef; +} +.alert-info a { + color: #3498db; +} +.alert-error { + background-color: #f8f5f5; + border-color: #ebe9ea; +} +.alert-error a { + color: #e74c3c; +} +.bottom-menu { + background: #ebedef; + color: #bcc3ca; + padding: 39px 0 42px; +} +.bottom-menu .navbar-brand { + font-size: 24px; + margin-top: -4px; + padding: 0; +} +.bottom-menu .title { + font-size: 13px; + font-weight: 700; + margin-top: 0; +} +.bottom-menu a { + color: inherit; +} +.active .bottom-menu a, +.bottom-menu a:hover, +.bottom-menu a:focus { + color: #1abc9c; +} +.bottom-menu .label, +.bottom-menu .badge { + vertical-align: middle; +} +.bottom-menu .bottom-links { + font-size: 14px; + line-height: 1.286; +} +.bottom-menu .bottom-links:before, +.bottom-menu .bottom-icons:before, +.bottom-menu .bottom-links:after, +.bottom-menu .bottom-icons:after { + content: " "; + /* 1 */ + + display: table; + /* 2 */ + +} +.bottom-menu .bottom-links:after, +.bottom-menu .bottom-icons:after { + clear: both; +} +.bottom-icons { + font-size: 16px; + line-height: 1; +} +.bottom-menu-inverse { + background-color: #34495e; + color: #677786; +} +.bottom-menu-large { + padding-bottom: 56px; + padding-top: 60px; +} +.bottom-menu-large .navbar-brand { + margin-top: -2px; +} +.bottom-menu-large .bottom-links li { + float: none; + line-height: 22px; + margin-right: 0; +} +.bottom-menu-large .title { + margin-bottom: 10px; +} +.bottom-links, +.bottom-icons { + margin: 0; + padding: 0; + list-style: none; +} +.bottom-links li, +.bottom-icons li { + display: block; + float: left; + margin: 0 18px 0 0; +} +@media (max-width: 767px) { + .bottom-menu .navbar-brand, + .bottom-menu .bottom-links { + margin-bottom: 30px; + } + .bottom-menu .navbar-brand { + padding: 15px; + float: none; + } + .bottom-menu .bottom-links li { + float: none; + margin-bottom: 2px; + } + .bottom-menu [class*="span"]:last-child .bottom-links { + margin-bottom: 0; + } +} +.nav .dropdown-toggle .caret { + border-bottom-color: #7f8c9a; + border-left-width: 4px; + border-right-width: 4px; + border-top-color: #7f8c9a; + border-top-width: 6px; +} +.nav-pills > li:first-child > a { + border-left: none; + border-radius: 6px 0 0 6px; +} +.nav-pills > li:last-child > a { + border-radius: 0 6px 6px 0; +} +.nav-pills > li.active > a, +.nav-pills > li.active > a:hover { + background-color: #16a085; +} +@media (max-width: 767px) { + .nav-pills > li { + float: none; + display: block; + } + .nav-pills > li:first-child > a { + border-radius: 6px 6px 0 0; + } + .nav-pills > li:last-child > a { + border-radius: 0 0 6px 6px; + } +} +.nav-pills > li > a { + background-color: #1abc9c; + border-left: 2px solid #16a085; + color: #ffffff; + font-size: 16px; + font-weight: 700; + line-height: 1; + margin: 0; + outline: none; + padding: 12px 21px 13px; + border-radius: 0; +} +.nav-pills > li > a:hover, +.nav-pills > li > a:focus { + background-color: #48c9b0; +} +.nav-pills > li > a:active { + background-color: #16a085; +} +@media (max-width: 767px) { + .nav-pills > li > a { + border-left: none; + display: block; + } +} +.nav-pills > li + li { + margin-left: 0; +} +.nav-tabs { + margin-bottom: 20px; + border-bottom-width: 2px; + border-bottom-color: #e1e4e7; +} +.nav-tabs.nav-append-content { + border-bottom: none; + margin-bottom: 0; +} +.nav-tabs.nav-append-content > li.active:first-child:before { + background-color: #ffffff; + border-left: 2px solid #e1e4e7; + content: ""; + height: 6px; + left: 0; + position: absolute; + bottom: -4px; + width: 6px; + z-index: 2; +} +.nav-tabs > li { + margin-bottom: -2px; + position: relative; +} +.nav-tabs > li.active { + z-index: 2; +} +.nav-tabs > li.active > a, +.nav-tabs > li.active > a:hover, +.nav-tabs > li.active > a:focus { + border-color: #e1e4e7; + border-bottom-color: #ffffff; + border-width: 2px; + color: #7f8c9a; +} +.nav-tabs > li.active .dropdown-toggle, +.nav-tabs > li.active .dropdown-toggle:hover, +.nav-tabs > li.active .dropdown-toggle:focus { + color: #7f8c9a; +} +.nav-tabs > li.active .dropdown-toggle .caret, +.nav-tabs > li.active .dropdown-toggle:hover .caret, +.nav-tabs > li.active .dropdown-toggle:focus .caret { + border-bottom-color: #7f8c9a; + border-top-color: #7f8c9a; +} +.nav-tabs > li.open a.dropdown-toggle, +.nav-tabs > li.open.active a.dropdown-toggle, +.nav-tabs > li.open a.dropdown-toggle:hover, +.nav-tabs > li.open.active a.dropdown-toggle:hover { + background-color: #f3f4f5; + border-color: #e1e4e7; + border-bottom-color: transparent; + color: #7f8c9a; +} +.nav-tabs > li.open a.dropdown-toggle .caret, +.nav-tabs > li.open.active a.dropdown-toggle .caret, +.nav-tabs > li.open a.dropdown-toggle:hover .caret, +.nav-tabs > li.open.active a.dropdown-toggle:hover .caret { + border-bottom-color: #7f8c9a; + border-top-color: #7f8c9a; +} +.nav-tabs > li.open .dropdown-menu, +.nav-tabs > li.open.active .dropdown-menu { + margin-top: -2px; +} +.nav-tabs > li.open.active { + z-index: 1003; +} +.nav-tabs > li > a { + border-width: 2px; + font-size: 14px; + font-weight: 700; + padding: 7px 21px 8px; + color: #7f8c9a; + border-radius: 6px 6px 0 0; + -webkit-transition: none; + transition: none; +} +.nav-tabs > li > a:hover, +.nav-tabs > li > a:focus { + background-color: transparent; + border-color: transparent; + border-bottom-color: transparent; + outline: none; + color: #1abc9c; +} +.nav-tabs > li .dropdown-toggle { + position: relative; + z-index: 1002; +} +.nav-tabs > li .dropdown-toggle:hover .caret, +.nav-tabs > li .dropdown-toggle:focus .caret { + border-bottom-color: #1abc9c; + border-top-color: #1abc9c; +} +.nav-tabs > li .dropdown-menu { + border: 2px solid #e1e4e7; + margin-top: -10px; + border-radius: 0 6px 6px 6px; +} +.nav-tabs > li .dropdown-menu li:first-child > a { + border-radius: 0 4px 0 0; +} +.nav-tabs > li .dropdown-menu li:last-child > a { + border-radius: 0 0 4px 4px; +} +.nav-tabs > li .dropdown-menu li a { + border-radius: 0; +} +.nav-tabs > li .open .dropdown-toggle { + background-color: #f3f4f5; +} +@media (max-width: 767px) { + .nav-tabs { + border-bottom: none; + } + .nav-tabs > li { + display: block; + float: none; + } + .nav-tabs > li.active > a, + .nav-tabs > li.active > a:hover, + .nav-tabs > li.active > a:focus { + background-color: #1abc9c; + border: 2px solid #1abc9c; + color: #ffffff; + } + .nav-tabs > li.active > a:before, + .nav-tabs > li.active > a:hover:before, + .nav-tabs > li.active > a:focus:before { + display: none; + } + .nav-tabs > li.active:before { + display: none; + } + .nav-tabs > li.dropdown.active > a, + .nav-tabs > li.dropdown.active > a.dropdown-toggle, + .nav-tabs > li.dropdown.active > a:hover { + color: #ffffff; + } + .nav-tabs > li.dropdown.active > a .caret, + .nav-tabs > li.dropdown.active > a.dropdown-toggle .caret, + .nav-tabs > li.dropdown.active > a:hover .caret { + border-bottom-color: #ffffff; + border-top-color: #ffffff; + } + .nav-tabs > li.dropdown.active.open > a, + .nav-tabs > li.dropdown.active.open > a.dropdown-toggle, + .nav-tabs > li.dropdown.active.open > a:hover { + color: #7f8c9a; + border-radius: 4px 4px 0 0; + } + .nav-tabs > li.dropdown.active.open > a .caret, + .nav-tabs > li.dropdown.active.open > a.dropdown-toggle .caret, + .nav-tabs > li.dropdown.active.open > a:hover .caret { + border-bottom-color: #7f8c9a; + border-top-color: #7f8c9a; + } + .nav-tabs > li > a, + .nav-tabs > li > a:hover, + .nav-tabs > li > a:focus { + border: 2px solid #e1e4e7; + margin-bottom: 10px; + margin-right: 0; + padding: 10px 15px; + border-radius: 4px; + } +} +.tab-content { + border: 2px solid #ddd; + border-radius: 6px; + margin-bottom: 20px; + padding: 20px 20px 5px; + position: relative; + z-index: 1; +} +.nav-list { + padding-left: 13px; + padding-right: 13px; +} +.nav-list .nav-header { + margin-left: -13px; + margin-right: -13px; + padding: 0 13px; + font-weight: 700; + line-height: 1.538; +} +.nav-list > li { + margin-bottom: 3px; +} +.nav-list > li.active > a, +.nav-list > li.active > a:hover, +.nav-list > li.active > a:focus { + background-color: #ebedef; + color: #526476; +} +.nav-list > li.divider { + height: 2px; + border-bottom: none; + margin: 13px -13px 17px 0; + background-color: #ebedef; +} +.nav-list > li > a { + border-radius: 4px; + font-size: 15px; + line-height: 1.333; + font-weight: 700; + margin-left: -13px; + margin-right: -13px; + padding: 6px 13px 8px; + text-shadow: none; +} +.nav-list .badge.pull-right { + margin: 1px -4px -1px 0; +} +.nav-header { + color: #aeb6bf; + font-size: 13px; + text-transform: uppercase; +} +.nav-list-vivid { + background-color: #edeff1; + border-radius: 4px; + padding-bottom: 2px; +} +.nav-list-vivid > li { + margin-bottom: 2px; +} +.nav-list-vivid > li.divider { + background-color: transparent; + margin: 3px 0 0; +} +.nav-list-vivid > li.active > a, +.nav-list-vivid > li.active > a:hover, +.nav-list-vivid > li.active > a:focus { + background-color: #1abc9c; + color: #ffffff; +} +.nav-list-vivid > li > a { + border-radius: 0; + color: #526476; + font-size: 14px; +} +.nav-list-vivid > li > a:hover, +.nav-list-vivid > li > a:focus { + color: #16a085; +} +.nav-list-vivid .nav-header:first-child { + padding-top: 10px; +} +.navbar { + font-size: 16px; + min-height: 53px; + margin-bottom: 30px; + border: none; + border-radius: 6px; +} +@media (min-width: 768px) { + .navbar-header { + float: left; + } +} +.navbar-collapse { + box-shadow: none; + padding-right: 21px; + padding-left: 21px; +} +@media (min-width: 768px) { + .navbar-collapse .navbar-nav.navbar-left:first-child { + margin-left: -21px; + } + .navbar-collapse .navbar-nav.navbar-left:first-child > li:first-child a { + border-bottom-left-radius: 6px; + border-top-left-radius: 6px; + } + .navbar-collapse .navbar-nav.navbar-right:last-child { + margin-right: -21px; + } + .navbar > .container .navbar-collapse .navbar-nav.navbar-right:last-child { + margin-right: -36px; + } + .navbar-collapse .navbar-nav.navbar-right:last-child > .dropdown:last-child > a { + border-radius: 0 6px 6px 0; + } + .navbar-collapse .navbar-form.navbar-right:last-child { + margin-right: -17px; + } + .navbar-fixed-top .navbar-collapse .navbar-form.navbar-right:last-child, + .navbar-fixed-bottom .navbar-collapse .navbar-form.navbar-right:last-child { + margin-right: 0; + } +} +@media (max-width: 767px) { + .navbar-collapse .navbar-nav.navbar-right:last-child { + margin-bottom: 3px; + } +} +.container > .navbar-header, +.container-fluid > .navbar-header, +.container > .navbar-collapse, +.container-fluid > .navbar-collapse { + margin-right: -21px; + margin-left: -21px; +} +@media (min-width: 768px) { + .container > .navbar-header, + .container-fluid > .navbar-header, + .container > .navbar-collapse, + .container-fluid > .navbar-collapse { + margin-right: 0; + margin-left: 0; + } +} +.navbar-static-top { + z-index: 1000; + border-width: 0; + border-radius: 0; +} +.navbar-fixed-top, +.navbar-fixed-bottom { + z-index: 1030; + border-radius: 0; +} +.navbar-fixed-top { + border-width: 0; +} +.navbar-fixed-bottom { + margin-bottom: 0; + border-width: 0; +} +.navbar-brand { + font-size: 24px; + line-height: 1.042; + font-weight: 700; + padding: 14px 21px; +} +.navbar-brand > [class*="fui-"] { + font-size: 19px; + line-height: 1.263; + vertical-align: top; +} +@media (min-width: 768px) { + .navbar > .container .navbar-brand, + .navbar > .container-fluid .navbar-brand { + margin-left: -21px; + } +} +.navbar-toggle { + border: none; + color: #34495e; + margin: 0 0 0 21px; + padding: 0 21px; + height: 53px; + line-height: 53px; +} +.navbar-toggle:before { + color: #16a085; + content: "\e00c"; + font-family: "Flat-UI-Icons"; + font-size: 22px; + font-style: normal; + font-weight: normal; + -webkit-font-smoothing: antialiased; + -webkit-transition: color 0.25s linear; + transition: color 0.25s linear; +} +.navbar-toggle:hover, +.navbar-toggle:focus { + outline: none; +} +.navbar-toggle:hover:before, +.navbar-toggle:focus:before { + color: #1abc9c; +} +.navbar-toggle .icon-bar { + display: none; +} +@media (min-width: 768px) { + .navbar-toggle { + display: none; + } +} +.navbar-nav { + margin: 0; +} +.navbar-nav > li > a { + font-size: 16px; + padding: 15px 21px; + line-height: 23px; + font-weight: 700; +} +.navbar-nav .dropdown-toggle .caret { + border-top-color: #16a085; + border-bottom-color: #16a085; + border-width: 8px 6px 0; + margin-left: 12px; +} +.navbar-nav > li > a:hover, +.navbar-nav > li > a:focus, +.navbar-nav .open > a:focus, +.navbar-nav .open > a:hover { + background-color: transparent; +} +.navbar-nav > li > a:hover .caret, +.navbar-nav > li > a:focus .caret, +.navbar-nav .open > a:focus .caret, +.navbar-nav .open > a:hover .caret { + border-top-color: #1abc9c; + border-bottom-color: #1abc9c; +} +.navbar-nav [class^="fui-"] { + line-height: 20px; + position: relative; + top: 1px; +} +.navbar-nav .visible-sm > [class^="fui-"], +.navbar-nav .visible-xs > [class^="fui-"] { + margin-left: 12px; +} +@media (max-width: 767px) { + .navbar-nav { + margin: 0 -21px; + } + .navbar-nav .open .dropdown-menu > li > a, + .navbar-nav .open .dropdown-menu .dropdown-header { + padding: 7px 15px 7px 31px !important; + } + .navbar-nav .open .dropdown-menu > li > a { + line-height: 23px; + } + .navbar-nav > li > a { + padding-top: 7px; + padding-bottom: 7px; + } +} +.navbar-input { + height: 35px; + padding: 5px 10px; + font-size: 13px; + line-height: 1.4; + border-radius: 6px; +} +select.navbar-input { + height: 35px; + line-height: 35px; +} +textarea.navbar-input, +select[multiple].navbar-input { + height: auto; +} +.navbar-form { + -webkit-box-shadow: none; + box-shadow: none; + margin-top: 0; + margin-bottom: 0; + padding-right: 19px; + padding-left: 19px; + padding-top: 9px; + padding-bottom: 9px; +} +@media (max-width: 767px) { + .navbar-form .form-group { + margin-bottom: 5px; + } +} +@media (max-width: 767px) { + .navbar-form { + margin: 3px -21px; + width: auto; + } +} +@media (min-width: 768px) { + .navbar-nav + .navbar-form.navbar-left, + .navbar-form.navbar-right:last-child { + width: 260px; + } +} +.navbar-form .form-control, +.navbar-form .input-group-addon, +.navbar-form .btn { + height: 35px; + padding: 5px 10px; + font-size: 13px; + line-height: 1.4; + border-radius: 6px; +} +select.navbar-form .form-control, +select.navbar-form .input-group-addon, +select.navbar-form .btn { + height: 35px; + line-height: 35px; +} +textarea.navbar-form .form-control, +textarea.navbar-form .input-group-addon, +textarea.navbar-form .btn, +select[multiple].navbar-form .form-control, +select[multiple].navbar-form .input-group-addon, +select[multiple].navbar-form .btn { + height: auto; +} +.navbar-form .input-group .form-control:first-child, +.navbar-form .input-group-addon:first-child, +.navbar-form .input-group-btn:first-child > .btn, +.navbar-form .input-group-btn:first-child > .dropdown-toggle, +.navbar-form .input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) { + border-bottom-right-radius: 0; + border-top-right-radius: 0; +} +.navbar-form .input-group .form-control:last-child, +.navbar-form .input-group-addon:last-child, +.navbar-form .input-group-btn:last-child > .btn, +.navbar-form .input-group-btn:last-child > .dropdown-toggle, +.navbar-form .input-group-btn:first-child > .btn:not(:first-child) { + border-bottom-left-radius: 0; + border-top-left-radius: 0; +} +.navbar-form .form-control { + font-size: 15px; + border-radius: 5px; + display: table-cell; +} +.navbar-form .form-group + .btn { + font-size: 15px; + border-radius: 5px; + margin-left: 4px; +} +@media (max-width: 767px) { + .navbar-form .form-group { + margin-bottom: 0; + } + .navbar-form .form-group + .btn { + margin-top: 9px; + margin-left: 0; + } +} +.navbar-nav > li > .dropdown-menu { + min-width: 100%; + border-radius: 4px; +} +@media (max-width: 767px) { + .navbar-nav > li > .dropdown-menu { + -webkit-transition: all 0s; + transition: all 0s; + display: none; + } +} +@media (max-width: 767px) { + .navbar-nav > li.open > .dropdown-menu { + margin-top: 0 !important; + display: block; + } +} +.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { + border-bottom-right-radius: 4px; + border-bottom-left-radius: 4px; +} +.navbar-nav > .open > .dropdown-toggle, +.navbar-nav > .open > .dropdown-toggle:focus, +.navbar-nav > .open > .dropdown-toggle:hover { + background-color: transparent; +} +.navbar-text { + font-size: 16px; + line-height: 1.438; + color: #34495e; + margin-top: 0; + margin-bottom: 0; + padding-top: 15px; + padding-bottom: 15px; +} +@media (min-width: 768px) { + .navbar-text { + margin-left: 21px; + margin-right: 21px; + } + .navbar-text.navbar-right:last-child { + margin-right: 0; + } +} +.navbar-btn { + margin-top: 6px; + margin-bottom: 6px; +} +.navbar-btn.btn-sm { + margin-top: 9px; + margin-bottom: 8px; +} +.navbar-btn.btn-xs { + margin-top: 14px; + margin-bottom: 14px; +} +.navbar-unread, +.navbar-new { + font-family: "Lato", Helvetica, Arial, sans-serif; + background-color: #1abc9c; + border-radius: 50%; + color: #ffffff; + font-size: 0; + font-weight: 700; + height: 6px; + line-height: 1; + position: absolute; + right: 12px; + text-align: center; + top: 35%; + width: 6px; + z-index: 10; +} +@media (max-width: 768px) { + .navbar-unread, + .navbar-new { + position: static; + float: right; + margin: 0 0 0 10px; + } +} +.active .navbar-unread, +.active .navbar-new { + background-color: #ffffff; + display: none; +} +.navbar-new { + background-color: #e74c3c; + font-size: 12px; + height: 18px; + line-height: 17px; + margin: -6px -10px; + min-width: 18px; + padding: 0 1px; + width: auto; + -webkit-font-smoothing: subpixel-antialiased; +} +.navbar-default { + background-color: #ecf0f1; +} +.navbar-default .navbar-brand { + color: #34495e; +} +.navbar-default .navbar-brand:hover, +.navbar-default .navbar-brand:focus { + color: #1abc9c; + background-color: transparent; +} +.navbar-default .navbar-toggle:before { + color: #34495e; +} +.navbar-default .navbar-toggle:hover, +.navbar-default .navbar-toggle:focus { + background-color: transparent; +} +.navbar-default .navbar-toggle:hover:before, +.navbar-default .navbar-toggle:focus:before { + color: #1abc9c; +} +.navbar-default .navbar-collapse, +.navbar-default .navbar-form { + border-color: #e5e9ea; + border-width: 2px; +} +.navbar-default .navbar-nav > li > a { + color: #34495e; +} +.navbar-default .navbar-nav > li > a:hover, +.navbar-default .navbar-nav > li > a:focus { + color: #1abc9c; + background-color: transparent; +} +.navbar-default .navbar-nav > .active > a, +.navbar-default .navbar-nav > .active > a:hover, +.navbar-default .navbar-nav > .active > a:focus { + color: #1abc9c; + background-color: transparent; +} +.navbar-default .navbar-nav > .disabled > a, +.navbar-default .navbar-nav > .disabled > a:hover, +.navbar-default .navbar-nav > .disabled > a:focus { + color: #cccccc; + background-color: transparent; +} +.navbar-default .navbar-nav > .dropdown > a .caret { + border-top-color: #34495e; + border-bottom-color: #34495e; +} +.navbar-default .navbar-nav > .active > a .caret { + border-top-color: #1abc9c; + border-bottom-color: #1abc9c; +} +.navbar-default .navbar-nav > .dropdown > a:hover .caret, +.navbar-default .navbar-nav > .dropdown > a:focus .caret { + border-top-color: #1abc9c; + border-bottom-color: #1abc9c; +} +.navbar-default .navbar-nav > .open > a, +.navbar-default .navbar-nav > .open > a:hover, +.navbar-default .navbar-nav > .open > a:focus { + background-color: transparent; + color: #1abc9c; +} +.navbar-default .navbar-nav > .open > a .caret, +.navbar-default .navbar-nav > .open > a:hover .caret, +.navbar-default .navbar-nav > .open > a:focus .caret { + border-top-color: #1abc9c; + border-bottom-color: #1abc9c; +} +@media (max-width: 767px) { + .navbar-default .navbar-nav .open .dropdown-menu > li > a { + color: #34495e; + } + .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, + .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { + color: #1abc9c; + background-color: transparent; + } + .navbar-default .navbar-nav .open .dropdown-menu > .active > a, + .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, + .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { + color: #1abc9c; + background-color: transparent; + } + .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a, + .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover, + .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus { + color: #cccccc; + background-color: transparent; + } +} +.navbar-default .navbar-form .form-control { + border-color: transparent; +} +.navbar-default .navbar-form .form-control:-moz-placeholder { + color: #aeb6bf; +} +.navbar-default .navbar-form .form-control::-moz-placeholder { + color: #aeb6bf; + opacity: 1; +} +.navbar-default .navbar-form .form-control:-ms-input-placeholder { + color: #aeb6bf; +} +.navbar-default .navbar-form .form-control::-webkit-input-placeholder { + color: #aeb6bf; +} +.navbar-default .navbar-form .form-control.placeholder { + color: #aeb6bf; +} +.navbar-default .navbar-form .form-control:focus { + border-color: #1abc9c; + color: #1abc9c; +} +.navbar-default .navbar-form .input-group-btn .btn { + border-color: transparent; + color: #919ba4; +} +.navbar-default .navbar-form .input-group.focus .form-control, +.navbar-default .navbar-form .input-group.focus .input-group-btn .btn { + border-color: #1abc9c; + color: #1abc9c; +} +.navbar-default .navbar-text { + color: #34495e; +} +.navbar-default .navbar-text a { + color: #34495e; +} +.navbar-default .navbar-text a:hover, +.navbar-default .navbar-text a:focus { + color: #1abc9c; +} +.navbar-inverse { + background-color: #34495e; +} +.navbar-inverse .navbar-brand { + color: #ffffff; +} +.navbar-inverse .navbar-brand:hover, +.navbar-inverse .navbar-brand:focus { + color: #1abc9c; + background-color: transparent; +} +.navbar-inverse .navbar-toggle:before { + color: #ffffff; +} +.navbar-inverse .navbar-toggle:hover, +.navbar-inverse .navbar-toggle:focus { + background-color: transparent; +} +.navbar-inverse .navbar-toggle:hover:before, +.navbar-inverse .navbar-toggle:focus:before { + color: #1abc9c; +} +.navbar-inverse .navbar-collapse { + border-color: #2f4154; + border-width: 2px; +} +.navbar-inverse .navbar-nav > li > a { + color: #ffffff; +} +.navbar-inverse .navbar-nav > li > a:hover, +.navbar-inverse .navbar-nav > li > a:focus { + color: #1abc9c; + background-color: transparent; +} +.navbar-inverse .navbar-nav > .active > a, +.navbar-inverse .navbar-nav > .active > a:hover, +.navbar-inverse .navbar-nav > .active > a:focus { + color: #ffffff; + background-color: #1abc9c; +} +.navbar-inverse .navbar-nav > .disabled > a, +.navbar-inverse .navbar-nav > .disabled > a:hover, +.navbar-inverse .navbar-nav > .disabled > a:focus { + color: #444444; + background-color: transparent; +} +.navbar-inverse .navbar-nav > .dropdown > a:hover .caret, +.navbar-inverse .navbar-nav > .dropdown > a:focus .caret { + border-top-color: #1abc9c; + border-bottom-color: #1abc9c; +} +.navbar-inverse .navbar-nav > .open > a, +.navbar-inverse .navbar-nav > .open > a:hover, +.navbar-inverse .navbar-nav > .open > a:focus { + background-color: #1abc9c; + color: #ffffff; + border-left-color: transparent; +} +.navbar-inverse .navbar-nav > .open > a .caret, +.navbar-inverse .navbar-nav > .open > a:hover .caret, +.navbar-inverse .navbar-nav > .open > a:focus .caret { + border-top-color: #ffffff; + border-bottom-color: #ffffff; +} +.navbar-inverse .navbar-nav > .dropdown > a .caret { + border-top-color: #4b6075; + border-bottom-color: #4b6075; +} +.navbar-inverse .navbar-nav > .open > .dropdown-arrow { + border-top-color: #34495e; + border-bottom-color: #34495e; +} +.navbar-inverse .navbar-nav > .open > .dropdown-menu { + background-color: #34495e; + padding: 3px 4px; +} +.navbar-inverse .navbar-nav > .open > .dropdown-menu > li > a { + color: #e1e4e7; + border-radius: 4px; + padding: 6px 9px; +} +.navbar-inverse .navbar-nav > .open > .dropdown-menu > li > a:hover, +.navbar-inverse .navbar-nav > .open > .dropdown-menu > li > a:focus { + color: #ffffff; + background-color: #1abc9c; +} +.navbar-inverse .navbar-nav > .open > .dropdown-menu > .divider { + background-color: #2f4154; + height: 2px; + margin-left: -4px; + margin-right: -4px; +} +@media (max-width: 767px) { + .navbar-inverse .navbar-nav > li > a { + border-left-width: 0; + } + .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { + color: #ffffff; + } + .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover, + .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus { + color: #1abc9c; + background-color: transparent; + } + .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, + .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, + .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus { + color: #ffffff; + background-color: #1abc9c; + } + .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a, + .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover, + .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus { + color: #444444; + background-color: transparent; + } + .navbar-inverse .navbar-nav .dropdown-menu .divider { + background-color: #2f4154; + } +} +.navbar-inverse .navbar-form .form-control { + color: #536a81; + border-color: transparent; + background-color: #293a4a; +} +.navbar-inverse .navbar-form .form-control:-moz-placeholder { + color: #536a81; +} +.navbar-inverse .navbar-form .form-control::-moz-placeholder { + color: #536a81; + opacity: 1; +} +.navbar-inverse .navbar-form .form-control:-ms-input-placeholder { + color: #536a81; +} +.navbar-inverse .navbar-form .form-control::-webkit-input-placeholder { + color: #536a81; +} +.navbar-inverse .navbar-form .form-control.placeholder { + color: #536a81; +} +.navbar-inverse .navbar-form .form-control:focus { + border-color: #1abc9c; + color: #1abc9c; +} +.navbar-inverse .navbar-form .btn { + color: #ffffff; + background-color: #1abc9c; +} +.navbar-inverse .navbar-form .btn:hover, +.navbar-inverse .navbar-form .btn.hover, +.navbar-inverse .navbar-form .btn:focus, +.navbar-inverse .navbar-form .btn:active, +.navbar-inverse .navbar-form .btn.active, +.open .dropdown-toggle.navbar-inverse .navbar-form .btn { + color: #ffffff; + background-color: #48c9b0; + border-color: #48c9b0; +} +.navbar-inverse .navbar-form .btn:active, +.navbar-inverse .navbar-form .btn.active, +.open .dropdown-toggle.navbar-inverse .navbar-form .btn { + background: #16a085; + border-color: #16a085; +} +.navbar-inverse .navbar-form .btn.disabled, +.navbar-inverse .navbar-form .btn[disabled], +fieldset[disabled] .navbar-inverse .navbar-form .btn, +.navbar-inverse .navbar-form .btn.disabled:hover, +.navbar-inverse .navbar-form .btn[disabled]:hover, +fieldset[disabled] .navbar-inverse .navbar-form .btn:hover, +.navbar-inverse .navbar-form .btn.disabled.hover, +.navbar-inverse .navbar-form .btn[disabled].hover, +fieldset[disabled] .navbar-inverse .navbar-form .btn.hover, +.navbar-inverse .navbar-form .btn.disabled:focus, +.navbar-inverse .navbar-form .btn[disabled]:focus, +fieldset[disabled] .navbar-inverse .navbar-form .btn:focus, +.navbar-inverse .navbar-form .btn.disabled:active, +.navbar-inverse .navbar-form .btn[disabled]:active, +fieldset[disabled] .navbar-inverse .navbar-form .btn:active, +.navbar-inverse .navbar-form .btn.disabled.active, +.navbar-inverse .navbar-form .btn[disabled].active, +fieldset[disabled] .navbar-inverse .navbar-form .btn.active { + background-color: #1abc9c; + border-color: #1abc9c; +} +.navbar-inverse .navbar-form .btn .badge { + color: #1abc9c; + background-color: #ffffff; +} +.navbar-inverse .navbar-form .input-group-btn .btn { + border-color: transparent; + background-color: #293a4a; + color: #526a82; +} +.navbar-inverse .navbar-form .input-group.focus .form-control, +.navbar-inverse .navbar-form .input-group.focus .input-group-btn .btn { + border-color: #1abc9c; + color: #1abc9c; +} +@media (max-width: 767px) { + .navbar-inverse .navbar-form { + border-color: #2f4154; + border-width: 2px 0; + } +} +.navbar-inverse .navbar-text { + color: #ffffff; +} +.navbar-inverse .navbar-text a { + color: #ffffff; +} +.navbar-inverse .navbar-text a:hover, +.navbar-inverse .navbar-text a:focus { + color: #1abc9c; +} +.navbar-inverse .navbar-btn { + color: #ffffff; + background-color: #1abc9c; +} +.navbar-inverse .navbar-btn:hover, +.navbar-inverse .navbar-btn.hover, +.navbar-inverse .navbar-btn:focus, +.navbar-inverse .navbar-btn:active, +.navbar-inverse .navbar-btn.active, +.open .dropdown-toggle.navbar-inverse .navbar-btn { + color: #ffffff; + background-color: #48c9b0; + border-color: #48c9b0; +} +.navbar-inverse .navbar-btn:active, +.navbar-inverse .navbar-btn.active, +.open .dropdown-toggle.navbar-inverse .navbar-btn { + background: #16a085; + border-color: #16a085; +} +.navbar-inverse .navbar-btn.disabled, +.navbar-inverse .navbar-btn[disabled], +fieldset[disabled] .navbar-inverse .navbar-btn, +.navbar-inverse .navbar-btn.disabled:hover, +.navbar-inverse .navbar-btn[disabled]:hover, +fieldset[disabled] .navbar-inverse .navbar-btn:hover, +.navbar-inverse .navbar-btn.disabled.hover, +.navbar-inverse .navbar-btn[disabled].hover, +fieldset[disabled] .navbar-inverse .navbar-btn.hover, +.navbar-inverse .navbar-btn.disabled:focus, +.navbar-inverse .navbar-btn[disabled]:focus, +fieldset[disabled] .navbar-inverse .navbar-btn:focus, +.navbar-inverse .navbar-btn.disabled:active, +.navbar-inverse .navbar-btn[disabled]:active, +fieldset[disabled] .navbar-inverse .navbar-btn:active, +.navbar-inverse .navbar-btn.disabled.active, +.navbar-inverse .navbar-btn[disabled].active, +fieldset[disabled] .navbar-inverse .navbar-btn.active { + background-color: #1abc9c; + border-color: #1abc9c; +} +.navbar-inverse .navbar-btn .badge { + color: #1abc9c; + background-color: #ffffff; +} +@media (min-width: 768px) { + .navbar-embossed > .navbar-collapse { + border-radius: 6px; + -webkit-box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15); + box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15); + } + .navbar-embossed.navbar-inverse .navbar-nav .active > a, + .navbar-embossed.navbar-inverse .navbar-nav .open > a { + -webkit-box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15); + box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15); + } +} +.navbar-lg { + min-height: 76px; +} +.navbar-lg .navbar-brand { + line-height: 1; + padding-top: 26px; + padding-bottom: 26px; +} +.navbar-lg .navbar-brand > [class*="fui-"] { + font-size: 24px; + line-height: 1; +} +.navbar-lg .navbar-nav > li > a { + font-size: 15px; + line-height: 1.6; +} +@media (min-width: 768px) { + .navbar-lg .navbar-nav > li > a { + padding-top: 26px; + padding-bottom: 26px; + } +} +.navbar-lg .navbar-toggle { + height: 76px; + line-height: 76px; +} +.navbar-lg .navbar-form { + padding-top: 20.5px; + padding-bottom: 20.5px; +} +.navbar-lg .navbar-text { + padding-top: 26.5px; + padding-bottom: 26.5px; +} +.navbar-lg .navbar-btn { + margin-top: 17.5px; + margin-bottom: 17.5px; +} +.navbar-lg .navbar-btn.btn-sm { + margin-top: 20.5px; + margin-bottom: 20.5px; +} +.navbar-lg .navbar-btn.btn-xs { + margin-top: 25.5px; + margin-bottom: 25.5px; +} +.iconbar { + background-color: #2c3e50; + border-radius: 6px; + float: left; + margin: 0 20px 20px 0; + -webkit-backface-visibility: hidden; +} +.iconbar:before, +.iconbar:after { + content: " "; + /* 1 */ + + display: table; + /* 2 */ + +} +.iconbar:after { + clear: both; +} +.iconbar > ul { + display: block; + list-style-type: none; + margin: 0; + padding: 0; +} +.iconbar > ul > li { + margin: 0; + padding: 0; +} +.iconbar > ul > li.active > a { + color: #1abc9c; +} +.iconbar > ul > li:first-child > a { + padding-top: 32px; +} +.iconbar > ul > li > a { + color: #ffffff; + display: block; + font-size: 24px; + line-height: 1; + padding: 8px 30px 32px; + position: relative; + text-decoration: none; +} +.iconbar > ul > li > a:hover, +.iconbar > ul > li > a:focus { + color: #1abc9c; +} +@media (max-width: 767px) { + .iconbar > ul > li > a, + .iconbar.iconbar-horizontal > ul > li > a, + .iconbar > ul > li.active > a, + .iconbar.iconbar-horizontal > ul > li.active > a { + display: inline-block; + padding: 25px; + } + .iconbar .iconbar-unread { + right: 15px; + top: 13px; + } + .iconbar.iconbar-horizontal { + height: 70px; + overflow: auto; + width: 100%; + white-space: nowrap; + } + .iconbar.iconbar-horizontal > ul > li { + float: none; + display: inline; + } + .iconbar.iconbar-horizontal .iconbar-unread { + right: 15px; + } +} +[class*="iconbar-stick-"] { + border-radius: 0; + margin: 0; + position: fixed; + z-index: 1001; +} +[class*="iconbar-stick-"] > ul { + margin: 0; +} +.iconbar-stick-left { + bottom: 0; + left: 0; + top: 0; +} +.iconbar-unread { + background-color: #2a7aaf; + border-radius: 50%; + color: #ffffff; + font-family: "Lato", Helvetica, Arial, sans-serif; + font-size: 12px; + font-weight: 700; + line-height: 1.667; + min-width: 20px; + padding: 0 2px; + position: absolute; + right: 20px; + text-align: center; + top: -2px; + -webkit-font-smoothing: auto; +} +.iconbar-success { + background-color: #2ecc71; +} +.iconbar-success > ul > li.active > a { + color: #1e874b; +} +.iconbar-success > ul > li > a:hover, +.iconbar-success > ul > li > a:focus { + color: #1e874b; +} +.iconbar-success .iconbar-unread { + background-color: #1e874b; +} +.iconbar-danger { + background-color: #e74c3c; +} +.iconbar-danger > ul > li.active > a { + color: #983228; +} +.iconbar-danger > ul > li > a:hover, +.iconbar-danger > ul > li > a:focus { + color: #983228; +} +.iconbar-danger .iconbar-unread { + background-color: #983228; +} +.iconbar-warning { + background-color: #f1c40f; +} +.iconbar-warning > ul > li.active > a { + color: #9f810a; +} +.iconbar-warning > ul > li > a:hover, +.iconbar-warning > ul > li > a:focus { + color: #9f810a; +} +.iconbar-warning .iconbar-unread { + background-color: #9f810a; +} +.iconbar-info { + background-color: #3498db; +} +.iconbar-info > ul > li.active > a { + color: #226491; +} +.iconbar-info > ul > li > a:hover, +.iconbar-info > ul > li > a:focus { + color: #226491; +} +.iconbar-info .iconbar-unread { + background-color: #226491; +} +.iconbar-horizontal { + clear: both; + float: left; +} +.iconbar-horizontal > ul > li { + float: left; +} +.iconbar-horizontal > ul > li:first-child > a { + padding: 23px 32px 23px; +} +.iconbar-horizontal > ul > li > a { + padding: 23px 32px 23px 8px; +} +.iconbar-horizontal .iconbar-unread { + right: 23px; + top: 13px; +} +.breadcrumb { + background-color: #f3f4f5; + font-size: 15px; + font-weight: 700; + line-height: 1; + padding: 13px 20px; + border-radius: 6px; +} +.breadcrumb > li { + position: relative; + text-shadow: none; +} +.breadcrumb > li:after { + color: #bdc3c7; + content: "\e002"; + display: inline-block; + font-family: 'Flat-UI-Icons'; + font-size: 9.75px; + margin: -4px 9px 0 13px; + vertical-align: middle; + -webkit-font-smoothing: antialiased; +} +.breadcrumb .active { + color: #bdc3c7; + cursor: default; +} +.breadcrumb .active:after { + display: none; +} +.breadcrumb .active > a { + color: inherit; + cursor: inherit; +} +.breadcrumb > li + li:before { + content: ""; + padding: 0; +} +.breadcrumb-text { + color: #bdc3c7; + margin-bottom: 20px; +} +.breadcrumb-text .caption { + font-weight: 700; + margin: 0 0 3px; + font-size: 18px; +} +.breadcrumb-text .caption:after { + content: "\e02c"; + display: inline-block; + font-family: 'Flat-UI-Icons'; + font-weight: normal; + font-variant: normal; + margin-left: 5px; + text-transform: none; + -webkit-font-smoothing: antialiased; +} +.breadcrumb-text p { + font-size: 24px; + font-weight: 700; + margin-bottom: 20px; +} +.breadcrumb-text p a:after { + color: #bdc3c7; + content: "/"; + font-weight: normal; + margin: 0 4px 0 9px; +} +.popover { + background-color: #edeff1; + border: none; + padding: 0; + -webkit-box-shadow: none; + box-shadow: none; +} +.popover.right .arrow { + border-right-color: #edeff1; + left: -9px; + margin-top: -9px; +} +.popover.left .arrow { + border-left-color: #edeff1; + right: -9px; + margin-top: -9px; +} +.popover.bottom .arrow { + border-bottom-color: #edeff1; + margin-right: -9px; + top: -9px; +} +.popover.top .arrow { + border-top-color: #edeff1; + bottom: -9px; + margin-left: -9px; +} +.popover .arrow { + border-width: 9px; +} +.popover .arrow:after { + display: none; +} +.popover-title { + background-color: #bcc3ca; + color: #ffffff; + font-size: 15px; + line-height: 1.2; + font-weight: 700; + padding: 10px 20px 11px; +} +.popover-content { + padding: 9px 20px 1px; +} +.popover-content p { + font-size: 14px; + line-height: 1.286; +} +.dialog { + background-color: #edeff1; + border-top: 2px solid #d6dbdf; + font-size: 16px; + margin-bottom: 20px; + padding: 16px 0 20px; + position: relative; + text-align: center; +} +.dialog .btn { + vertical-align: baseline; +} +.dialog form { + margin-bottom: 0; +} +.dialog form input, +.dialog form .btn { + margin-bottom: 0; + margin-left: 20px; + vertical-align: top; +} +.dialog form input:first-child, +.dialog form .btn:first-child { + margin-left: 0; +} +.dialog.dialog-success { + background-color: #f0faf8; + border-top-color: #e2edeb; +} +.dialog.dialog-danger { + background-color: #fdefed; + border-top-color: #fadbd8; +} +.dialog.dialog-warning { + background-color: #fefae9; + border-top-color: #fcf3cf; +} +.dialog.dialog-info { + background-color: #edf6fc; + border-top-color: #d6eaf8; +} +.dialog.dialog-inverse { + background-color: #34495e; + border-top-color: #2a3a4b; + color: #ffffff; +} +@media (max-width: 767px) { + .dialog { + padding-left: 20px; + padding-right: 20px; + } + .dialog form .btn, + .dialog .btn { + display: block; + margin: 9px 0; + min-width: auto; + width: 100%; + } + .dialog form .btn:last-child, + .dialog .btn:last-child { + margin-bottom: 0; + } + .dialog form .btn + .btn, + .dialog .btn + .btn { + margin-top: 18px; + } + .dialog form input { + margin: 9px 0; + } +} +.modal { + z-index: 1050; +} +.modal-content { + background-color: #f9fafb; + border: 2px solid #ebedef; + border-radius: 7px; + -webkit-background-clip: border-box; + -moz-background-clip: border-box; + background-clip: border-box; + -webkit-box-shadow: none; + box-shadow: none; +} +.modal-backdrop { + z-index: 1040; + background-color: #243342; +} +.modal-backdrop.in { + opacity: 0.95; + filter: alpha(opacity=95); +} +.modal-header { + padding: 17px 19px 15px 24px; + border-bottom: 1px solid #ebedef; +} +.modal-header .close { + margin: 5px 0 0; + padding: 0; + font-size: 18px; + line-height: 1; + color: #34495e; +} +.modal-title { + margin: 0; + font-size: 24px; + line-height: 30px; +} +.modal-body { + padding: 20px 24px 20px; +} +.modal-body p { + font-size: 16px; + line-height: 1.625; +} +.modal-footer { + padding: 19px 22px 20px; + margin-top: 0; + background-color: #ebedef; + border-top: none; + border-radius: 0 0 7px 7px; +} +.modal-footer .btn + .btn { + margin-left: 12px; +} +@media (max-width: 767px) { + .modal-footer .btn { + display: block; + min-width: auto; + margin-bottom: 15px; + } + .modal-footer .btn:last-child { + margin-bottom: 0; + } + .modal-footer .btn + .btn { + margin-left: 0; + } +} +@media (min-width: 768px) { + .modal-dialog { + width: 624px; + margin: 30px auto; + } + .modal-content { + -webkit-box-shadow: none; + box-shadow: none; + } + .modal-sm { + width: 300px; + } + .modal-lg { + width: 900px; + } +} +/* ============================================================ + * bootstrapSwitch v1.3 by Larentis Mattia @spiritualGuru + * http://www.larentis.eu/switch/ + * ============================================================ + * Licensed under the Apache License, Version 2.0 + * http://www.apache.org/licenses/LICENSE-2.0 + * ============================================================ */ +.has-switch { + border-radius: 30px; + display: inline-block; + cursor: pointer; + line-height: 1.72222; + overflow: hidden; + position: relative; + text-align: left; + width: 80px; + -webkit-mask: url('../images/switch/mask.png') 0 0 no-repeat; + mask: url('../images/switch/mask.png') 0 0 no-repeat; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + -o-user-select: none; + user-select: none; +} +.has-switch.deactivate { + opacity: 0.5; + filter: alpha(opacity=50); + cursor: default !important; +} +.has-switch.deactivate label, +.has-switch.deactivate span { + cursor: default !important; +} +.has-switch > div { + width: 130px; + position: relative; + top: 0; +} +.has-switch > div.switch-animate { + -webkit-transition: left 0.25s ease-out; + transition: left 0.25s ease-out; +} +.has-switch > div.switch-off { + left: -50px; +} +.has-switch > div.switch-off label { + background-color: #7f8c9a; + border-color: #bdc3c7; + -webkit-box-shadow: -1px 0 0 rgba(255, 255, 255, 0.5); + box-shadow: -1px 0 0 rgba(255, 255, 255, 0.5); +} +.has-switch > div.switch-on { + left: 0; +} +.has-switch > div.switch-on label { + background-color: #1abc9c; +} +.has-switch input[type=checkbox] { + display: none; +} +.has-switch span { + cursor: pointer; + font-size: 15px; + font-weight: 700; + float: left; + height: 29px; + line-height: 19px; + margin: 0; + padding-bottom: 6px; + padding-top: 5px; + position: relative; + text-align: center; + width: 50%; + z-index: 1; + -webkit-transition: 0.25s ease-out; + transition: 0.25s ease-out; +} +.has-switch span.switch-left { + border-radius: 30px 0 0 30px; + background-color: #34495e; + color: #1abc9c; + border-left: 1px solid transparent; +} +.has-switch span.switch-right { + border-radius: 0 30px 30px 0; + background-color: #bdc3c7; + color: #ffffff; + text-indent: 7px; +} +.has-switch span.switch-right [class*="fui-"] { + text-indent: 0; +} +.has-switch label { + border: 4px solid #34495e; + border-radius: 50%; + float: left; + height: 29px; + margin: 0 -15px; + padding: 0; + position: relative; + vertical-align: middle; + width: 29px; + z-index: 100; + -webkit-transition: 0.25s ease-out; + transition: 0.25s ease-out; +} +.switch-square { + border-radius: 6px; + -webkit-mask: url('../images/switch/mask.png') 0 0 no-repeat; + mask: url('../images/switch/mask.png') 0 0 no-repeat; +} +.switch-square > div.switch-off label { + border-color: #7f8c9a; + border-radius: 6px 0 0 6px; +} +.switch-square span.switch-left { + border-radius: 6px 0 0 6px; +} +.switch-square span.switch-left [class*="fui-"] { + text-indent: -10px; +} +.switch-square span.switch-right { + border-radius: 0 6px 6px 0; +} +.switch-square span.switch-right [class*="fui-"] { + text-indent: 5px; +} +.switch-square label { + border-radius: 0 6px 6px 0; + border-color: #1abc9c; +} +.carousel-inner > .item.active > img, +.carousel-inner > .item.active > a > img { + border-radius: 6px; +} +@media (max-width: 767px) { + .carousel-inner > .item.active > img { + border-radius: 6px 6px 0 0; + } +} +.carousel-inner > .item.active.left > img, +.carousel-inner > .item.active.right > img, +.carousel-inner > .item.active.left > a > img, +.carousel-inner > .item.active.right > a > img { + border-radius: 0; +} +.carousel-control { + position: absolute; + top: 45%; + font-size: 20px; + line-height: 32px; + color: #ffffff; + text-indent: 1px; + border: 3px solid #ffffff; + height: 40px; + right: 15px; + margin-top: -20px; + text-align: center; + width: 40px; + outline: none !important; + border-radius: 23px; + opacity: 0.5; + filter: alpha(opacity=50); +} +.carousel-control.left, +.carousel-control.right { + background: none #2c3e50; +} +.carousel-control.left { + text-indent: -1px; + left: 15px; +} +.carousel-control.right { + left: auto; + right: 15px; +} +.carousel-indicators { + bottom: auto; + left: auto; + margin: 0; + right: 16px; + top: 16px; + width: auto; + line-height: 8px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + -o-user-select: none; + user-select: none; +} +.carousel-indicators li { + vertical-align: top; + border: none; + width: 8px; + height: 8px; + margin: 0 0 0 6px; + background-color: #2c3e50; + background-color: rgba(44, 62, 80, 0.5); +} +.carousel-indicators li.active { + background-color: #fff; + width: 8px; + height: 8px; + margin: 0 0 0 6px; +} +.carousel-caption { + padding: 20px 19px 22px; + background: #243342; + background: rgba(36, 51, 66, 0.7); + left: 0; + right: 0; + bottom: 0; + text-align: left; + border-radius: 0 0 6px 6px; + text-shadow: none; +} +.carousel-caption h3, +.carousel-caption p { + color: #ffffff; +} +.carousel-caption h3 { + font-size: 18px; + line-height: 20px; + margin: 0 0 5px; +} +.carousel-caption p { + font-size: 15px; + line-height: 20px; + margin-bottom: 0; +} +@media (max-width: 767px) { + .carousel-caption { + position: static; + } +} +.last-col { + overflow: hidden; +} +.ptn, +.pvn, +.pan { + padding-top: 0 !important; +} +.ptx, +.pvx, +.pax { + padding-top: 3px !important; +} +.pts, +.pvs, +.pas { + padding-top: 5px !important; +} +.ptm, +.pvm, +.pam { + padding-top: 10px !important; +} +.ptl, +.pvl, +.pal { + padding-top: 20px !important; +} +.prn, +.phn, +.pan { + padding-right: 0 !important; +} +.prx, +.phx, +.pax { + padding-right: 3px !important; +} +.prs, +.phs, +.pas { + padding-right: 5px !important; +} +.prm, +.phm, +.pam { + padding-right: 10px !important; +} +.prl, +.phl, +.pal { + padding-right: 20px !important; +} +.pbn, +.pvn, +.pan { + padding-bottom: 0 !important; +} +.pbx, +.pvx, +.pax { + padding-bottom: 3px !important; +} +.pbs, +.pvs, +.pas { + padding-bottom: 5px !important; +} +.pbm, +.pvm, +.pam { + padding-bottom: 10px !important; +} +.pbl, +.pvl, +.pal { + padding-bottom: 20px !important; +} +.pln, +.phn, +.pan { + padding-left: 0 !important; +} +.plx, +.phx, +.pax { + padding-left: 3px !important; +} +.pls, +.phs, +.pas { + padding-left: 5px !important; +} +.plm, +.phm, +.pam { + padding-left: 10px !important; +} +.pll, +.phl, +.pal { + padding-left: 20px !important; +} +.mtn, +.mvn, +.man { + margin-top: 0px !important; +} +.mtx, +.mvx, +.max { + margin-top: 3px !important; +} +.mts, +.mvs, +.mas { + margin-top: 5px !important; +} +.mtm, +.mvm, +.mam { + margin-top: 10px !important; +} +.mtl, +.mvl, +.mal { + margin-top: 20px !important; +} +.mrn, +.mhn, +.man { + margin-right: 0px !important; +} +.mrx, +.mhx, +.max { + margin-right: 3px !important; +} +.mrs, +.mhs, +.mas { + margin-right: 5px !important; +} +.mrm, +.mhm, +.mam { + margin-right: 10px !important; +} +.mrl, +.mhl, +.mal { + margin-right: 20px !important; +} +.mbn, +.mvn, +.man { + margin-bottom: 0px !important; +} +.mbx, +.mvx, +.max { + margin-bottom: 3px !important; +} +.mbs, +.mvs, +.mas { + margin-bottom: 5px !important; +} +.mbm, +.mvm, +.mam { + margin-bottom: 10px !important; +} +.mbl, +.mvl, +.mal { + margin-bottom: 20px !important; +} +.mln, +.mhn, +.man { + margin-left: 0px !important; +} +.mlx, +.mhx, +.max { + margin-left: 3px !important; +} +.mls, +.mhs, +.mas { + margin-left: 5px !important; +} +.mlm, +.mhm, +.mam { + margin-left: 10px !important; +} +.mll, +.mhl, +.mal { + margin-left: 20px !important; +} diff --git a/app/assets/stylesheets/orders.css.scss b/app/assets/stylesheets/orders.css.scss new file mode 100644 index 0000000..3b0428a --- /dev/null +++ b/app/assets/stylesheets/orders.css.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the orders controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/assets/stylesheets/products.css.scss b/app/assets/stylesheets/products.css.scss new file mode 100644 index 0000000..f05059f --- /dev/null +++ b/app/assets/stylesheets/products.css.scss @@ -0,0 +1,12 @@ +// Place all the styles related to the products controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ + +.product-price{ + padding-top: 20px; + padding-bottom: 20px; + + font-size: 30px; + font-weight: bold; + color: #ff007c; +} diff --git a/app/controllers/account/orders_controller.rb b/app/controllers/account/orders_controller.rb new file mode 100644 index 0000000..1bc5073 --- /dev/null +++ b/app/controllers/account/orders_controller.rb @@ -0,0 +1,24 @@ +class Account::OrdersController < ApplicationController + + before_action :find_order, :except=>[:index] + + def index + @orders = current_user.orders.recent + end + + def cancel + @order.cancel_order! + redirect_to :back + end + + def return + @order.return_good! + redirect_to :back + end + + private + def find_order + @order = Order.find_by_token(params[:id]) + end + +end diff --git a/app/controllers/admin/orders_controller.rb b/app/controllers/admin/orders_controller.rb new file mode 100644 index 0000000..8793fc3 --- /dev/null +++ b/app/controllers/admin/orders_controller.rb @@ -0,0 +1,62 @@ +class Admin::OrdersController < AdminController + + before_action :find_order, :except=>[:index] + + def index + @orders = Order.recent + end + + def show + #@order = Order.find_by_token(params[:id]) + @order_info = @order.info + @order_items = @order.items + end + + + def update + #@order = Order.find_by_token(params[:id]) + + h = { "paid" =>:make_payment, "shipping"=>:ship, "shipped"=> :deliver , "order_cancelled"=>:cancel_order, "good_returned" => :return_good} + switch_state = h[params[:order][:aasm_state]] + + begin + @order.send(switch_state) + @order.save + flash[:notice] = "訂單狀態更改成功" + redirect_to admin_orders_path + rescue + redirect_to admin_orders_path , :alert => "Sorry,訂單狀態的更改不符合程序" + end + + end + +# copy from solution + + def ship + @order.ship! + redirect_to :back + end + + def shipped + @order.deliver! + redirect_to :back + end + + def cancel + @order.cancel_order! + redirect_to :back + end + + def return + @order.return_good! + redirect_to :back + end + + +########################### + + def find_order + @order = Order.find_by_token(params[:id]) + end + +end diff --git a/app/controllers/admin/photos_controller.rb b/app/controllers/admin/photos_controller.rb new file mode 100644 index 0000000..8cbf536 --- /dev/null +++ b/app/controllers/admin/photos_controller.rb @@ -0,0 +1,31 @@ +class Admin::PhotosController < AdminController + + def new + #@photo = Photo.new + @product = Product.find(params[:product_id]) + @photo = @product.photos.build + end + + def create + #@photo = Photo.new(photo_params) + @product = Product.find(params[:product_id]) + @photo = @product.photos.build(photo_params) + if @photo.save + redirect_to admin_product_path(@product) + end + end + + def index + @photos = Photo.all + end + + + + private + + def photo_params + params.require(:photo).permit(:image) + end + + +end diff --git a/app/controllers/admin/products_controller.rb b/app/controllers/admin/products_controller.rb new file mode 100644 index 0000000..a859855 --- /dev/null +++ b/app/controllers/admin/products_controller.rb @@ -0,0 +1,61 @@ +class Admin::ProductsController < AdminController + + before_action :find_product, :only => [:show, :edit, :update, :destroy] + + + def index + @products = Product.order("created_at DESC").paginate(:page => params[:page], :per_page=>20) + end + + def show + @photos = @product.photos + end + + def new + @product = Product.new + @product.photos.build + #@photo = @Product.photos.new + end + + def create + @product = Product.new(product_params) + + if @product.save + redirect_to admin_products_path + else + render :new + end + end + + def edit + end + + def update + if @product.update(product_params) + redirect_to admin_products_path + else + render :edit + end + + end + + def destroy + if @product.destroy + redirect_to admin_products_path + end + end + + + + private + + def find_product + @product = Product.find(params[:id]) + end + + def product_params + params.require(:product).permit(:title, :description, :quantity, :price, :photos_attributes => [:id, :image, :_destroy]) + end + + +end diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb new file mode 100644 index 0000000..c43977b --- /dev/null +++ b/app/controllers/admin_controller.rb @@ -0,0 +1,9 @@ +class AdminController < ApplicationController + + layout "admin" + + #the order is important, you should confirm current_user is exit brfore called admin_required + before_action :authenticate_user! + before_action :admin_required + +end diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index d83690e..6d4a51c 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -2,4 +2,37 @@ class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception + + #It's not a good solution to solve the problem about ransack + #before_action :declare_ransack + + + def admin_required + redirect_to root_path if !current_user.admin? + end + + helper_method :current_cart + + def current_cart + @current_cart ||= find_cart + end + + def find_cart + cart = Cart.find_by(:id => session[:cart_id]) + + unless cart.present? + cart = Cart.create + end + + session[:cart_id] = cart.id + cart + end + +# move declartion to view +# private +# def declare_ransack +# @q = Product.ransack(params[:q]) +# end + + end diff --git a/app/controllers/card_charges_controller.rb b/app/controllers/card_charges_controller.rb new file mode 100644 index 0000000..2f39c06 --- /dev/null +++ b/app/controllers/card_charges_controller.rb @@ -0,0 +1,17 @@ +class CardChargesController < ApplicationController + + before_action :authenticate_user! + + def create + @order = current_user.orders.find_by_token(params[:order_id]) + e = CreditCardPaymentService.new(current_cart, @order, current_user, params).pay! + if e.present? + flash[:error] = e.message + render "orders/pay_with_credit_card" + else + redirect_to order_path(@order.token), :notice => "成功完成付款" + end + + end + +end \ No newline at end of file diff --git a/app/controllers/cart_items_controller.rb b/app/controllers/cart_items_controller.rb new file mode 100644 index 0000000..4fe01e7 --- /dev/null +++ b/app/controllers/cart_items_controller.rb @@ -0,0 +1,55 @@ +class CartItemsController < ApplicationController + + before_action :authenticate_user! + + def update + + @cart_item = current_cart.cart_items.find(params[:id]) + if @cart_item.update(cart_item_params) + respond_to do |format| + format.html { redirect_to carts_path } + format.js + end + #redirect_to carts_path + else + redirect_to carts_path + #render "carts/index" + end + + end + + def add_to_cart + @product = Product.find(params[:id]) + + if !current_cart.items.include?(@product) + current_cart.add_product_to_cart(@product) + flash[:notice] = "你已成功將 #{@product.title} 加入購物車" + else + flash[:warning] = "你的購物車內已有此物品" + end + + redirect_to :back + end + + def remove_from_cart + #@product = Product.find(params[:id]) + @cart_item = current_cart.cart_items.find(params[:id]) + @product = @cart_item.product + + if current_cart.items.include?(@product) + current_cart.remove_product_from_cart!(@cart_item) + flash[:notice] = "你已成功將 #{@product.title} 移除購物車" + else + flash[:warning] = "你的購物車內沒有此物品" + end + redirect_to carts_path + end + + + private + + def cart_item_params + params.require(:cart_item).permit(:quantity) + end + +end diff --git a/app/controllers/carts_controller.rb b/app/controllers/carts_controller.rb new file mode 100644 index 0000000..fce86c5 --- /dev/null +++ b/app/controllers/carts_controller.rb @@ -0,0 +1,18 @@ +class CartsController < ApplicationController + + before_action :authenticate_user!, :only=>[:checkout] + def index + #fresh_when(:etag=> current_cart, last_modified: current_cart.updated_at) + end + + def checkout + @order = current_user.orders.build + @info = @order.build_info + end + + def remove_all + current_cart.remove_all_product_from_cart! + #render :index + redirect_to carts_path + end +end diff --git a/app/controllers/orders_controller.rb b/app/controllers/orders_controller.rb new file mode 100644 index 0000000..ed10c9d --- /dev/null +++ b/app/controllers/orders_controller.rb @@ -0,0 +1,55 @@ +class OrdersController < ApplicationController + + before_action :authenticate_user! + + def create + @order = current_user.orders.build(order_params) + #@order.save will validate the order_info's column + if @order.save + #@order.build_item_cache_from_cart(current_cart) + #@order.calculate_total!(current_cart) + #OrderMailer.notify_order_placed(@order).deliver + OrderPlacingService.new(current_cart, @order).place_order! + redirect_to order_path(@order.token) + else + #cross controller + render "carts/checkout" + end + end + + def show + #@order = current_user.orders.includes(:items).find_by_token(params[:id]) + @order = current_user.orders.find_by_token(params[:id]) + @order_info = @order.info + @order_items = @order.items + + set_page_title @order.token + set_page_description @order.aasm_state + set_page_keywords @order.token + + end + + def pay_with_credit_card + @order = current_user.orders.find_by_token(params[:id]) + + if current_cart.cart_items_quantity_is_legal? + #@order.set_payment_with!("credit_card") + #@order.make_payment! + + #empty cart and liquidate inventories after payment + #current_cart.empty_cart! + #send email to tell user payment is successful + #OrderMailer.notify_after_payment(@order).deliver + + render :pay_with_credit_card + else + redirect_to carts_path, :notice => "Sorry,存貨不足" + end + end + + private + def order_params + params.require(:order).permit(:info_attributes => [:billing_name, :billing_address, :shipping_name, :shipping_address] ) + end + +end diff --git a/app/controllers/products_controller.rb b/app/controllers/products_controller.rb new file mode 100644 index 0000000..21c0f54 --- /dev/null +++ b/app/controllers/products_controller.rb @@ -0,0 +1,32 @@ +class ProductsController < ApplicationController + + def index + @products = Product.order("created_at DESC").paginate(:page => params[:page], :per_page=>20) + #@q = Product.search(params[:q]) + + #@q = Product.ransack(params[:q]) + #@products = @q.result(distinct: true) + + #fresh_when last_modified: @products.maximum(:updated_at) , public: true + + end + + + def show + + @product = Product.find(params[:id]) + @photos = @product.photos + set_page_title @product.title + set_page_description @product.description.truncate(100) + set_page_keywords @product.title + #set_page_image @product.default_photo.image.url + #fresh_when(:etag=> @product, last_modified: @product.updated_at, public: true) + end + + def search + @q = Product.ransack(params[:q]) + @products = @q.result(distinct: true).paginate(:page => params[:page], :per_page => 20 ) + end + + +end diff --git a/app/helpers/account/orders_helper.rb b/app/helpers/account/orders_helper.rb new file mode 100644 index 0000000..6a78d4f --- /dev/null +++ b/app/helpers/account/orders_helper.rb @@ -0,0 +1,17 @@ +module Account::OrdersHelper + + def render_order_options_for_user(order) + link_class = "btn btn-primary btn=lg" + state = order.aasm_state + + if state == "order_placed" || state == "paid" + link_to("取消訂單", cancel_account_order_path(order.token), :class=>link_class, :method => :post) + elsif state =="shipping" || state == "shipped" + link_to("退貨", return_account_order_path(order.token), :class=>link_class, :method => :post) + else + link_to("Disable" , "#", :class => "btn btn-warnrng btn-lg disabled", :role=>"button") + end + end + + +end diff --git a/app/helpers/admin/orders_helper.rb b/app/helpers/admin/orders_helper.rb new file mode 100644 index 0000000..9c008a6 --- /dev/null +++ b/app/helpers/admin/orders_helper.rb @@ -0,0 +1,36 @@ +module Admin::OrdersHelper + def render_order_options_for_admin(order) + link_class = "btn btn-info btn=lg" + + html_obj = case order.aasm_state + when "order_placed" + link_to("取消訂單", cancel_admin_order_path(order.token), :class=>link_class, :method => :post) + when "paid" + link_to("取消訂單", cancel_admin_order_path(order.token), :class=>link_class, :method => :post)+ link_to("出貨", ship_admin_order_path(order.token), :class=>link_class, :method => :post) + when "shipping" + link_to("設為到貨", shipped_admin_order_path(order.token), :class=>link_class, :method => :post) + when "shipped" + link_to("退貨", return_admin_order_path(order.token), :class=>link_class, :method => :post) + when "order_cancelled" + content_tag(:span, "訂單已取消" ,:class=>"label label-danger" ) + when "good_returned" + content_tag(:span, "已退貨" ,:class=>"label label-danger" ) + end + + html_obj + end + + def render_admin_order_table_row(order) + tr_class = "" + if !order.is_pay? + tr_class = "info" + elsif order.is_failed? + tr_class = "danger" + else + tr_class = "" + end + + tag(:tr , :class=>tr_class) + end + +end diff --git a/app/helpers/admin/photos_helper.rb b/app/helpers/admin/photos_helper.rb new file mode 100644 index 0000000..d77b10b --- /dev/null +++ b/app/helpers/admin/photos_helper.rb @@ -0,0 +1,2 @@ +module Admin::PhotosHelper +end diff --git a/app/helpers/admin/products_helper.rb b/app/helpers/admin/products_helper.rb new file mode 100644 index 0000000..977a242 --- /dev/null +++ b/app/helpers/admin/products_helper.rb @@ -0,0 +1,2 @@ +module Admin::ProductsHelper +end diff --git a/app/helpers/admin_helper.rb b/app/helpers/admin_helper.rb new file mode 100644 index 0000000..d5c6d35 --- /dev/null +++ b/app/helpers/admin_helper.rb @@ -0,0 +1,2 @@ +module AdminHelper +end diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index de6be79..e5e93a9 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,2 +1,24 @@ module ApplicationHelper + + def notice_message + alert_types = {:notice=>:success , :alert=>:danger} + + close_button_options = {:class=>"close", "data-dismiss" => "alert", "aria-hidden"=>true} + close_button = content_tag(:button, "x" , close_button_options) + + alerts = flash.map do |type, message| + alert_content = close_button + message + + #?? + alert_type = alert_types[type.to_sym] || type + alert_class = "alert alert-#{alert_type} alert-dissable" + content_tag(:div , alert_content, :class=>alert_class) + + end + + #change array to string + #print raw html tag to view + alerts.join("\n").html_safe + end + end diff --git a/app/helpers/card_charges_helper.rb b/app/helpers/card_charges_helper.rb new file mode 100644 index 0000000..5c18c54 --- /dev/null +++ b/app/helpers/card_charges_helper.rb @@ -0,0 +1,2 @@ +module CardChargesHelper +end diff --git a/app/helpers/cart_items_helper.rb b/app/helpers/cart_items_helper.rb new file mode 100644 index 0000000..f30f683 --- /dev/null +++ b/app/helpers/cart_items_helper.rb @@ -0,0 +1,2 @@ +module CartItemsHelper +end diff --git a/app/helpers/carts_helper.rb b/app/helpers/carts_helper.rb new file mode 100644 index 0000000..080c4c2 --- /dev/null +++ b/app/helpers/carts_helper.rb @@ -0,0 +1,11 @@ +module CartsHelper + + def cart_items_count(cart) + cart.cart_items.count + end + + def render_cart_total_price(current_cart) + current_cart.total_price + end + +end diff --git a/app/helpers/orders_helper.rb b/app/helpers/orders_helper.rb new file mode 100644 index 0000000..7faf96e --- /dev/null +++ b/app/helpers/orders_helper.rb @@ -0,0 +1,43 @@ +module OrdersHelper + + def render_order_link(order) + link_to(order.token, order_path(order.token)) + end + + def render_admin_order_link(order) + link_to(order.token, admin_order_path(order.token)) + end + + def render_order_created_time(order) + order.created_at.to_s(:short) + end + + def render_order_user_name(user) + user.email + end + + def render_order_total(order) + order.total + end + + def render_order_state(order) + span_class = "label " + + if order.is_failed? + span_class += "label-danger" + else + span_class += "label-info" + end + content_tag(:span , t("orders.order_state.#{order.aasm_state}") ,:class=>span_class) + + end + + def render_order_payment_method(order) + t("orders.payment_methods.#{order.payment_method}") if order.payment_method.present? + end + + def render_stripe_public_key + #javascript_tag("Stripe.setPublishableKey('#{Settings.stripe.public_key}'", :type=>'text/javascript'); + end + +end diff --git a/app/helpers/products_helper.rb b/app/helpers/products_helper.rb new file mode 100644 index 0000000..cac055b --- /dev/null +++ b/app/helpers/products_helper.rb @@ -0,0 +1,38 @@ +module ProductsHelper + + def render_product_photo(photo, size="thumb") + if photo.present? + + image_url = photo.image.send(size).url + #= image_url = photo.image.thumb.url + else + case size + when :medium + volume = "300x300" + else + volume = "200x200" + end + + image_url = "http://placehold.it/#{volume}&text=No Pic" + end + + image_tag( image_url, :class=>"img-rounded") + end + + def render_product_name(product) + product.title + end + + def render_product_desc(product) + simple_format(product.description) + end + + def render_product_quantity(product) + product.quantity + end + + def render_product_price(product) + product.price + end + +end diff --git a/app/mailers/order_mailer.rb b/app/mailers/order_mailer.rb new file mode 100644 index 0000000..62c1d55 --- /dev/null +++ b/app/mailers/order_mailer.rb @@ -0,0 +1,26 @@ +class OrderMailer < ActionMailer::Base + default from: "Ryan@artstore.com" + + def notify_order_placed(order) + + @order = order + @user = order.user + @order_items = @order.items + @order_info = @order.info + + + mail(:to => @user.email , :subject => " [ArtStore] 感謝您完成本次的下單,以下是您這次購物明細 #{order.token}") + end + + + def notify_after_payment(order) + @order = order + @user = order.user + @order_items = @order.items + @order_info = @order.info + + mail(:to => @user.email , :subject => " [ArtStore] 您已付款成功,您的訂單編號為: #{order.token}") + + end + +end \ No newline at end of file diff --git a/app/models/cart.rb b/app/models/cart.rb new file mode 100644 index 0000000..63021a4 --- /dev/null +++ b/app/models/cart.rb @@ -0,0 +1,56 @@ +# == Schema Information +# +# Table name: carts +# +# id :integer not null, primary key +# created_at :datetime +# updated_at :datetime +# + +class Cart < ActiveRecord::Base + + has_many :cart_items, :dependent => :destroy + has_many :items, :through => :cart_items, :source => :product + + def add_product_to_cart(product) + #items << product + cart_item = self.cart_items.build + cart_item.product = product + cart_item.quantity = 1 + cart_item.save + end + + def remove_product_from_cart!(cart_item) + #items.destroy(product) + self.cart_items.destroy(cart_item) + end + + def remove_all_product_from_cart! + #items.clear + self.cart_items.clear + end + + def total_price + cart_items.inject(0) {|sum , cart_item| sum + (cart_item.product.price * cart_item.quantity)} + #items.inject(0) {|sum, item| sum + item.price} + end + + def empty_cart! + self.cart_items.each do |cart_item| + @product = cart_item.product + @product.liquidate_inventory!(cart_item.quantity) + end + self.destroy + end + + def cart_items_quantity_is_legal? + self.cart_items.each do |cart_item| + @product = cart_item.product + if !@product.product_enough?(cart_item.quantity) + return false + end + end + return true + end + +end diff --git a/app/models/cart_item.rb b/app/models/cart_item.rb new file mode 100644 index 0000000..8d56030 --- /dev/null +++ b/app/models/cart_item.rb @@ -0,0 +1,18 @@ +# == Schema Information +# +# Table name: cart_items +# +# id :integer not null, primary key +# cart_id :integer +# product_id :integer +# created_at :datetime +# updated_at :datetime +# quantity :integer default(1) +# + +class CartItem < ActiveRecord::Base + + belongs_to :cart + belongs_to :product + +end diff --git a/app/models/concerns/tokenable.rb b/app/models/concerns/tokenable.rb new file mode 100644 index 0000000..1ef5cce --- /dev/null +++ b/app/models/concerns/tokenable.rb @@ -0,0 +1,13 @@ +module Tokenable + + extend ActiveSupport::Concern + + included do + before_create :generate_token + end + + def generate_token + self.token = SecureRandom.uuid + end + +end \ No newline at end of file diff --git a/app/models/order.rb b/app/models/order.rb new file mode 100644 index 0000000..f280e89 --- /dev/null +++ b/app/models/order.rb @@ -0,0 +1,97 @@ +# == Schema Information +# +# Table name: orders +# +# id :integer not null, primary key +# user_id :integer +# total :integer default(0) +# paid :boolean default(FALSE) +# created_at :datetime +# updated_at :datetime +# token :string(255) +# payment_method :string(255) +# aasm_state :string(255) default("order_placed") +# + +class Order < ActiveRecord::Base + + include Tokenable + + belongs_to :user + has_many :items, :class_name => "OrderItem", :dependent => :destroy + has_one :info, :class_name => "OrderInfo", :dependent => :destroy + + accepts_nested_attributes_for :info + + scope :recent, -> { order("created_at DESC")} + + #before_create :generate_token + + def build_item_cache_from_cart(cart) + cart.cart_items.each do |cart_item| + item = items.build + item.product_name = cart_item.product.title + item.quantity = cart_item.quantity + item.price = cart_item.product.price + item.save + end + end + + def calculate_total!(current_cart) + self.total = current_cart.total_price + self.save + end + + #def generate_token + # self.token = SecureRandom.uuid + #end + + def set_payment_with!(method) + self.update_column(:payment_method, method) + end + + def pay! + self.update_column(:paid, true) + end + + def is_pay? + self.paid + end + + def is_failed? + self.aasm_state=="order_cancelled" || self.aasm_state=="good_returned" + end + + include AASM + + aasm do + state :order_placed, :initial => true + + state :paid, :after_commit => :pay! + event :make_payment do + transitions :from => :order_placed, :to => :paid + end + + state :shipping + event :ship do + transitions :from => :paid, :to => :shipping + end + + state :shipped + event :deliver do + transitions :from => :shipping, :to => :shipped + end + + state :order_cancelled + event :cancel_order do + transitions :from => [:order_placed, :paid], :to => :order_cancelled + end + + state :good_returned + event :return_good do + transitions :from => :shipped, :to => :good_returned + end + + end + +end diff --git a/app/models/order_info.rb b/app/models/order_info.rb new file mode 100644 index 0000000..163120c --- /dev/null +++ b/app/models/order_info.rb @@ -0,0 +1,23 @@ +# == Schema Information +# +# Table name: order_infos +# +# id :integer not null, primary key +# order_id :integer +# billing_name :string(255) +# billing_address :string(255) +# shipping_name :string(255) +# shipping_address :string(255) +# created_at :datetime +# updated_at :datetime +# + +class OrderInfo < ActiveRecord::Base + + belongs_to :order + + validates :billing_name, :presence => true + validates :billing_address, :presence => true + validates :shipping_name, :presence => true + validates :shipping_address, :presence => true +end diff --git a/app/models/order_item.rb b/app/models/order_item.rb new file mode 100644 index 0000000..1ed729e --- /dev/null +++ b/app/models/order_item.rb @@ -0,0 +1,16 @@ +# == Schema Information +# +# Table name: order_items +# +# id :integer not null, primary key +# product_name :string(255) +# price :float +# quantity :integer +# order_id :integer +# created_at :datetime +# updated_at :datetime +# + +class OrderItem < ActiveRecord::Base + belongs_to :order +end diff --git a/app/models/photo.rb b/app/models/photo.rb new file mode 100644 index 0000000..a08bc39 --- /dev/null +++ b/app/models/photo.rb @@ -0,0 +1,15 @@ +# == Schema Information +# +# Table name: photos +# +# id :integer not null, primary key +# created_at :datetime +# updated_at :datetime +# image :string(255) +# product_id :integer +# + +class Photo < ActiveRecord::Base + mount_uploader :image, ImageUploader + belongs_to :product +end diff --git a/app/models/product.rb b/app/models/product.rb new file mode 100644 index 0000000..73a51b9 --- /dev/null +++ b/app/models/product.rb @@ -0,0 +1,52 @@ +# == Schema Information +# +# Table name: products +# +# id :integer not null, primary key +# title :string(255) +# description :text +# quantity :integer default(0) +# created_at :datetime +# updated_at :datetime +# price :float default(0.0) +# created_on :date +# updated_on :date +# + +class Product < ActiveRecord::Base + has_many :photos, :dependent => :delete_all + accepts_nested_attributes_for :photos, :reject_if => :all_blank, allow_destroy: true + + validates :title, :presence => true + validates :quantity, :presence => true + + def default_photo + photos.first + end + + def photos_are_empty? + photos.empty? + end + + def out_of_stock? + quantity==0 + end + + def liquidate_inventory!(sold_quantity) + self.quantity -= sold_quantity + self.save + end + + def product_enough?(cart_item_quantity) + self.quantity >= cart_item_quantity + end + + #def self.search(search) + # if search + # @product = Product.where('title LIKE ?', "%#{params[:q]}%") + # else + # @product = Product.all + # end + #end + +end diff --git a/app/models/settings.rb b/app/models/settings.rb new file mode 100644 index 0000000..55e35d4 --- /dev/null +++ b/app/models/settings.rb @@ -0,0 +1,4 @@ +class Settings < Settingslogic + source "#{Rails.root}/config/settings.yml" + namespace Rails.env +end \ No newline at end of file diff --git a/app/models/user.rb b/app/models/user.rb new file mode 100644 index 0000000..8601824 --- /dev/null +++ b/app/models/user.rb @@ -0,0 +1,33 @@ +# == Schema Information +# +# Table name: users +# +# id :integer not null, primary key +# email :string(255) default(""), not null +# encrypted_password :string(255) default(""), not null +# reset_password_token :string(255) +# reset_password_sent_at :datetime +# remember_created_at :datetime +# sign_in_count :integer default(0), not null +# current_sign_in_at :datetime +# last_sign_in_at :datetime +# current_sign_in_ip :string(255) +# last_sign_in_ip :string(255) +# created_at :datetime +# updated_at :datetime +# is_admin :boolean default(FALSE) +# + +class User < ActiveRecord::Base + # Include default devise modules. Others available are: + # :confirmable, :lockable, :timeoutable and :omniauthable + devise :database_authenticatable, :registerable, + :recoverable, :rememberable, :trackable, :validatable + + has_many :orders + + def admin? + is_admin + end + +end diff --git a/app/services/credit_card_payment_service.rb b/app/services/credit_card_payment_service.rb new file mode 100644 index 0000000..db45de7 --- /dev/null +++ b/app/services/credit_card_payment_service.rb @@ -0,0 +1,55 @@ +class CreditCardPaymentService + + def initialize(cart,order,user, params) + @cart = cart + @order = order + @user = user + @params = params + end + + def pay! + if !@cart.cart_items_quantity_is_legal? + #redirect_to will not ternminate the action + #If you want to terminate the action. You should add return + #after the redirect_to + redirect_to carts_path, :notice => "Sorry,存貨不足" + return + end + + @amount = @order.total * 100 # in cents + + Stripe.api_key = Settings.stripe.secret_key + + customer = Stripe::Customer.create( + #:email => current_user.email, + :email => @user.email, + :card => @params[:stripeToken] + ) + + charge = Stripe::Charge.create( + :customer => customer.id, + :amount => @amount, + :description => @order.token , + :currency => 'usd' + ) + + @order.set_payment_with!("credit_card") + @order.make_payment! + + #empty cart and liquidate inventories after payment + #current_cart.empty_cart! + @cart.empty_cart! + #send email to tell user payment is successful + #OrderMailer.notify_after_payment(@order).deliver + EmailWorker.perform_async(@order.id,'after_paying_with_credit_card') + + #redirect_to order_path(@order.token), :notice => "成功完成付款" + return + + rescue Stripe::CardError => e + return e + #flash[:error] = e.message + #render "orders/pay_with_credit_card" + + end +end \ No newline at end of file diff --git a/app/services/order_placing_service.rb b/app/services/order_placing_service.rb new file mode 100644 index 0000000..7d71460 --- /dev/null +++ b/app/services/order_placing_service.rb @@ -0,0 +1,14 @@ +class OrderPlacingService + def initialize(cart,order) + @order = order + @cart = cart + end + + def place_order! + @order.build_item_cache_from_cart(@cart) + @order.calculate_total!(@cart) + #@order.clear! + EmailWorker.perform_async(@order.id, 'after_placing_order') + #OrderMailer.notify_order_placed(@order).deliver + end +end \ No newline at end of file diff --git a/app/uploaders/image_uploader.rb b/app/uploaders/image_uploader.rb new file mode 100644 index 0000000..a392551 --- /dev/null +++ b/app/uploaders/image_uploader.rb @@ -0,0 +1,63 @@ +# encoding: utf-8 + +class ImageUploader < CarrierWave::Uploader::Base + + # Include RMagick or MiniMagick support: + # include CarrierWave::RMagick + include CarrierWave::MiniMagick + + # Choose what kind of storage to use for this uploader: + storage :file + # storage :fog + + # Override the directory where uploaded files will be stored. + # This is a sensible default for uploaders that are meant to be mounted: + def store_dir + "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" + end + + process :resize_to_fit => [800,800] + + version :thumb do + process :resize_to_fill => [200,200] + end + + version :medium do + process :resize_to_fill => [400,400] + end + + + + # Provide a default URL as a default if there hasn't been a file uploaded: + # def default_url + # # For Rails 3.1+ asset pipeline compatibility: + # # ActionController::Base.helpers.asset_path("fallback/" + [version_name, "default.png"].compact.join('_')) + # + # "/images/fallback/" + [version_name, "default.png"].compact.join('_') + # end + + # Process files as they are uploaded: + # process :scale => [200, 300] + # + # def scale(width, height) + # # do something + # end + + # Create different versions of your uploaded files: + # version :thumb do + # process :resize_to_fit => [50, 50] + # end + + # Add a white list of extensions which are allowed to be uploaded. + # For images you might use something like this: + # def extension_white_list + # %w(jpg jpeg gif png) + # end + + # Override the filename of the uploaded files: + # Avoid using model.id or version_name here, see uploader/store.rb for details. + # def filename + # "something.jpg" if original_filename + # end + +end diff --git a/app/views/account/orders/index.html.erb b/app/views/account/orders/index.html.erb new file mode 100644 index 0000000..911ebe8 --- /dev/null +++ b/app/views/account/orders/index.html.erb @@ -0,0 +1,37 @@ +
+
+ +

訂單明細

+ + + + + + + + + + + + + + + <% @orders.each do |order| %> + <% if order.is_failed?%> + + <%else%> + + <%end%> + + + + + + + + <% end %> + +
訂單編號生成時間訂單金額訂單狀態付款方式取消訂單或退貨
<%= render_order_link(order)%><%= render_order_created_time(order)%> <%= order.total %> <%= render_order_state(order) %> <%= render_order_payment_method(order) %><%= render_order_options_for_user(order)%>
+ +
+
\ No newline at end of file diff --git a/app/views/admin/orders/index.html.erb b/app/views/admin/orders/index.html.erb new file mode 100644 index 0000000..d586943 --- /dev/null +++ b/app/views/admin/orders/index.html.erb @@ -0,0 +1,52 @@ + +

訂單明細

+ + + + + + + + + + + + + <% @orders.each do |order| %> + <%= render_admin_order_table_row(order)%> + + + + + + + + + <%=content_tag :td, :class=> "td_aasm_state" , :data_nowstate => order.aasm_state do%> + + + + <%= simple_form_for order, :url => admin_order_path(order.token), :html=>{:class=>"hide"} do |f| %> + <%= f.input :aasm_state%> + <%end%> + <%end%> + + + <% end %> + +
訂單編號生成時間訂單金額訂單狀態
<%= render_admin_order_link(order)%> <%= render_order_created_time(order) %> <%= render_order_total(order) %>
+ diff --git a/app/views/admin/orders/show.html.erb b/app/views/admin/orders/show.html.erb new file mode 100644 index 0000000..0b46b16 --- /dev/null +++ b/app/views/admin/orders/show.html.erb @@ -0,0 +1,89 @@ +
+
+ +

訂單明細

+
+ <%= render_order_options_for_admin(@order) %> +
+ + + + + + + + + + <% @order_items.each do |order_item| %> + + + + + + <% end %> + + +
商品明細單價數量
+ <%= order_item.product_name %> + <%= order_item.price %> <%= order_item.quantity %>
+ +
+ + 總計 <%= @order.total %> NTD + +
+ +
+ +

寄送資訊

+ + + + + + + + + + + + + + + + + + + + + + + +
訂購人
+ <%= @order_info.billing_name %> - <%= @order_info.billing_address %> +
訂購人
+ <%= @order_info.billing_name %> - <%= @order_info.billing_address %> +
+ + + <% if !@order.paid? %> + +
+ <%= link_to("以信用卡付款", pay_with_credit_card_order_path(@order.token), :class => "btn btn-primary btn-lg btn-danger ") %> + + <%= link_to("以 ATM 付款", "#", :class => "btn btn-primary btn-lg btn-danger ") %> +
+ + <% else %> + + 此訂單已完成付款 + + <% end %> + + + + +
+ + +
diff --git a/app/views/admin/photos/_form.html.erb b/app/views/admin/photos/_form.html.erb new file mode 100644 index 0000000..4cf127f --- /dev/null +++ b/app/views/admin/photos/_form.html.erb @@ -0,0 +1,9 @@ + + + <%=f.input :image, :input_html=>{:class=>"form-control"}, :wrapper_html=>{:class=>"form-group"}, :label=>"上傳圖片" ,:as=> :file%> + \ No newline at end of file diff --git a/app/views/admin/photos/index.html.erb b/app/views/admin/photos/index.html.erb new file mode 100644 index 0000000..fbd0fd8 --- /dev/null +++ b/app/views/admin/photos/index.html.erb @@ -0,0 +1,4 @@ +

Index

+<% @photos.each do |photo|%> +<%= image_tag(photo.image_url)%> +<%end%> \ No newline at end of file diff --git a/app/views/admin/photos/new.html.erb b/app/views/admin/photos/new.html.erb new file mode 100644 index 0000000..1cc1161 --- /dev/null +++ b/app/views/admin/photos/new.html.erb @@ -0,0 +1,14 @@ +
+

New Photos

+ <%= simple_form_for @photo, html: { multipart: true },:url => admin_product_photos_path(@product,@photo) do |f| %> + + <%=render(:partial=>"form", :locals=>{:f=>f})%> + + + +
+ <%= f.submit class: "btn btn-primary" %> +
+ + <% end %> +
\ No newline at end of file diff --git a/app/views/admin/products/_form.html.erb b/app/views/admin/products/_form.html.erb new file mode 100644 index 0000000..5c9a52d --- /dev/null +++ b/app/views/admin/products/_form.html.erb @@ -0,0 +1,30 @@ + + + <%= f.input :title, :input_html=>{:class => "fuck form-control"}, :wrapper_html=>{ :class => "form-group"} ,:label => "名稱" , :type=>"text"%> + + + + <%= f.input :description, :input_html=>{:class =>"form-control", :rows=>"8"}, :wrapper_html=>{:class=>"form-group"}, :label=>"商品描述"%> + + <%= f.input :quantity, :input_html=>{:class=>"form-control"}, :wrapper_html=>{:class=>"form-group"}, :label=>"數量" %> + + <%= f.input :price, :input_html=>{:class=>"form-control"}, :wrapper_html=>{:class=>"form-group"}, :label=>"價格" %> + +
+ + + <%= f.simple_fields_for :photos do |photo|%> + + <%= render(:partial=>'photo_fields', :locals=>{:f =>photo}) %> + <%end%> + + + + +
+ + + diff --git a/app/views/admin/products/_photo_fields.html.erb b/app/views/admin/products/_photo_fields.html.erb new file mode 100644 index 0000000..0c1f563 --- /dev/null +++ b/app/views/admin/products/_photo_fields.html.erb @@ -0,0 +1,11 @@ + +
+
+ <%=f.input :image, :input_html=>{:class=>"form-control"}, :wrapper_html=>{:class=>"form-group"}, :label=>"上傳圖片"%> + + <%if !f.object.image_url.nil?%> + <%= image_tag(f.object.image_url, :class=>"img-rounded")%> + <%end%> + + <%=link_to_remove_association("remove photo", f, {:class=>"btn btn-sm btn-danger"})%> +
\ No newline at end of file diff --git a/app/views/admin/products/edit.html.erb b/app/views/admin/products/edit.html.erb new file mode 100644 index 0000000..9254458 --- /dev/null +++ b/app/views/admin/products/edit.html.erb @@ -0,0 +1,13 @@ +
+

Edit Prduct

+ <%= simple_form_for @product, html: { multipart: true },:url => admin_product_path(@product) do |f| %> + + <%= render(:partial=>'form', :locals=>{:f=>f})%> + + +
+ <%= f.submit 'Update', class: "btn btn-primary" %> +
+ + <% end %> +
\ No newline at end of file diff --git a/app/views/admin/products/index.html.erb b/app/views/admin/products/index.html.erb new file mode 100644 index 0000000..fa2a3ec --- /dev/null +++ b/app/views/admin/products/index.html.erb @@ -0,0 +1,40 @@ + +

Product List

+ +
+ <%= link_to("新增產品", new_admin_product_path, :class => "btn btn-primary btn-sm") %> +
+ + + + + + + + + + + + <% @products.each do |product| %> + + + + + + + + + <% end %> + + +
#Product NameProduct PhotoManage Options
+ <%= product.id %> + +

<%= link_to( render_product_name(product) , admin_product_path(product))%>

+
+ <%=link_to admin_product_path(product) do%> + <%=render_product_photo(product.default_photo)%> + <%end%> + <%= link_to("Edit", edit_admin_product_path(product)) %>
+ + diff --git a/app/views/admin/products/index_old.html.erb b/app/views/admin/products/index_old.html.erb new file mode 100644 index 0000000..3765a49 --- /dev/null +++ b/app/views/admin/products/index_old.html.erb @@ -0,0 +1,32 @@ + +

Index

+ + +
+ + <% @products.each do |product|%> +
+ +
+ + <%= link_to(admin_product_path(product)) do%> + + <%= image_tag(product.photos.first.image_url, :class=>"img-rounded") if !product.photos.first.blank? %> + + +
+

<%= product.title%>

+
+ <%end%> +
+
+ <% end %> + +
+ + +
+ +<%= will_paginate @products, renderer: BootstrapPagination::Rails %> +
+ diff --git a/app/views/admin/products/new.html.erb b/app/views/admin/products/new.html.erb new file mode 100644 index 0000000..7ad9297 --- /dev/null +++ b/app/views/admin/products/new.html.erb @@ -0,0 +1,13 @@ +
+

New Prduct

+ <%= simple_form_for @product, html: { multipart: true},:url => admin_products_path(@product) do |f| %> + + <%= render(:partial=>'form', :locals=>{:f=>f})%> + + +
+ <%= f.submit class: "btn btn-primary" %> +
+ + <% end %> +
\ No newline at end of file diff --git a/app/views/admin/products/show.html.erb b/app/views/admin/products/show.html.erb new file mode 100644 index 0000000..4dd5633 --- /dev/null +++ b/app/views/admin/products/show.html.erb @@ -0,0 +1,46 @@ + +
+
+ + <%#= render(:partial=>"common/slide", :locals=>{:photos => @photos}) %> + <%= render(:partial=>"common/slide", :locals=>{:product => @product}) %> + +
+ +
+ + <%= link_to("Create new photo", new_admin_product_photo_path(@product), :class=> 'btn btn-info btn-sm')%> + + <%= link_to("Edit photo", edit_admin_product_photo_path(@product,@photo), :class=> 'btn btn-info btn-sm') if !@photo.nil?%> + + <%= link_to("Update Product", edit_admin_product_path(@product), :class=> 'btn btn-info btn-sm')%> + + <%= link_to("Delete Product", admin_product_path(@product), :method=>:delete, :class=> 'btn btn-danger btn-sm')%> + +
+ + +

<%= @product.title %>

+

<%= @product.description %>

+
+
+

數量: <%= @product.quantity %>

+ +
+ $ <%= render_product_price(@product)%> +
+ + +
<%=link_to("加入購物車","#", :class=> "btn btn-danger btn-lg") %>
+
+ +
+ +
+ + + + + + + diff --git a/app/views/cart_items/update.js.erb b/app/views/cart_items/update.js.erb new file mode 100644 index 0000000..de5db46 --- /dev/null +++ b/app/views/cart_items/update.js.erb @@ -0,0 +1 @@ +$('span.span_price').html(<%= render_cart_total_price(current_cart) %>); \ No newline at end of file diff --git a/app/views/carts/checkout.html.erb b/app/views/carts/checkout.html.erb new file mode 100644 index 0000000..e48db77 --- /dev/null +++ b/app/views/carts/checkout.html.erb @@ -0,0 +1,70 @@ +
+
+ +

購物明細

+ + + + + + + + + + + <% current_cart.cart_items.each do |cart_item| %> + + + + + + <% end %> + + +
商品明細單價數量
+ + <%= link_to(cart_item.product.title, admin_product_path(cart_item.product)) %> + <%= cart_item.product.price %> <%= cart_item.quantity %>
+ +
+ + 總計 <%= render_cart_total_price(current_cart) %> NTD + +
+ +
+ +

訂單資訊

+ + +
+ + <%= simple_form_for @order do |f| %> + + <%= f.simple_fields_for :info do |c| %> + + 訂購人 + +
<%= c.input :billing_name %>
+
<%= c.input :billing_address %>
+ + 收貨人 + +
<%= c.input :shipping_name %>
+
<%= c.input :shipping_address %>
+ <% end %> + +
+ <%= f.submit "生成訂單", :class => "btn btn-primary btn-lg btn-danger pull-right", + :disable_with => 'Submiting...' %> +
+ + <% end %> +
+ + + +
+ + +
diff --git a/app/views/carts/index.html.erb b/app/views/carts/index.html.erb new file mode 100644 index 0000000..8a2f51a --- /dev/null +++ b/app/views/carts/index.html.erb @@ -0,0 +1,69 @@ +<% content_for :carts_index_customize_jquery do%> + <%= javascript_include_tag 'carts_index' %> +<% end %> + + +
+
+ +

購物車 <%= link_to "清空購物車" , remove_all_carts_path , :method => :delete, :class=> "btn btn-primary btn-lg btn-danger pull-right"%>

+ + + + + + + + + + + + + + <% current_cart.cart_items.each do |cart_item| %> + + + + + + + + + + + + <% end %> + + +
商品資訊商品名稱剩餘數量單價數量刪除
<%= render_product_photo(cart_item.product.default_photo)%> + + + <%= link_to(cart_item.product.title, admin_product_path(cart_item.product)) %> + <%= cart_item.product.quantity %> <%= cart_item.product.price %> + +
+ <%= simple_form_for cart_item, :remote => true, :url => cart_item_path(cart_item), :html=>{:class=>"hide"} do |f| %> + <%= f.input :quantity %> + <%end%> + + <%=text_field_tag( "spinner", 1 ,:id => "spinner-01", :class=> "spinner" , :type=>"text", :data_max => cart_item.product.quantity , :data_start => cart_item.quantity)%> +
+ +
<%= link_to 'delete', remove_from_cart_cart_item_path(cart_item), :method => :delete , :class=> "btn btn-primary btn-lg btn-danger"%>
+ +
+ + 總計 <%= render_cart_total_price(current_cart) %> NTD + +
+ +
+
+ <%= link_to("確認結賬", checkout_carts_path , :method => :post , :class => "btn btn-primary btn-lg pull-right") %> +
+ + +
+ + +
diff --git a/app/views/common/_navbar.html.erb b/app/views/common/_navbar.html.erb new file mode 100644 index 0000000..cd1f133 --- /dev/null +++ b/app/views/common/_navbar.html.erb @@ -0,0 +1,79 @@ + \ No newline at end of file diff --git a/app/views/common/_ransack_form.html.erb b/app/views/common/_ransack_form.html.erb new file mode 100644 index 0000000..680d1af --- /dev/null +++ b/app/views/common/_ransack_form.html.erb @@ -0,0 +1,12 @@ + <%= search_form_for q ,:url=> search_products_path, :method=> :post,:class=>"navbar-form navbar-left", :role=>"search" do |f| %> +
+
+ <%= f.search_field :title_or_description_cont, :class=>"form-control", :id=>"navbarInput-01", :type=>"search", :placeholder=>"Search"%> + + <%=f.submit 'Go',:class=>"btn" do%> + + <%end%> + +
+
+ <%end%> \ No newline at end of file diff --git a/app/views/common/_slide.html.erb b/app/views/common/_slide.html.erb new file mode 100644 index 0000000..c98d37e --- /dev/null +++ b/app/views/common/_slide.html.erb @@ -0,0 +1,31 @@ + \ No newline at end of file diff --git a/app/views/devise/confirmations/new.html.erb b/app/views/devise/confirmations/new.html.erb new file mode 100644 index 0000000..949b172 --- /dev/null +++ b/app/views/devise/confirmations/new.html.erb @@ -0,0 +1,16 @@ +

Resend confirmation instructions

+ +<%= simple_form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %> + <%= f.error_notification %> + <%= f.full_error :confirmation_token %> + +
+ <%= f.input :email, required: true, autofocus: true %> +
+ +
+ <%= f.button :submit, "Resend confirmation instructions" %> +
+<% end %> + +<%= render "devise/shared/links" %> diff --git a/app/views/devise/mailer/confirmation_instructions.html.erb b/app/views/devise/mailer/confirmation_instructions.html.erb new file mode 100644 index 0000000..dc55f64 --- /dev/null +++ b/app/views/devise/mailer/confirmation_instructions.html.erb @@ -0,0 +1,5 @@ +

Welcome <%= @email %>!

+ +

You can confirm your account email through the link below:

+ +

<%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token) %>

diff --git a/app/views/devise/mailer/reset_password_instructions.html.erb b/app/views/devise/mailer/reset_password_instructions.html.erb new file mode 100644 index 0000000..f667dc1 --- /dev/null +++ b/app/views/devise/mailer/reset_password_instructions.html.erb @@ -0,0 +1,8 @@ +

Hello <%= @resource.email %>!

+ +

Someone has requested a link to change your password. You can do this through the link below.

+ +

<%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %>

+ +

If you didn't request this, please ignore this email.

+

Your password won't change until you access the link above and create a new one.

diff --git a/app/views/devise/mailer/unlock_instructions.html.erb b/app/views/devise/mailer/unlock_instructions.html.erb new file mode 100644 index 0000000..41e148b --- /dev/null +++ b/app/views/devise/mailer/unlock_instructions.html.erb @@ -0,0 +1,7 @@ +

Hello <%= @resource.email %>!

+ +

Your account has been locked due to an excessive number of unsuccessful sign in attempts.

+ +

Click the link below to unlock your account:

+ +

<%= link_to 'Unlock my account', unlock_url(@resource, unlock_token: @token) %>

diff --git a/app/views/devise/passwords/edit.html.erb b/app/views/devise/passwords/edit.html.erb new file mode 100644 index 0000000..8f995ed --- /dev/null +++ b/app/views/devise/passwords/edit.html.erb @@ -0,0 +1,19 @@ +

Change your password

+ +<%= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %> + <%= f.error_notification %> + + <%= f.input :reset_password_token, as: :hidden %> + <%= f.full_error :reset_password_token %> + +
+ <%= f.input :password, label: "New password", required: true, autofocus: true %> + <%= f.input :password_confirmation, label: "Confirm your new password", required: true %> +
+ +
+ <%= f.button :submit, "Change my password" %> +
+<% end %> + +<%= render "devise/shared/links" %> diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erb new file mode 100644 index 0000000..d1503e7 --- /dev/null +++ b/app/views/devise/passwords/new.html.erb @@ -0,0 +1,15 @@ +

Forgot your password?

+ +<%= simple_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %> + <%= f.error_notification %> + +
+ <%= f.input :email, required: true, autofocus: true %> +
+ +
+ <%= f.button :submit, "Send me reset password instructions" %> +
+<% end %> + +<%= render "devise/shared/links" %> diff --git a/app/views/devise/registrations/edit.html.erb b/app/views/devise/registrations/edit.html.erb new file mode 100644 index 0000000..ed8123f --- /dev/null +++ b/app/views/devise/registrations/edit.html.erb @@ -0,0 +1,47 @@ +
+
+
+

Edit <%= resource_name.to_s.humanize %>

+
+
+
+ <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put , :multipart => true}) do |f| %> + + <%= devise_error_messages! %> + +

修改基本資料

+ +
+ <%= f.label :email %> + <%= f.email_field :email, class: "form-control", :autofocus => true %> +
+ +
+

修改密碼

+ +
+ <%= f.label :password %> (leave blank if you don't want to change it) + <%= f.password_field :password, class: "form-control", :autocomplete => "off" %> +
+ + +
+ <%= f.label :current_password %> (we need your current password to confirm your changes) + <%= f.password_field :current_password, class: "form-control" %> +
+ +
+ +
+ <%= f.submit "Update", class: "btn btn-primary" %> +
+ <% end %> +
+ +
\ No newline at end of file diff --git a/app/views/devise/registrations/new.html.erb b/app/views/devise/registrations/new.html.erb new file mode 100644 index 0000000..090070a --- /dev/null +++ b/app/views/devise/registrations/new.html.erb @@ -0,0 +1,39 @@ +
+
+ +
+

Sign up

+
+ +
+ <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :multipart => true }) do |f| %> + <%= devise_error_messages! %> + + + +
+ <%= f.label :email %> + <%= f.email_field :email, autofocus: true ,class: "form-control"%> +
+ +
+ <%= f.label :password %> + <%= f.password_field :password , class: "form-control"%> +
+ +
+ <%= f.label :password_confirmation %>
+ <%= f.password_field :password_confirmation , class: "form-control"%> +
+ +
+ <%= f.submit "Sign up" ,class: "btn btn-primary"%> +
+ <% end %> +
+ + +
+
diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb new file mode 100644 index 0000000..b1d1e49 --- /dev/null +++ b/app/views/devise/sessions/new.html.erb @@ -0,0 +1,35 @@ +
+
Sign in +
+ +
+ + <%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %> +
+ <%= f.label :email %>
+ <%= f.email_field :email, autofocus: true , class: "form-control"%> +
+ +
+ <%= f.label :password %>
+ <%= f.password_field :password ,class: "form-control"%> +
+ + <% if devise_mapping.rememberable? -%> +
+ <%= f.check_box :remember_me %> + <%= f.label :remember_me %> +
+ <% end -%> + +
+ <%= f.submit "Sign in", class: "btn btn-primary"%> +
+ <% end %> +
+ + +
diff --git a/app/views/devise/shared/_links.erb b/app/views/devise/shared/_links.erb new file mode 100644 index 0000000..d84bdde --- /dev/null +++ b/app/views/devise/shared/_links.erb @@ -0,0 +1,25 @@ +<%- if controller_name != 'sessions' %> + <%= link_to "Sign in", new_session_path(resource_name) %>
+<% end -%> + +<%- if devise_mapping.registerable? && controller_name != 'registrations' %> + <%= link_to "Sign up", new_registration_path(resource_name) %>
+<% end -%> + +<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %> + <%= link_to "Forgot your password?", new_password_path(resource_name) %>
+<% end -%> + +<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %> + <%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %>
+<% end -%> + +<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %> + <%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %>
+<% end -%> + +<%- if devise_mapping.omniauthable? %> + <%- resource_class.omniauth_providers.each do |provider| %> + <%= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider) %>
+ <% end -%> +<% end -%> diff --git a/app/views/devise/unlocks/new.html.erb b/app/views/devise/unlocks/new.html.erb new file mode 100644 index 0000000..788f62e --- /dev/null +++ b/app/views/devise/unlocks/new.html.erb @@ -0,0 +1,16 @@ +

Resend unlock instructions

+ +<%= simple_form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f| %> + <%= f.error_notification %> + <%= f.full_error :unlock_token %> + +
+ <%= f.input :email, required: true, autofocus: true %> +
+ +
+ <%= f.button :submit, "Resend unlock instructions" %> +
+<% end %> + +<%= render "devise/shared/links" %> diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb new file mode 100644 index 0000000..6626951 --- /dev/null +++ b/app/views/layouts/_header.html.erb @@ -0,0 +1,40 @@ + diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb new file mode 100644 index 0000000..29e5efd --- /dev/null +++ b/app/views/layouts/admin.html.erb @@ -0,0 +1,48 @@ + + + + + + <%= stylesheet_link_tag "application" %> + + <%= csrf_meta_tags %> + + <%= render_page_title_tag %> + <%= render_page_description_meta_tag %> + <%= render_page_keywords_meta_tag %> + <%= render_page_image_link_tag %> + + + + + +
+ <%= render "common/navbar" %> + + <%= notice_message %> + +
+
+ + + +
+
+ + <%= yield %> +
+ +
+ + + + + +
+ <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> + + + diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index da9769d..bc6969d 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -2,13 +2,46 @@ Artstore + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> + + <%= csrf_meta_tags unless response.cache_control[:public]%> + + <%= render_page_title_tag %> + <%= render_page_description_meta_tag %> + <%= render_page_keywords_meta_tag %> + <%#= render_page_image_link_tag %> + + <%#= tag(:link , :href=>image_path('logo-artstore.png'), :rel=>"image_src") %> + <%= image_src_link_tag(image_path('logo-artstore.png')) %> + + + + <%=og_title("The Rock")%> + <%=og_type("movie") %> + <%=og_url(image_url('logo-artstore.png'))%> + <%#=og_image("http://placehold.it/300X300&text=No%20Pic")%> + <%=og_site_name("IMDb")%> + <%=og_description("Lorem Ipsum ...")%> + -<%= yield %> + +
+ <%= render(:partial=>'common/navbar')%> + <%=notice_message%> + + <%#flash.each do |name , msg|%> + <%#= content_tag(:div , msg,class: "alert alert-info") %> + <%#end%> + + <%= yield %> +
+ + <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> + <%= yield :carts_index_customize_jquery%> diff --git a/app/views/order_mailer/notify_after_payment.html.erb b/app/views/order_mailer/notify_after_payment.html.erb new file mode 100644 index 0000000..85db411 --- /dev/null +++ b/app/views/order_mailer/notify_after_payment.html.erb @@ -0,0 +1,75 @@ + + + +
+
+ +

您已付款成功

+

檢視訂單: <%= link_to @order.token , order_url(@order.token)%>

+ +

訂單明細

+ + + + + + + + + + + + <% @order_items.each do |order_item| %> + + + + + + + <% end %> + + +
商品明細單價數量合計
+ <%= order_item.product_name %> + <%= order_item.price %> <%= order_item.quantity %> <%= order_item.price * order_item.quantity %>
+ + +
+ + 總計 <%= @order.total %> NTD + +
+ +
+ +

寄送資訊

+ + + + + + + + + + + + + + + + + + + + + + + +
訂購人
+ <%= @order_info.billing_name %> - <%= @order_info.billing_address %> +
收貨人
+ <%= @order_info.billing_name %> - <%= @order_info.billing_address %> +
+ + \ No newline at end of file diff --git a/app/views/order_mailer/notify_order_placed.html.erb b/app/views/order_mailer/notify_order_placed.html.erb new file mode 100644 index 0000000..e9a0428 --- /dev/null +++ b/app/views/order_mailer/notify_order_placed.html.erb @@ -0,0 +1,79 @@ + + + +
+
+ +

訂單明細

+ + + + + + + + + + + + <% @order_items.each do |order_item| %> + + + + + + + <% end %> + + +
商品明細單價數量合計
+ <%= order_item.product_name %> + <%= order_item.price %> <%= order_item.quantity %> <%= order_item.price * order_item.quantity %>
+ + +
+ + 總計 <%= @order.total %> NTD + +
+ +
+ +

寄送資訊

+ + + + + + + + + + + + + + + + + + + + + + + +
訂購人
+ <%= @order_info.billing_name %> - <%= @order_info.billing_address %> +
收貨人
+ <%= @order_info.billing_name %> - <%= @order_info.billing_address %> +
+ + + + + +
+ + +
\ No newline at end of file diff --git a/app/views/orders/pay_with_credit_card.html.erb b/app/views/orders/pay_with_credit_card.html.erb new file mode 100644 index 0000000..25f2cad --- /dev/null +++ b/app/views/orders/pay_with_credit_card.html.erb @@ -0,0 +1,50 @@ + + + + + <%#= render_stripe_public_key %> + + +<%= form_tag order_card_charges_path(@order.token), :id => "payment-form", :class => "form form-horizontal" do %> + + + +
+
+ + +
+
+ +
+
+ + +
+
+ +
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+ + + + +<% end %> \ No newline at end of file diff --git a/app/views/orders/show.html.erb b/app/views/orders/show.html.erb new file mode 100644 index 0000000..1220431 --- /dev/null +++ b/app/views/orders/show.html.erb @@ -0,0 +1,87 @@ +
+
+ +

訂單明細

+ + + + + + + + + + + <% @order_items.each do |order_item| %> + + + + + + <% end %> + + +
商品明細單價數量
+ <%= order_item.product_name %> + <%= order_item.price %> <%= order_item.quantity %>
+ +
+ + 總計 <%= @order.total %> NTD + +
+ +
+ +

寄送資訊

+ + + + + + + + + + + + + + + + + + + + + + + +
訂購人
+ <%= @order_info.billing_name %> - <%= @order_info.billing_address %> +
訂購人
+ <%= @order_info.billing_name %> - <%= @order_info.billing_address %> +
+ + + <% if !@order.paid? %> + +
+ <%= link_to("以信用卡付款", pay_with_credit_card_order_path(@order.token), :class => "btn btn-primary btn-lg btn-danger ") %> + + <%= link_to("以 ATM 付款", "#", :class => "btn btn-primary btn-lg btn-danger ") %> +
+ + <% else %> + + 此訂單已完成付款 + + <% end %> + + + + +
+ + +
diff --git a/app/views/products/_product_item.html.erb b/app/views/products/_product_item.html.erb new file mode 100644 index 0000000..a8f21e6 --- /dev/null +++ b/app/views/products/_product_item.html.erb @@ -0,0 +1,12 @@ +
+
+ <%= link_to product_path(product) do%> + + <%=render_product_photo(product.default_photo)%> + + <%end%> +
+ + <%= render_product_name(product)%> + +
\ No newline at end of file diff --git a/app/views/products/index.html.erb b/app/views/products/index.html.erb new file mode 100644 index 0000000..52ad3e2 --- /dev/null +++ b/app/views/products/index.html.erb @@ -0,0 +1,6 @@ +
+ + + <%= render :partial=> "product_item", :collection=>@products, :as=> :product %> + +
\ No newline at end of file diff --git a/app/views/products/search.html.erb b/app/views/products/search.html.erb new file mode 100644 index 0000000..14e6846 --- /dev/null +++ b/app/views/products/search.html.erb @@ -0,0 +1,9 @@ +
+ +

搜尋字串:<%= params[:q]["title_or_description_cont"] %>

+ +
+ + <%= render :partial => "product_item", :collection => @products , :as => :product %> + +
\ No newline at end of file diff --git a/app/views/products/show.html.erb b/app/views/products/show.html.erb new file mode 100644 index 0000000..76785c3 --- /dev/null +++ b/app/views/products/show.html.erb @@ -0,0 +1,42 @@ +
+
+ + <%= render(:partial=>"common/slide", :locals=>{:product => @product}) %> + <%#= image_tag render_product_photo(@product.default_photo, :medium), :class=> "img-rounded" %> +
+ + +
+

<%= render_product_name(@product)%>

+ +
+

+ <%= render_product_desc(@product) %> +

+
+ + +
+ 數量:<%= render_product_quantity(@product)%> +
+ +
+ $ <%= render_product_price(@product)%> +
+ +
+ + <% if @product.out_of_stock? %> + <%= link_to("Sorry,已售完", "#", :class => "btn btn-warnrng btn-lg disabled", :role=>"button") %> + <% else %> + <%= link_to("加入購物車", add_to_cart_cart_item_path(@product), :method=>:post , :class => "btn btn-primary btn-lg")%> + <% end %> +
+ +
+ + + + + + diff --git a/app/workers/email_worker.rb b/app/workers/email_worker.rb new file mode 100644 index 0000000..ef2ca6d --- /dev/null +++ b/app/workers/email_worker.rb @@ -0,0 +1,15 @@ +class EmailWorker + include Sidekiq::Worker + sidekiq_options retry: false + + def perform(order_id , condition) + @order = Order.find(order_id) + case condition + when "after_placing_order" + OrderMailer.notify_order_placed(@order).deliver + when "after_paying_with_credit_card" + OrderMailer.notify_after_payment(@order).deliver + end + + end +end \ No newline at end of file diff --git a/bin/annotate b/bin/annotate new file mode 100755 index 0000000..313f3d4 --- /dev/null +++ b/bin/annotate @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'annotate' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('annotate', 'annotate') diff --git a/bin/bundler b/bin/bundler new file mode 100755 index 0000000..72c62ec --- /dev/null +++ b/bin/bundler @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'bundler' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('bundler', 'bundler') diff --git a/bin/cap b/bin/cap new file mode 100755 index 0000000..30352d4 --- /dev/null +++ b/bin/cap @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'cap' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('capistrano', 'cap') diff --git a/bin/capify b/bin/capify new file mode 100755 index 0000000..0f486e8 --- /dev/null +++ b/bin/capify @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'capify' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('capistrano', 'capify') diff --git a/bin/coderay b/bin/coderay new file mode 100755 index 0000000..5be1c00 --- /dev/null +++ b/bin/coderay @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'coderay' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('coderay', 'coderay') diff --git a/bin/demo-pry-bond b/bin/demo-pry-bond new file mode 100755 index 0000000..38a4d85 --- /dev/null +++ b/bin/demo-pry-bond @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'demo-pry-bond' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('pry-plus', 'demo-pry-bond') diff --git a/bin/demo-pry-exception_explorer b/bin/demo-pry-exception_explorer new file mode 100755 index 0000000..e308613 --- /dev/null +++ b/bin/demo-pry-exception_explorer @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'demo-pry-exception_explorer' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('pry-plus', 'demo-pry-exception_explorer') diff --git a/bin/demo-pry-rescue b/bin/demo-pry-rescue new file mode 100755 index 0000000..84aa7ae --- /dev/null +++ b/bin/demo-pry-rescue @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'demo-pry-rescue' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('pry-plus', 'demo-pry-rescue') diff --git a/bin/erubis b/bin/erubis new file mode 100755 index 0000000..2c7348b --- /dev/null +++ b/bin/erubis @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'erubis' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('erubis', 'erubis') diff --git a/bin/guard b/bin/guard new file mode 100755 index 0000000..0c1a532 --- /dev/null +++ b/bin/guard @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'guard' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('guard', 'guard') diff --git a/bin/jist b/bin/jist new file mode 100755 index 0000000..e5378c1 --- /dev/null +++ b/bin/jist @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'jist' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('jist', 'jist') diff --git a/bin/kill-pry-rescue b/bin/kill-pry-rescue new file mode 100755 index 0000000..0a9c76c --- /dev/null +++ b/bin/kill-pry-rescue @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'kill-pry-rescue' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('pry-rescue', 'kill-pry-rescue') diff --git a/bin/launchy b/bin/launchy new file mode 100755 index 0000000..92b254a --- /dev/null +++ b/bin/launchy @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'launchy' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('launchy', 'launchy') diff --git a/bin/listen b/bin/listen new file mode 100755 index 0000000..093a5fc --- /dev/null +++ b/bin/listen @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'listen' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('listen', 'listen') diff --git a/bin/nokogiri b/bin/nokogiri new file mode 100755 index 0000000..d55f84b --- /dev/null +++ b/bin/nokogiri @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'nokogiri' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('nokogiri', 'nokogiri') diff --git a/bin/pry b/bin/pry new file mode 100755 index 0000000..54678a3 --- /dev/null +++ b/bin/pry @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'pry' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('pry', 'pry') diff --git a/bin/pryq b/bin/pryq new file mode 100755 index 0000000..aadbba7 --- /dev/null +++ b/bin/pryq @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'pryq' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('pry-plus', 'pryq') diff --git a/bin/rackup b/bin/rackup new file mode 100755 index 0000000..8cc9953 --- /dev/null +++ b/bin/rackup @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'rackup' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('rack', 'rackup') diff --git a/bin/rails b/bin/rails index 7feb6a3..657440d 100755 --- a/bin/rails +++ b/bin/rails @@ -1,8 +1,16 @@ #!/usr/bin/env ruby -begin - load File.expand_path("../spring", __FILE__) -rescue LoadError -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' +# +# This file was generated by Bundler. +# +# The application 'rails' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('railties', 'rails') diff --git a/bin/rake b/bin/rake index 8017a02..26c7a2d 100755 --- a/bin/rake +++ b/bin/rake @@ -1,8 +1,16 @@ #!/usr/bin/env ruby -begin - load File.expand_path("../spring", __FILE__) -rescue LoadError -end -require_relative '../config/boot' -require 'rake' -Rake.application.run +# +# This file was generated by Bundler. +# +# The application 'rake' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('rake', 'rake') diff --git a/bin/rdebug b/bin/rdebug new file mode 100755 index 0000000..c0c33af --- /dev/null +++ b/bin/rdebug @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'rdebug' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('debugger', 'rdebug') diff --git a/bin/rdoc b/bin/rdoc new file mode 100755 index 0000000..f57260f --- /dev/null +++ b/bin/rdoc @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'rdoc' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('rdoc', 'rdoc') diff --git a/bin/rescue b/bin/rescue new file mode 100755 index 0000000..0ac42cc --- /dev/null +++ b/bin/rescue @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'rescue' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('pry-rescue', 'rescue') diff --git a/bin/restclient b/bin/restclient new file mode 100755 index 0000000..4d7bdcf --- /dev/null +++ b/bin/restclient @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'restclient' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('rest-client', 'restclient') diff --git a/bin/ri b/bin/ri new file mode 100755 index 0000000..90f2517 --- /dev/null +++ b/bin/ri @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'ri' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('rdoc', 'ri') diff --git a/bin/sass b/bin/sass new file mode 100755 index 0000000..d65bb10 --- /dev/null +++ b/bin/sass @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'sass' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('sass', 'sass') diff --git a/bin/sass-convert b/bin/sass-convert new file mode 100755 index 0000000..ddde743 --- /dev/null +++ b/bin/sass-convert @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'sass-convert' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('sass', 'sass-convert') diff --git a/bin/scss b/bin/scss new file mode 100755 index 0000000..9f5e435 --- /dev/null +++ b/bin/scss @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'scss' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('sass', 'scss') diff --git a/bin/sdoc b/bin/sdoc new file mode 100755 index 0000000..9da297e --- /dev/null +++ b/bin/sdoc @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'sdoc' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('sdoc', 'sdoc') diff --git a/bin/sdoc-merge b/bin/sdoc-merge new file mode 100755 index 0000000..e29a7d9 --- /dev/null +++ b/bin/sdoc-merge @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'sdoc-merge' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('sdoc', 'sdoc-merge') diff --git a/bin/sidekiq b/bin/sidekiq new file mode 100755 index 0000000..557d1ba --- /dev/null +++ b/bin/sidekiq @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'sidekiq' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('sidekiq', 'sidekiq') diff --git a/bin/sidekiqctl b/bin/sidekiqctl new file mode 100755 index 0000000..38bdb1b --- /dev/null +++ b/bin/sidekiqctl @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'sidekiqctl' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('sidekiq', 'sidekiqctl') diff --git a/bin/slimrb b/bin/slimrb new file mode 100755 index 0000000..d9152e2 --- /dev/null +++ b/bin/slimrb @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'slimrb' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('slim', 'slimrb') diff --git a/bin/spring b/bin/spring index 253ec37..38fee6f 100755 --- a/bin/spring +++ b/bin/spring @@ -1,18 +1,16 @@ #!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'spring' is installed as part of a gem, and +# this file is here to facilitate running it. +# -# This file loads spring without using Bundler, in order to be fast -# It gets overwritten when you run the `spring binstub` command +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) -unless defined?(Spring) - require "rubygems" - require "bundler" +require 'rubygems' +require 'bundler/setup' - if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m) - ENV["GEM_PATH"] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR) - ENV["GEM_HOME"] = "" - Gem.paths = ENV - - gem "spring", match[1] - require "spring/binstub" - end -end +load Gem.bin_path('spring', 'spring') diff --git a/bin/sprockets b/bin/sprockets new file mode 100755 index 0000000..09a1ad1 --- /dev/null +++ b/bin/sprockets @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'sprockets' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('sprockets', 'sprockets') diff --git a/bin/stripe-console b/bin/stripe-console new file mode 100755 index 0000000..1498b2b --- /dev/null +++ b/bin/stripe-console @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'stripe-console' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('stripe', 'stripe-console') diff --git a/bin/thor b/bin/thor new file mode 100755 index 0000000..8421e00 --- /dev/null +++ b/bin/thor @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'thor' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('thor', 'thor') diff --git a/bin/tilt b/bin/tilt new file mode 100755 index 0000000..09fe73e --- /dev/null +++ b/bin/tilt @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'tilt' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('tilt', 'tilt') diff --git a/bin/tt b/bin/tt new file mode 100755 index 0000000..6e3920b --- /dev/null +++ b/bin/tt @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'tt' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('treetop', 'tt') diff --git a/bin/yard b/bin/yard new file mode 100755 index 0000000..bd489a8 --- /dev/null +++ b/bin/yard @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'yard' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('yard', 'yard') diff --git a/bin/yardoc b/bin/yardoc new file mode 100755 index 0000000..43eff6b --- /dev/null +++ b/bin/yardoc @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'yardoc' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('yard', 'yardoc') diff --git a/bin/yri b/bin/yri new file mode 100755 index 0000000..05f2461 --- /dev/null +++ b/bin/yri @@ -0,0 +1,16 @@ +#!/usr/bin/env ruby +# +# This file was generated by Bundler. +# +# The application 'yri' is installed as part of a gem, and +# this file is here to facilitate running it. +# + +require 'pathname' +ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", + Pathname.new(__FILE__).realpath) + +require 'rubygems' +require 'bundler/setup' + +load Gem.bin_path('yard', 'yri') diff --git a/config/application.rb b/config/application.rb index d21f330..06bfe1e 100644 --- a/config/application.rb +++ b/config/application.rb @@ -2,6 +2,11 @@ require 'rails/all' +require 'letter_opener' if Rails.env.development? + +#add for Roodie version 3 +ROADIE_I_KNOW_ABOUT_VERSION_3 = true # Remove after Roadie 3.1 + # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) diff --git a/config/database.yml b/config/database.yml.example similarity index 50% rename from config/database.yml rename to config/database.yml.example index 1c1a37c..7027fb1 100644 --- a/config/database.yml +++ b/config/database.yml.example @@ -4,22 +4,43 @@ # Ensure the SQLite 3 gem is defined in your Gemfile # gem 'sqlite3' # + +#add for mysql default: &default - adapter: sqlite3 + adapter: mysql2 + encoding: utf8 pool: 5 - timeout: 5000 + username: your username + password: your password + socket: /tmp/mysql.sock development: <<: *default - database: db/development.sqlite3 + database: your database + +#default: &default +# adapter: sqlite3 +# pool: 5 +# timeout: 5000 +# +#development: +# <<: *default +# database: db/development.sqlite3 # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. + + +#add for mysql test: <<: *default - database: db/test.sqlite3 + database: your database + +#test: +# <<: *default +# database: db/test.sqlite3 production: <<: *default - database: db/production.sqlite3 + database: db/production.sqlite3 \ No newline at end of file diff --git a/config/deploy.rb b/config/deploy.rb new file mode 100644 index 0000000..02dff6a --- /dev/null +++ b/config/deploy.rb @@ -0,0 +1,95 @@ +# config valid only for Capistrano 3.1 +lock '3.2.1' + +set :application, 'artstore' +set :scm, :git +set :repo_url, 'git@github.com:ryanyangtw/artstore.git' +set :branch, "master" + +set :deploy_to, '/home/ryan/artstore' + +set :linked_files, %w{config/database.yml config/settings.yml config/secrets.yml} +set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system public/uploads} + +#add for sidekiq +set :pty, false + +namespace :deploy do + + desc 'Restart application' + task :restart do + on roles(:app), in: :sequence, wait: 5 do + execute :touch, release_path.join('tmp/restart.txt') + end + end + + after :publishing, 'deploy:restart' + after :finishing, 'deploy:cleanup' + + after :restart, :clear_cache do + on roles(:web), in: :groups, limit: 3, wait: 10 do + # Here we can do anything such as: + # within release_path do + # execute :rake, 'cache:clear' + # end + end + end + +end + + + + + +# Default branch is :master +# ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }.call + +# Default deploy_to directory is /var/www/my_app +# set :deploy_to, '/var/www/my_app' + +# Default value for :scm is :git +# set :scm, :git + +# Default value for :format is :pretty +# set :format, :pretty + +# Default value for :log_level is :debug +# set :log_level, :debug + +# Default value for :pty is false +# set :pty, true + +# Default value for :linked_files is [] +# set :linked_files, %w{config/database.yml} + +# Default value for linked_dirs is [] +# set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system} + +# Default value for default_env is {} +# set :default_env, { path: "/opt/ruby/bin:$PATH" } + +# Default value for keep_releases is 5 +# set :keep_releases, 5 + +#namespace :deploy do +# +# desc 'Restart application' +# task :restart do +# on roles(:app), in: :sequence, wait: 5 do +# # Your restart mechanism here, for example: +# # execute :touch, release_path.join('tmp/restart.txt') +# end +# end +# +# after :publishing, :restart +# +# after :restart, :clear_cache do +# on roles(:web), in: :groups, limit: 3, wait: 10 do +# # Here we can do anything such as: +# # within release_path do +# # execute :rake, 'cache:clear' +# # end +# end +# end +# +#end diff --git a/config/deploy/production.rb b/config/deploy/production.rb new file mode 100644 index 0000000..77e2444 --- /dev/null +++ b/config/deploy/production.rb @@ -0,0 +1,50 @@ +# Simple Role Syntax +# ================== +# Supports bulk-adding hosts to roles, the primary server in each group +# is considered to be the first unless any hosts have the primary +# property set. Don't declare `role :all`, it's a meta role. + +#role :app, %w{deploy@example.com} +#role :web, %w{deploy@example.com} +#role :db, %w{deploy@example.com} + + +# Extended Server Syntax +# ====================== +# This can be used to drop a more detailed server definition into the +# server list. The second argument is a, or duck-types, Hash and is +# used to set extended properties on the server. + +#server 'example.com', user: 'deploy', roles: %w{web app}, my_property: :my_value + + +set :stage, :production + +# Replace 127.0.0.1 with your server's IP address! +server '106.185.32.71', user: 'ryan', roles: %w{web app} + +# Custom SSH Options +# ================== +# You may pass any option but keep in mind that net/ssh understands a +# limited set of options, consult[net/ssh documentation](http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start). +# +# Global options +# -------------- +# set :ssh_options, { +# keys: %w(/home/rlisowski/.ssh/id_rsa), +# forward_agent: false, +# auth_methods: %w(password) +# } +# +# And/or per server (overrides global) +# ------------------------------------ +# server 'example.com', +# user: 'user_name', +# roles: %w{web app}, +# ssh_options: { +# user: 'user_name', # overrides user setting above +# keys: %w(/home/user_name/.ssh/id_rsa), +# forward_agent: false, +# auth_methods: %w(publickey password) +# # password: 'please use keys' +# } diff --git a/config/deploy/staging.rb b/config/deploy/staging.rb new file mode 100644 index 0000000..e664a6c --- /dev/null +++ b/config/deploy/staging.rb @@ -0,0 +1,45 @@ +# Simple Role Syntax +# ================== +# Supports bulk-adding hosts to roles, the primary server in each group +# is considered to be the first unless any hosts have the primary +# property set. Don't declare `role :all`, it's a meta role. + +role :app, %w{deploy@example.com} +role :web, %w{deploy@example.com} +role :db, %w{deploy@example.com} + + +# Extended Server Syntax +# ====================== +# This can be used to drop a more detailed server definition into the +# server list. The second argument is a, or duck-types, Hash and is +# used to set extended properties on the server. + +server 'example.com', user: 'deploy', roles: %w{web app}, my_property: :my_value + + +# Custom SSH Options +# ================== +# You may pass any option but keep in mind that net/ssh understands a +# limited set of options, consult[net/ssh documentation](http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start). +# +# Global options +# -------------- +# set :ssh_options, { +# keys: %w(/home/rlisowski/.ssh/id_rsa), +# forward_agent: false, +# auth_methods: %w(password) +# } +# +# And/or per server (overrides global) +# ------------------------------------ +# server 'example.com', +# user: 'user_name', +# roles: %w{web app}, +# ssh_options: { +# user: 'user_name', # overrides user setting above +# keys: %w(/home/user_name/.ssh/id_rsa), +# forward_agent: false, +# auth_methods: %w(publickey password) +# # password: 'please use keys' +# } diff --git a/config/environments/development.rb b/config/environments/development.rb index ddf0e90..caadf6a 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -34,4 +34,23 @@ # Raises error for missing translations # config.action_view.raise_on_missing_translations = true + + #add for devise + config.action_mailer.default_url_options = { host: 'localhost:3000' } + + #add for letter_opener + #config.action_mailer.delivery_method = :letter_opener + + #add for mailgun + config.action_mailer.smtp_settings = { + :port => 587, + :address => 'smtp.mailgun.org', + :user_name => 'postmaster@sandbox3d67a5d627c34ea0b2b96c991dc74753.mailgun.org', + :password => Settings.mailgun.password, + :domain => 'sandbox3d67a5d627c34ea0b2b96c991dc74753.mailgun.org', + :authentication => :plain + } + + config.action_mailer.delivery_method = :smtp + end diff --git a/config/environments/production.rb b/config/environments/production.rb index 47d3553..8136e81 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -56,6 +56,7 @@ # Enable serving of images, stylesheets, and JavaScripts from an asset server. # config.action_controller.asset_host = "http://assets.example.com" + config.action_controller.asset_host = 'http://assets0%d.inkryan.com' # Precompile additional assets. # application.js, application.css, and all non-JS/CSS in app/assets folder are already added. @@ -80,4 +81,20 @@ # Do not dump schema after migrations. config.active_record.dump_schema_after_migration = false + + + #add for mailgun + config.action_mailer.default_url_options = { host: 'http://inktyan.com + ' } + + config.action_mailer.smtp_settings = { + :port => 587, + :address => 'smtp.mailgun.org', + :user_name => 'postmaster@sandbox3d67a5d627c34ea0b2b96c991dc74753.mailgun.org', + :password => Settings.mailgun.password, + :domain => 'sandbox3d67a5d627c34ea0b2b96c991dc74753.mailgun.org', + :authentication => :plain + } + + config.action_mailer.delivery_method = :smtp end diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb new file mode 100644 index 0000000..86d5909 --- /dev/null +++ b/config/initializers/assets.rb @@ -0,0 +1 @@ +Rails.application.config.assets.precompile += %w( carts_index.js ) \ No newline at end of file diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb new file mode 100644 index 0000000..57a4fc0 --- /dev/null +++ b/config/initializers/devise.rb @@ -0,0 +1,259 @@ +# Use this hook to configure devise mailer, warden hooks and so forth. +# Many of these configuration options can be set straight in your model. +Devise.setup do |config| + + #add for production on linode + config.secret_key = 'b4715cc036012ba23dd0149696a4a64e0785c7f443c4ab81731b4d121fa687c75414933a7fda3864da22780931e4db28f84a14d396b26bef5d0977093435eb46' + # The secret key used by Devise. Devise uses this key to generate + # random tokens. Changing this key will render invalid all existing + # confirmation, reset password and unlock tokens in the database. + # config.secret_key = 'd67846097273ae204160aed4ca73c42f7e4efd8488cd800575833f91a5b285397068966a6a74e8a5a1a06f7515635c14498bae0ce4bbbfefa2551d64208da37d' + + # ==> Mailer Configuration + # Configure the e-mail address which will be shown in Devise::Mailer, + # note that it will be overwritten if you use your own mailer class + # with default "from" parameter. + config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com' + + # Configure the class responsible to send e-mails. + # config.mailer = 'Devise::Mailer' + + # ==> ORM configuration + # Load and configure the ORM. Supports :active_record (default) and + # :mongoid (bson_ext recommended) by default. Other ORMs may be + # available as additional gems. + require 'devise/orm/active_record' + + # ==> Configuration for any authentication mechanism + # Configure which keys are used when authenticating a user. The default is + # just :email. You can configure it to use [:username, :subdomain], so for + # authenticating a user, both parameters are required. Remember that those + # parameters are used only when authenticating and not when retrieving from + # session. If you need permissions, you should implement that in a before filter. + # You can also supply a hash where the value is a boolean determining whether + # or not authentication should be aborted when the value is not present. + # config.authentication_keys = [ :email ] + + # Configure parameters from the request object used for authentication. Each entry + # given should be a request method and it will automatically be passed to the + # find_for_authentication method and considered in your model lookup. For instance, + # if you set :request_keys to [:subdomain], :subdomain will be used on authentication. + # The same considerations mentioned for authentication_keys also apply to request_keys. + # config.request_keys = [] + + # Configure which authentication keys should be case-insensitive. + # These keys will be downcased upon creating or modifying a user and when used + # to authenticate or find a user. Default is :email. + config.case_insensitive_keys = [ :email ] + + # Configure which authentication keys should have whitespace stripped. + # These keys will have whitespace before and after removed upon creating or + # modifying a user and when used to authenticate or find a user. Default is :email. + config.strip_whitespace_keys = [ :email ] + + # Tell if authentication through request.params is enabled. True by default. + # It can be set to an array that will enable params authentication only for the + # given strategies, for example, `config.params_authenticatable = [:database]` will + # enable it only for database (email + password) authentication. + # config.params_authenticatable = true + + # Tell if authentication through HTTP Auth is enabled. False by default. + # It can be set to an array that will enable http authentication only for the + # given strategies, for example, `config.http_authenticatable = [:database]` will + # enable it only for database authentication. The supported strategies are: + # :database = Support basic authentication with authentication key + password + # config.http_authenticatable = false + + # If http headers should be returned for AJAX requests. True by default. + # config.http_authenticatable_on_xhr = true + + # The realm used in Http Basic Authentication. 'Application' by default. + # config.http_authentication_realm = 'Application' + + # It will change confirmation, password recovery and other workflows + # to behave the same regardless if the e-mail provided was right or wrong. + # Does not affect registerable. + # config.paranoid = true + + # By default Devise will store the user in session. You can skip storage for + # particular strategies by setting this option. + # Notice that if you are skipping storage for all authentication paths, you + # may want to disable generating routes to Devise's sessions controller by + # passing skip: :sessions to `devise_for` in your config/routes.rb + config.skip_session_storage = [:http_auth] + + # By default, Devise cleans up the CSRF token on authentication to + # avoid CSRF token fixation attacks. This means that, when using AJAX + # requests for sign in and sign up, you need to get a new CSRF token + # from the server. You can disable this option at your own risk. + # config.clean_up_csrf_token_on_authentication = true + + # ==> Configuration for :database_authenticatable + # For bcrypt, this is the cost for hashing the password and defaults to 10. If + # using other encryptors, it sets how many times you want the password re-encrypted. + # + # Limiting the stretches to just one in testing will increase the performance of + # your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use + # a value less than 10 in other environments. Note that, for bcrypt (the default + # encryptor), the cost increases exponentially with the number of stretches (e.g. + # a value of 20 is already extremely slow: approx. 60 seconds for 1 calculation). + config.stretches = Rails.env.test? ? 1 : 10 + + # Setup a pepper to generate the encrypted password. + # config.pepper = 'd039ac3dd9240765cb5c04de3b740eb67099f8da3b33fcd2e3e182d6dfdeeb44613a08fd8b821ce06c1ea691d575b4c37a09d9bdac335f570568918bd04ab4f7' + + # ==> Configuration for :confirmable + # A period that the user is allowed to access the website even without + # confirming their account. For instance, if set to 2.days, the user will be + # able to access the website for two days without confirming their account, + # access will be blocked just in the third day. Default is 0.days, meaning + # the user cannot access the website without confirming their account. + # config.allow_unconfirmed_access_for = 2.days + + # A period that the user is allowed to confirm their account before their + # token becomes invalid. For example, if set to 3.days, the user can confirm + # their account within 3 days after the mail was sent, but on the fourth day + # their account can't be confirmed with the token any more. + # Default is nil, meaning there is no restriction on how long a user can take + # before confirming their account. + # config.confirm_within = 3.days + + # If true, requires any email changes to be confirmed (exactly the same way as + # initial account confirmation) to be applied. Requires additional unconfirmed_email + # db field (see migrations). Until confirmed, new email is stored in + # unconfirmed_email column, and copied to email column on successful confirmation. + config.reconfirmable = true + + # Defines which key will be used when confirming an account + # config.confirmation_keys = [ :email ] + + # ==> Configuration for :rememberable + # The time the user will be remembered without asking for credentials again. + # config.remember_for = 2.weeks + + # If true, extends the user's remember period when remembered via cookie. + # config.extend_remember_period = false + + # Options to be passed to the created cookie. For instance, you can set + # secure: true in order to force SSL only cookies. + # config.rememberable_options = {} + + # ==> Configuration for :validatable + # Range for password length. + config.password_length = 8..128 + + # Email regex used to validate email formats. It simply asserts that + # one (and only one) @ exists in the given string. This is mainly + # to give user feedback and not to assert the e-mail validity. + # config.email_regexp = /\A[^@]+@[^@]+\z/ + + # ==> Configuration for :timeoutable + # The time you want to timeout the user session without activity. After this + # time the user will be asked for credentials again. Default is 30 minutes. + # config.timeout_in = 30.minutes + + # If true, expires auth token on session timeout. + # config.expire_auth_token_on_timeout = false + + # ==> Configuration for :lockable + # Defines which strategy will be used to lock an account. + # :failed_attempts = Locks an account after a number of failed attempts to sign in. + # :none = No lock strategy. You should handle locking by yourself. + # config.lock_strategy = :failed_attempts + + # Defines which key will be used when locking and unlocking an account + # config.unlock_keys = [ :email ] + + # Defines which strategy will be used to unlock an account. + # :email = Sends an unlock link to the user email + # :time = Re-enables login after a certain amount of time (see :unlock_in below) + # :both = Enables both strategies + # :none = No unlock strategy. You should handle unlocking by yourself. + # config.unlock_strategy = :both + + # Number of authentication tries before locking an account if lock_strategy + # is failed attempts. + # config.maximum_attempts = 20 + + # Time interval to unlock the account if :time is enabled as unlock_strategy. + # config.unlock_in = 1.hour + + # Warn on the last attempt before the account is locked. + # config.last_attempt_warning = false + + # ==> Configuration for :recoverable + # + # Defines which key will be used when recovering the password for an account + # config.reset_password_keys = [ :email ] + + # Time interval you can reset your password with a reset password key. + # Don't put a too small interval or your users won't have the time to + # change their passwords. + config.reset_password_within = 6.hours + + # ==> Configuration for :encryptable + # Allow you to use another encryption algorithm besides bcrypt (default). You can use + # :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1, + # :authlogic_sha512 (then you should set stretches above to 20 for default behavior) + # and :restful_authentication_sha1 (then you should set stretches to 10, and copy + # REST_AUTH_SITE_KEY to pepper). + # + # Require the `devise-encryptable` gem when using anything other than bcrypt + # config.encryptor = :sha512 + + # ==> Scopes configuration + # Turn scoped views on. Before rendering "sessions/new", it will first check for + # "users/sessions/new". It's turned off by default because it's slower if you + # are using only default views. + # config.scoped_views = false + + # Configure the default scope given to Warden. By default it's the first + # devise role declared in your routes (usually :user). + # config.default_scope = :user + + # Set this configuration to false if you want /users/sign_out to sign out + # only the current scope. By default, Devise signs out all scopes. + # config.sign_out_all_scopes = true + + # ==> Navigation configuration + # Lists the formats that should be treated as navigational. Formats like + # :html, should redirect to the sign in page when the user does not have + # access, but formats like :xml or :json, should return 401. + # + # If you have any extra navigational formats, like :iphone or :mobile, you + # should add them to the navigational formats lists. + # + # The "*/*" below is required to match Internet Explorer requests. + # config.navigational_formats = ['*/*', :html] + + # The default HTTP method used to sign out a resource. Default is :delete. + config.sign_out_via = :delete + + # ==> OmniAuth + # Add a new OmniAuth provider. Check the wiki for more information on setting + # up on your models and hooks. + # config.omniauth :github, 'APP_ID', 'APP_SECRET', scope: 'user,public_repo' + + # ==> Warden configuration + # If you want to use other strategies, that are not supported by Devise, or + # change the failure app, you can configure them inside the config.warden block. + # + # config.warden do |manager| + # manager.intercept_401 = false + # manager.default_strategies(scope: :user).unshift :some_external_strategy + # end + + # ==> Mountable engine configurations + # When using Devise inside an engine, let's call it `MyEngine`, and this engine + # is mountable, there are some extra configurations to be taken into account. + # The following options are available, assuming the engine is mounted as: + # + # mount MyEngine, at: '/my_engine' + # + # The router that invoked `devise_for`, in the example above, would be: + # config.router_name = :my_engine + # + # When using omniauth, Devise cannot automatically set Omniauth path, + # so you need to do it manually. For the users scope, it would be: + # config.omniauth_path_prefix = '/my_engine/users/auth' +end diff --git a/config/initializers/seo_helper.rb b/config/initializers/seo_helper.rb new file mode 100644 index 0000000..afc79ba --- /dev/null +++ b/config/initializers/seo_helper.rb @@ -0,0 +1,8 @@ +SeoHelper.configure do |config| + config.site_name = "Ryans Artstore" + + config.skip_blank = false + config.default_page_description = "This Artstore is a really really awesome website" + config.default_page_keywords = "Artstore,Ryan,Car" + config.default_page_image = "http://placehold.it/200x200&text=No Pic" +end \ No newline at end of file diff --git a/config/initializers/simple_form.rb b/config/initializers/simple_form.rb new file mode 100644 index 0000000..bf7be1c --- /dev/null +++ b/config/initializers/simple_form.rb @@ -0,0 +1,161 @@ +# Use this setup block to configure all options available in SimpleForm. +SimpleForm.setup do |config| + # Wrappers are used by the form builder to generate a + # complete input. You can remove any component from the + # wrapper, change the order or even add your own to the + # stack. The options given below are used to wrap the + # whole input. + config.wrappers :default, class: :input, + hint_class: :field_with_hint, error_class: :field_with_errors do |b| + ## Extensions enabled by default + # Any of these extensions can be disabled for a + # given input by passing: `f.input EXTENSION_NAME => false`. + # You can make any of these extensions optional by + # renaming `b.use` to `b.optional`. + + # Determines whether to use HTML5 (:email, :url, ...) + # and required attributes + b.use :html5 + + # Calculates placeholders automatically from I18n + # You can also pass a string as f.input placeholder: "Placeholder" + b.use :placeholder + + ## Optional extensions + # They are disabled unless you pass `f.input EXTENSION_NAME => :lookup` + # to the input. If so, they will retrieve the values from the model + # if any exists. If you want to enable the lookup for any of those + # extensions by default, you can change `b.optional` to `b.use`. + + # Calculates maxlength from length validations for string inputs + b.optional :maxlength + + # Calculates pattern from format validations for string inputs + b.optional :pattern + + # Calculates min and max from length validations for numeric inputs + b.optional :min_max + + # Calculates readonly automatically from readonly attributes + b.optional :readonly + + ## Inputs + b.use :label_input + b.use :hint, wrap_with: { tag: :span, class: :hint } + b.use :error, wrap_with: { tag: :span, class: :error } + + ## full_messages_for + # If you want to display the full error message for the attribute, you can + # use the component :full_error, like: + # + # b.use :full_error, wrap_with: { tag: :span, class: :error } + end + + # The default wrapper to be used by the FormBuilder. + config.default_wrapper = :default + + # Define the way to render check boxes / radio buttons with labels. + # Defaults to :nested for bootstrap config. + # inline: input + label + # nested: label > input + config.boolean_style = :nested + + # Default class for buttons + config.button_class = 'btn' + + # Method used to tidy up errors. Specify any Rails Array method. + # :first lists the first message for each field. + # Use :to_sentence to list all errors for each field. + # config.error_method = :first + + # Default tag used for error notification helper. + config.error_notification_tag = :div + + # CSS class to add for error notification helper. + config.error_notification_class = 'error_notification' + + # ID to add for error notification helper. + # config.error_notification_id = nil + + # Series of attempts to detect a default label method for collection. + # config.collection_label_methods = [ :to_label, :name, :title, :to_s ] + + # Series of attempts to detect a default value method for collection. + # config.collection_value_methods = [ :id, :to_s ] + + # You can wrap a collection of radio/check boxes in a pre-defined tag, defaulting to none. + # config.collection_wrapper_tag = nil + + # You can define the class to use on all collection wrappers. Defaulting to none. + # config.collection_wrapper_class = nil + + # You can wrap each item in a collection of radio/check boxes with a tag, + # defaulting to :span. Please note that when using :boolean_style = :nested, + # SimpleForm will force this option to be a label. + # config.item_wrapper_tag = :span + + # You can define a class to use in all item wrappers. Defaulting to none. + # config.item_wrapper_class = nil + + # How the label text should be generated altogether with the required text. + # config.label_text = lambda { |label, required, explicit_label| "#{required} #{label}" } + + # You can define the class to use on all labels. Default is nil. + # config.label_class = nil + + # You can define the class to use on all forms. Default is simple_form. + # config.form_class = :simple_form + + # You can define which elements should obtain additional classes + # config.generate_additional_classes_for = [:wrapper, :label, :input] + + # Whether attributes are required by default (or not). Default is true. + # config.required_by_default = true + + # Tell browsers whether to use the native HTML5 validations (novalidate form option). + # These validations are enabled in SimpleForm's internal config but disabled by default + # in this configuration, which is recommended due to some quirks from different browsers. + # To stop SimpleForm from generating the novalidate option, enabling the HTML5 validations, + # change this configuration to true. + config.browser_validations = false + + # Collection of methods to detect if a file type was given. + # config.file_methods = [ :mounted_as, :file?, :public_filename ] + + # Custom mappings for input types. This should be a hash containing a regexp + # to match as key, and the input type that will be used when the field name + # matches the regexp as value. + # config.input_mappings = { /count/ => :integer } + + # Custom wrappers for input types. This should be a hash containing an input + # type as key and the wrapper that will be used for all inputs with specified type. + # config.wrapper_mappings = { string: :prepend } + + # Default priority for time_zone inputs. + # config.time_zone_priority = nil + + # Default priority for country inputs. + # config.country_priority = nil + + # When false, do not use translations for labels. + # config.translate_labels = true + + # Automatically discover new inputs in Rails' autoload path. + # config.inputs_discovery = true + + # Cache SimpleForm inputs discovery + # config.cache_discovery = !Rails.env.development? + + # Default class for inputs + # config.input_class = nil + + # Define the default class of the input wrapper of the boolean input. + config.boolean_label_class = 'checkbox' + + # Defines if the default input wrapper class should be included in radio + # collection wrappers. + # config.include_default_input_wrapper_class = true + + # Defines which i18n scope will be used in Simple Form. + # config.i18n_scope = 'simple_form' +end diff --git a/config/initializers/simple_form_bootstrap.rb b/config/initializers/simple_form_bootstrap.rb new file mode 100644 index 0000000..16e8875 --- /dev/null +++ b/config/initializers/simple_form_bootstrap.rb @@ -0,0 +1,106 @@ +# Use this setup block to configure all options available in SimpleForm. +SimpleForm.setup do |config| + config.button_class = 'btn btn-default' + config.boolean_label_class = nil + + config.wrappers :vertical_form, tag: 'div', class: 'form-group', error_class: 'has-error' do |b| + b.use :html5 + b.use :placeholder + b.use :label, class: 'control-label' + + b.wrapper tag: 'div' do |ba| + ba.use :input, class: 'form-control' + ba.use :error, wrap_with: { tag: 'span', class: 'help-block' } + ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' } + end + end + + config.wrappers :vertical_file_input, tag: 'div', class: 'form-group', error_class: 'has-error' do |b| + b.use :html5 + b.use :placeholder + b.use :label, class: 'control-label' + + b.wrapper tag: 'div' do |ba| + ba.use :input + ba.use :error, wrap_with: { tag: 'span', class: 'help-block' } + ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' } + end + end + + config.wrappers :vertical_boolean, tag: 'div', class: 'form-group', error_class: 'has-error' do |b| + b.use :html5 + b.use :placeholder + + b.wrapper tag: 'div', class: 'checkbox' do |ba| + ba.use :label_input + end + + b.use :error, wrap_with: { tag: 'span', class: 'help-block' } + b.use :hint, wrap_with: { tag: 'p', class: 'help-block' } + end + + config.wrappers :vertical_radio_and_checkboxes, tag: 'div', class: 'form-group', error_class: 'has-error' do |b| + b.use :html5 + b.use :placeholder + b.use :label_input + b.use :error, wrap_with: { tag: 'span', class: 'help-block' } + b.use :hint, wrap_with: { tag: 'p', class: 'help-block' } + end + + config.wrappers :horizontal_form, tag: 'div', class: 'form-group fuck', error_class: 'has-error' do |b| + b.use :html5 + b.use :placeholder + b.use :label, class: 'col-sm-3 control-label' + + b.wrapper tag: 'div', class: 'col-sm-9' do |ba| + ba.use :input, class: 'form-control' + ba.use :error, wrap_with: { tag: 'span', class: 'help-block' } + ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' } + end + end + + config.wrappers :horizontal_file_input, tag: 'div', class: 'form-group', error_class: 'has-error' do |b| + b.use :html5 + b.use :placeholder + b.use :label, class: 'col-sm-3 control-label' + + b.wrapper tag: 'div', class: 'col-sm-9' do |ba| + ba.use :input + ba.use :error, wrap_with: { tag: 'span', class: 'help-block' } + ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' } + end + end + + config.wrappers :horizontal_boolean, tag: 'div', class: 'form-group', error_class: 'has-error' do |b| + b.use :html5 + b.use :placeholder + + b.wrapper tag: 'div', class: 'col-sm-offset-3 col-sm-9' do |wr| + wr.wrapper tag: 'div', class: 'checkbox' do |ba| + ba.use :label_input, class: 'col-sm-9' + end + + wr.use :error, wrap_with: { tag: 'span', class: 'help-block' } + wr.use :hint, wrap_with: { tag: 'p', class: 'help-block' } + end + end + + config.wrappers :horizontal_radio_and_checkboxes, tag: 'div', class: 'form-group', error_class: 'has-error' do |b| + b.use :html5 + b.use :placeholder + + b.use :label, class: 'col-sm-3 control-label' + + b.wrapper tag: 'div', class: 'col-sm-9' do |ba| + ba.use :input + ba.use :error, wrap_with: { tag: 'span', class: 'help-block' } + ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' } + end + end + + # Wrappers for forms and inputs using the Bootstrap toolkit. + # Check the Bootstrap docs (http://getbootstrap.com) + # to learn about the different styles for forms and inputs, + # buttons and other elements. + config.default_wrapper = :vertical_form +end diff --git a/config/initializers/sitemap.rb b/config/initializers/sitemap.rb new file mode 100644 index 0000000..a5d56f7 --- /dev/null +++ b/config/initializers/sitemap.rb @@ -0,0 +1,9 @@ +require 'rubygems' +require 'sitemap_generator' + +SitemapGenerator::Sitemap.default_host = 'http://inkryan.com' +SitemapGenerator::Sitemap.create do + add '/home', :changefreq => 'daily', :priority => 0.9 + add '/contact_us', :changefreq => 'weekly' +end +SitemapGenerator::Sitemap.ping_search_engines # Not needed if you use the rake tasks \ No newline at end of file diff --git a/config/locales/devise.en.yml b/config/locales/devise.en.yml new file mode 100644 index 0000000..abccdb0 --- /dev/null +++ b/config/locales/devise.en.yml @@ -0,0 +1,59 @@ +# Additional translations at https://github.com/plataformatec/devise/wiki/I18n + +en: + devise: + confirmations: + confirmed: "Your account was successfully confirmed." + send_instructions: "You will receive an email with instructions about how to confirm your account in a few minutes." + send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions about how to confirm your account in a few minutes." + failure: + already_authenticated: "You are already signed in." + inactive: "Your account is not activated yet." + invalid: "Invalid email or password." + locked: "Your account is locked." + last_attempt: "You have one more attempt before your account will be locked." + not_found_in_database: "Invalid email or password." + timeout: "Your session expired. Please sign in again to continue." + unauthenticated: "You need to sign in or sign up before continuing." + unconfirmed: "You have to confirm your account before continuing." + mailer: + confirmation_instructions: + subject: "Confirmation instructions" + reset_password_instructions: + subject: "Reset password instructions" + unlock_instructions: + subject: "Unlock Instructions" + omniauth_callbacks: + failure: "Could not authenticate you from %{kind} because \"%{reason}\"." + success: "Successfully authenticated from %{kind} account." + passwords: + no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided." + send_instructions: "You will receive an email with instructions on how to reset your password in a few minutes." + send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes." + updated: "Your password was changed successfully. You are now signed in." + updated_not_active: "Your password was changed successfully." + registrations: + destroyed: "Bye! Your account was successfully cancelled. We hope to see you again soon." + signed_up: "Welcome! You have signed up successfully." + signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated." + signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked." + signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please open the link to activate your account." + update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and click on the confirm link to finalize confirming your new email address." + updated: "You updated your account successfully." + sessions: + signed_in: "Signed in successfully." + signed_out: "Signed out successfully." + unlocks: + send_instructions: "You will receive an email with instructions about how to unlock your account in a few minutes." + send_paranoid_instructions: "If your account exists, you will receive an email with instructions about how to unlock it in a few minutes." + unlocked: "Your account has been unlocked successfully. Please sign in to continue." + errors: + messages: + already_confirmed: "was already confirmed, please try signing in" + confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one" + expired: "has expired, please request a new one" + not_found: "not found" + not_locked: "was not locked" + not_saved: + one: "1 error prohibited this %{resource} from being saved:" + other: "%{count} errors prohibited this %{resource} from being saved:" diff --git a/config/locales/en.yml b/config/locales/en.yml index 0653957..00fbe0d 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -21,3 +21,14 @@ en: hello: "Hello world" + orders: + order_state: + order_placed: 已下單 + paid: 已付款 + shipping: 出貨中 + shipped: 已到貨 + order_cancelled: 取消訂單 + good_returned: 退貨 + payment_methods: + credit_card: 信用卡 + atm: ATM \ No newline at end of file diff --git a/config/locales/simple_form.en.yml b/config/locales/simple_form.en.yml new file mode 100644 index 0000000..2374383 --- /dev/null +++ b/config/locales/simple_form.en.yml @@ -0,0 +1,31 @@ +en: + simple_form: + "yes": 'Yes' + "no": 'No' + required: + text: 'required' + mark: '*' + # You can uncomment the line below if you need to overwrite the whole required html. + # When using html, text and mark won't be used. + # html: '*' + error_notification: + default_message: "Please review the problems below:" + # Examples + # labels: + # defaults: + # password: 'Password' + # user: + # new: + # email: 'E-mail to sign in.' + # edit: + # email: 'E-mail.' + # hints: + # defaults: + # username: 'User name to sign in.' + # password: 'No special characters, please.' + # include_blanks: + # defaults: + # age: 'Rather not say' + # prompts: + # defaults: + # age: 'Select your age' diff --git a/config/routes.rb b/config/routes.rb index 3f66539..6db3216 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,66 @@ Rails.application.routes.draw do + + #add for sidekiq dashboard + require 'sidekiq/web' + mount Sidekiq::Web, at: "/sidekiq" + + devise_for :users + namespace :admin do + resources :products do + resources :photos + end + resources :orders do + member do + post :cancel + post :ship + post :shipped + post :return + end + end + end + + resources :products do + collection do + #post :search, :to => "products#index" + post :search + end + end + + resources :carts do + collection do + delete :remove_all + post :checkout + end + end + + resources :orders do + member do + get :pay_with_credit_card + end + resources :card_charges + end + + resources :cart_items do + member do + post :add_to_cart + delete :remove_from_cart + end + end + + namespace :account do + resources :orders do + member do + post :cancel + post :return + end + end + end + + + root :to => "products#index" + + + # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes". diff --git a/config/secrets.yml b/config/secrets.yml.example similarity index 99% rename from config/secrets.yml rename to config/secrets.yml.example index 9fe1670..726bbcb 100644 --- a/config/secrets.yml +++ b/config/secrets.yml.example @@ -20,3 +20,4 @@ test: # instead read values from the environment. production: secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> + diff --git a/config/settings.yml.example b/config/settings.yml.example new file mode 100644 index 0000000..ca66077 --- /dev/null +++ b/config/settings.yml.example @@ -0,0 +1,14 @@ +defaults: &defaults + stripe: + secret_key: your stripe secret key + +development: + <<: *defaults + mailgun: + password: your mailgun password + +test: + <<: *defaults + +production: + <<: *defaults \ No newline at end of file diff --git a/cookies.txt b/cookies.txt new file mode 100644 index 0000000..3f62c9f --- /dev/null +++ b/cookies.txt @@ -0,0 +1,6 @@ +# Netscape HTTP Cookie File +# http://curl.haxx.se/docs/http-cookies.html +# This file was generated by libcurl! Edit at your own risk. + +localhost FALSE / FALSE 0 request_method HEAD +#HttpOnly_localhost FALSE / FALSE 0 _artstore_session L05yMmtWTWVlSjlXbVVpelNsTklIenJPaFAwZFIzZE12eXFFNFRGU0ZzVUc1ZTRDNCtUWm9yQ0F1VThtbnBjNWZUeURxUU1HY0MwcjZhbUl6ZWU4VEVmVkQ5MmJtUXVnNWtWMGZHc2RLWkl2UENxRWU2VHptamtQT0lVQnM3Um9lNE1ZUWtEV3IxY2lqa3p2Q1phVnZZTUVYcSswckU4V0k4MkZmTHJ4U0tFPS0tanFlbE9FdC9DeUI3cWRLeHVoYklaZz09--198bcaecbe98d3d631aac5772a937b398046168b diff --git a/db/migrate/20140708083012_create_products.rb b/db/migrate/20140708083012_create_products.rb new file mode 100644 index 0000000..805c976 --- /dev/null +++ b/db/migrate/20140708083012_create_products.rb @@ -0,0 +1,11 @@ +class CreateProducts < ActiveRecord::Migration + def change + create_table :products do |t| + t.string :title + t.text :description + t.integer :quantity + + t.timestamps + end + end +end diff --git a/db/migrate/20140708091058_devise_create_users.rb b/db/migrate/20140708091058_devise_create_users.rb new file mode 100644 index 0000000..cf497c2 --- /dev/null +++ b/db/migrate/20140708091058_devise_create_users.rb @@ -0,0 +1,42 @@ +class DeviseCreateUsers < ActiveRecord::Migration + def change + create_table(:users) do |t| + ## Database authenticatable + t.string :email, null: false, default: "" + t.string :encrypted_password, null: false, default: "" + + ## Recoverable + t.string :reset_password_token + t.datetime :reset_password_sent_at + + ## Rememberable + t.datetime :remember_created_at + + ## Trackable + t.integer :sign_in_count, default: 0, null: false + t.datetime :current_sign_in_at + t.datetime :last_sign_in_at + t.string :current_sign_in_ip + t.string :last_sign_in_ip + + ## Confirmable + # t.string :confirmation_token + # t.datetime :confirmed_at + # t.datetime :confirmation_sent_at + # t.string :unconfirmed_email # Only if using reconfirmable + + ## Lockable + # t.integer :failed_attempts, default: 0, null: false # Only if lock strategy is :failed_attempts + # t.string :unlock_token # Only if unlock strategy is :email or :both + # t.datetime :locked_at + + + t.timestamps + end + + add_index :users, :email, unique: true + add_index :users, :reset_password_token, unique: true + # add_index :users, :confirmation_token, unique: true + # add_index :users, :unlock_token, unique: true + end +end diff --git a/db/migrate/20140708091555_add_is_admin_to_user.rb b/db/migrate/20140708091555_add_is_admin_to_user.rb new file mode 100644 index 0000000..1ef84cf --- /dev/null +++ b/db/migrate/20140708091555_add_is_admin_to_user.rb @@ -0,0 +1,5 @@ +class AddIsAdminToUser < ActiveRecord::Migration + def change + add_column :users, :is_admin, :boolean, :default => false + end +end diff --git a/db/migrate/20140709030555_create_photos.rb b/db/migrate/20140709030555_create_photos.rb new file mode 100644 index 0000000..129afd5 --- /dev/null +++ b/db/migrate/20140709030555_create_photos.rb @@ -0,0 +1,8 @@ +class CreatePhotos < ActiveRecord::Migration + def change + create_table :photos do |t| + + t.timestamps + end + end +end diff --git a/db/migrate/20140709030635_add_image_to_photos.rb b/db/migrate/20140709030635_add_image_to_photos.rb new file mode 100644 index 0000000..21dcf02 --- /dev/null +++ b/db/migrate/20140709030635_add_image_to_photos.rb @@ -0,0 +1,5 @@ +class AddImageToPhotos < ActiveRecord::Migration + def change + add_column :photos, :image, :string + end +end diff --git a/db/migrate/20140709033214_add_product_id_to_photos.rb b/db/migrate/20140709033214_add_product_id_to_photos.rb new file mode 100644 index 0000000..36fbb0d --- /dev/null +++ b/db/migrate/20140709033214_add_product_id_to_photos.rb @@ -0,0 +1,5 @@ +class AddProductIdToPhotos < ActiveRecord::Migration + def change + add_column :photos, :product_id, :integer + end +end diff --git a/db/migrate/20140717064625_add_column_price_to_products.rb b/db/migrate/20140717064625_add_column_price_to_products.rb new file mode 100644 index 0000000..818bb91 --- /dev/null +++ b/db/migrate/20140717064625_add_column_price_to_products.rb @@ -0,0 +1,5 @@ +class AddColumnPriceToProducts < ActiveRecord::Migration + def change + add_column :products, :price, :float, :default => 0 + end +end diff --git a/db/migrate/20140717064816_change_quantity_default_in_products.rb b/db/migrate/20140717064816_change_quantity_default_in_products.rb new file mode 100644 index 0000000..89db7f3 --- /dev/null +++ b/db/migrate/20140717064816_change_quantity_default_in_products.rb @@ -0,0 +1,5 @@ +class ChangeQuantityDefaultInProducts < ActiveRecord::Migration + def change + change_column :products, :quantity, :integer, :default => 0 + end +end diff --git a/db/migrate/20140718085358_create_cart_items.rb b/db/migrate/20140718085358_create_cart_items.rb new file mode 100644 index 0000000..0fb13b1 --- /dev/null +++ b/db/migrate/20140718085358_create_cart_items.rb @@ -0,0 +1,10 @@ +class CreateCartItems < ActiveRecord::Migration + def change + create_table :cart_items do |t| + t.integer :cart_id + t.integer :product_id + + t.timestamps + end + end +end diff --git a/db/migrate/20140718094803_create_carts.rb b/db/migrate/20140718094803_create_carts.rb new file mode 100644 index 0000000..8e66adb --- /dev/null +++ b/db/migrate/20140718094803_create_carts.rb @@ -0,0 +1,8 @@ +class CreateCarts < ActiveRecord::Migration + def change + create_table :carts do |t| + + t.timestamps + end + end +end diff --git a/db/migrate/20140718102043_create_orders.rb b/db/migrate/20140718102043_create_orders.rb new file mode 100644 index 0000000..1a3ab67 --- /dev/null +++ b/db/migrate/20140718102043_create_orders.rb @@ -0,0 +1,10 @@ +class CreateOrders < ActiveRecord::Migration + def change + create_table :orders do |t| + t.integer :user_id + t.integer :total, :default => 0 + t.boolean :paid, :default => false + t.timestamps + end + end +end diff --git a/db/migrate/20140718102112_create_order_infos.rb b/db/migrate/20140718102112_create_order_infos.rb new file mode 100644 index 0000000..f1c4a39 --- /dev/null +++ b/db/migrate/20140718102112_create_order_infos.rb @@ -0,0 +1,12 @@ +class CreateOrderInfos < ActiveRecord::Migration + def change + create_table :order_infos do |t| + t.integer :order_id + t.string :billing_name + t.string :billing_address + t.string :shipping_name + t.string :shipping_address + t.timestamps + end + end +end diff --git a/db/migrate/20140718102125_create_order_items.rb b/db/migrate/20140718102125_create_order_items.rb new file mode 100644 index 0000000..73e151b --- /dev/null +++ b/db/migrate/20140718102125_create_order_items.rb @@ -0,0 +1,11 @@ +class CreateOrderItems < ActiveRecord::Migration + def change + create_table :order_items do |t| + t.string :product_name + t.float :price + t.integer :quantity + t.integer :order_id + t.timestamps + end + end +end diff --git a/db/migrate/20140718115135_add_token_to_orders.rb b/db/migrate/20140718115135_add_token_to_orders.rb new file mode 100644 index 0000000..e7a6869 --- /dev/null +++ b/db/migrate/20140718115135_add_token_to_orders.rb @@ -0,0 +1,6 @@ +class AddTokenToOrders < ActiveRecord::Migration + def change + add_column :orders, :token, :string + add_index :orders, :token + end +end diff --git a/db/migrate/20140718120028_add_payment_method_to_orders.rb b/db/migrate/20140718120028_add_payment_method_to_orders.rb new file mode 100644 index 0000000..add19c4 --- /dev/null +++ b/db/migrate/20140718120028_add_payment_method_to_orders.rb @@ -0,0 +1,5 @@ +class AddPaymentMethodToOrders < ActiveRecord::Migration + def change + add_column :orders, :payment_method, :string + end +end diff --git a/db/migrate/20140718120749_add_column_aasm_state_to_orders.rb b/db/migrate/20140718120749_add_column_aasm_state_to_orders.rb new file mode 100644 index 0000000..3d2f2c2 --- /dev/null +++ b/db/migrate/20140718120749_add_column_aasm_state_to_orders.rb @@ -0,0 +1,6 @@ +class AddColumnAasmStateToOrders < ActiveRecord::Migration + def change + add_column :orders, :aasm_state, :string, :default => "order_placed" + add_index :orders, :aasm_state + end +end diff --git a/db/migrate/20140719070224_add_quantity_to_cart_items.rb b/db/migrate/20140719070224_add_quantity_to_cart_items.rb new file mode 100644 index 0000000..4f3542f --- /dev/null +++ b/db/migrate/20140719070224_add_quantity_to_cart_items.rb @@ -0,0 +1,5 @@ +class AddQuantityToCartItems < ActiveRecord::Migration + def change + add_column :cart_items, :quantity, :integer , :default => 1 + end +end diff --git a/db/migrate/20140812064420_add_column_to_products.rb b/db/migrate/20140812064420_add_column_to_products.rb new file mode 100644 index 0000000..b777f2b --- /dev/null +++ b/db/migrate/20140812064420_add_column_to_products.rb @@ -0,0 +1,6 @@ +class AddColumnToProducts < ActiveRecord::Migration + def change + add_column :products, :created_on, :date + add_column :products, :updated_on, :date + end +end diff --git a/db/schema.rb b/db/schema.rb new file mode 100644 index 0000000..d8652ae --- /dev/null +++ b/db/schema.rb @@ -0,0 +1,99 @@ +# encoding: UTF-8 +# This file is auto-generated from the current state of the database. Instead +# of editing this file, please use the migrations feature of Active Record to +# incrementally modify your database, and then regenerate this schema definition. +# +# Note that this schema.rb definition is the authoritative source for your +# database schema. If you need to create the application database on another +# system, you should be using db:schema:load, not running all the migrations +# from scratch. The latter is a flawed and unsustainable approach (the more migrations +# you'll amass, the slower it'll run and the greater likelihood for issues). +# +# It's strongly recommended that you check this file into your version control system. + +ActiveRecord::Schema.define(version: 20140812064420) do + + create_table "cart_items", force: true do |t| + t.integer "cart_id" + t.integer "product_id" + t.datetime "created_at" + t.datetime "updated_at" + t.integer "quantity", default: 1 + end + + create_table "carts", force: true do |t| + t.datetime "created_at" + t.datetime "updated_at" + end + + create_table "order_infos", force: true do |t| + t.integer "order_id" + t.string "billing_name" + t.string "billing_address" + t.string "shipping_name" + t.string "shipping_address" + t.datetime "created_at" + t.datetime "updated_at" + end + + create_table "order_items", force: true do |t| + t.string "product_name" + t.float "price" + t.integer "quantity" + t.integer "order_id" + t.datetime "created_at" + t.datetime "updated_at" + end + + create_table "orders", force: true do |t| + t.integer "user_id" + t.integer "total", default: 0 + t.boolean "paid", default: false + t.datetime "created_at" + t.datetime "updated_at" + t.string "token" + t.string "payment_method" + t.string "aasm_state", default: "order_placed" + end + + add_index "orders", ["aasm_state"], name: "index_orders_on_aasm_state", using: :btree + add_index "orders", ["token"], name: "index_orders_on_token", using: :btree + + create_table "photos", force: true do |t| + t.datetime "created_at" + t.datetime "updated_at" + t.string "image" + t.integer "product_id" + end + + create_table "products", force: true do |t| + t.string "title" + t.text "description" + t.integer "quantity", default: 0 + t.datetime "created_at" + t.datetime "updated_at" + t.float "price", default: 0.0 + t.date "created_on" + t.date "updated_on" + end + + create_table "users", force: true do |t| + t.string "email", default: "", null: false + t.string "encrypted_password", default: "", null: false + t.string "reset_password_token" + t.datetime "reset_password_sent_at" + t.datetime "remember_created_at" + t.integer "sign_in_count", default: 0, null: false + t.datetime "current_sign_in_at" + t.datetime "last_sign_in_at" + t.string "current_sign_in_ip" + t.string "last_sign_in_ip" + t.datetime "created_at" + t.datetime "updated_at" + t.boolean "is_admin", default: false + end + + add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree + add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree + +end diff --git a/lib/capistrano/tasks/logs.rake b/lib/capistrano/tasks/logs.rake new file mode 100644 index 0000000..2469dff --- /dev/null +++ b/lib/capistrano/tasks/logs.rake @@ -0,0 +1,24 @@ +# check logs +#namespace :logs do +# desc "tail rails logs" +# task :tail_rails do +# on roles(:app) do +# execute "tail -f #{shared_path}/log/#{fetch(:rails_env)}.log" +# end +# end +#end + +namespace :logs do + task :tail, :file do |t, args| + if args[:file] + on roles(:app) do + execute "tail -f #{shared_path}/log/#{args[:file]}.log" + end + else + puts "please specify a logfile e.g: 'rake logs:tail[logfile]" + puts "will tail 'shared_path/log/logfile.log'" + puts "remember if you use zsh you'll need to format it as:" + puts "rake 'logs:tail[logfile]' (single quotes)" + end + end +end \ No newline at end of file diff --git a/lib/tasks/dev.rake b/lib/tasks/dev.rake new file mode 100644 index 0000000..b91b180 --- /dev/null +++ b/lib/tasks/dev.rake @@ -0,0 +1,15 @@ +namespace :dev do + + desc "Rebuild system" + task :build => ["tmp:clear", "log:clear", "db:drop", "db:create", "db:migrate", "db:seed"] + + desc "Create fake user" + task :create_fake_user => :environment do + 10.times do |i| + email = "#{i}@gmail.com" + password = "12345678" + user = User.new(:email=>email , :password=>password) + user.save + end + end +end \ No newline at end of file diff --git a/lib/templates/erb/scaffold/_form.html.erb b/lib/templates/erb/scaffold/_form.html.erb new file mode 100644 index 0000000..201a069 --- /dev/null +++ b/lib/templates/erb/scaffold/_form.html.erb @@ -0,0 +1,13 @@ +<%%= simple_form_for(@<%= singular_table_name %>) do |f| %> + <%%= f.error_notification %> + +
+ <%- attributes.each do |attribute| -%> + <%%= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> %> + <%- end -%> +
+ +
+ <%%= f.button :submit %> +
+<%% end %> diff --git a/order b/order new file mode 100644 index 0000000..cd64bc2 --- /dev/null +++ b/order @@ -0,0 +1,2 @@ + invoke active_record + create db/migrate/20140718120736_add_column_aasm_state_to_orders.rb diff --git a/public/fonts/flat-ui-icons-regular.eot b/public/fonts/flat-ui-icons-regular.eot new file mode 100755 index 0000000..85b2a64 Binary files /dev/null and b/public/fonts/flat-ui-icons-regular.eot differ diff --git a/public/fonts/flat-ui-icons-regular.svg b/public/fonts/flat-ui-icons-regular.svg new file mode 100755 index 0000000..baefe3b --- /dev/null +++ b/public/fonts/flat-ui-icons-regular.svg @@ -0,0 +1,470 @@ + + + + +This is a custom SVG font generated by IcoMoon. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/fonts/flat-ui-icons-regular.ttf b/public/fonts/flat-ui-icons-regular.ttf new file mode 100755 index 0000000..5f6a98b Binary files /dev/null and b/public/fonts/flat-ui-icons-regular.ttf differ diff --git a/public/fonts/flat-ui-icons-regular.woff b/public/fonts/flat-ui-icons-regular.woff new file mode 100755 index 0000000..3df7bec Binary files /dev/null and b/public/fonts/flat-ui-icons-regular.woff differ diff --git a/public/fonts/lato/lato-black.eot b/public/fonts/lato/lato-black.eot new file mode 100755 index 0000000..a571b9a Binary files /dev/null and b/public/fonts/lato/lato-black.eot differ diff --git a/public/fonts/lato/lato-black.svg b/public/fonts/lato/lato-black.svg new file mode 100755 index 0000000..cab16d3 --- /dev/null +++ b/public/fonts/lato/lato-black.svg @@ -0,0 +1,4691 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/fonts/lato/lato-black.ttf b/public/fonts/lato/lato-black.ttf new file mode 100755 index 0000000..d52a2e4 Binary files /dev/null and b/public/fonts/lato/lato-black.ttf differ diff --git a/public/fonts/lato/lato-black.woff b/public/fonts/lato/lato-black.woff new file mode 100755 index 0000000..dc1cc18 Binary files /dev/null and b/public/fonts/lato/lato-black.woff differ diff --git a/public/fonts/lato/lato-bold.eot b/public/fonts/lato/lato-bold.eot new file mode 100755 index 0000000..0028ce7 Binary files /dev/null and b/public/fonts/lato/lato-bold.eot differ diff --git a/public/fonts/lato/lato-bold.svg b/public/fonts/lato/lato-bold.svg new file mode 100755 index 0000000..468cd2d --- /dev/null +++ b/public/fonts/lato/lato-bold.svg @@ -0,0 +1,5085 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/fonts/lato/lato-bold.ttf b/public/fonts/lato/lato-bold.ttf new file mode 100755 index 0000000..9367582 Binary files /dev/null and b/public/fonts/lato/lato-bold.ttf differ diff --git a/public/fonts/lato/lato-bold.woff b/public/fonts/lato/lato-bold.woff new file mode 100755 index 0000000..239b427 Binary files /dev/null and b/public/fonts/lato/lato-bold.woff differ diff --git a/public/fonts/lato/lato-bolditalic.eot b/public/fonts/lato/lato-bolditalic.eot new file mode 100755 index 0000000..389bb12 Binary files /dev/null and b/public/fonts/lato/lato-bolditalic.eot differ diff --git a/public/fonts/lato/lato-bolditalic.svg b/public/fonts/lato/lato-bolditalic.svg new file mode 100755 index 0000000..406f521 --- /dev/null +++ b/public/fonts/lato/lato-bolditalic.svg @@ -0,0 +1,4514 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/fonts/lato/lato-bolditalic.ttf b/public/fonts/lato/lato-bolditalic.ttf new file mode 100755 index 0000000..e686a10 Binary files /dev/null and b/public/fonts/lato/lato-bolditalic.ttf differ diff --git a/public/fonts/lato/lato-bolditalic.woff b/public/fonts/lato/lato-bolditalic.woff new file mode 100755 index 0000000..52c1d89 Binary files /dev/null and b/public/fonts/lato/lato-bolditalic.woff differ diff --git a/public/fonts/lato/lato-italic.eot b/public/fonts/lato/lato-italic.eot new file mode 100755 index 0000000..b1d7eef Binary files /dev/null and b/public/fonts/lato/lato-italic.eot differ diff --git a/public/fonts/lato/lato-italic.svg b/public/fonts/lato/lato-italic.svg new file mode 100755 index 0000000..18846f3 --- /dev/null +++ b/public/fonts/lato/lato-italic.svg @@ -0,0 +1,4514 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/fonts/lato/lato-italic.ttf b/public/fonts/lato/lato-italic.ttf new file mode 100755 index 0000000..b8beadb Binary files /dev/null and b/public/fonts/lato/lato-italic.ttf differ diff --git a/public/fonts/lato/lato-italic.woff b/public/fonts/lato/lato-italic.woff new file mode 100755 index 0000000..e8476f9 Binary files /dev/null and b/public/fonts/lato/lato-italic.woff differ diff --git a/public/fonts/lato/lato-light.eot b/public/fonts/lato/lato-light.eot new file mode 100755 index 0000000..31d0660 Binary files /dev/null and b/public/fonts/lato/lato-light.eot differ diff --git a/public/fonts/lato/lato-light.svg b/public/fonts/lato/lato-light.svg new file mode 100755 index 0000000..47df121 --- /dev/null +++ b/public/fonts/lato/lato-light.svg @@ -0,0 +1,4691 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/fonts/lato/lato-light.ttf b/public/fonts/lato/lato-light.ttf new file mode 100755 index 0000000..3e0bf3e Binary files /dev/null and b/public/fonts/lato/lato-light.ttf differ diff --git a/public/fonts/lato/lato-light.woff b/public/fonts/lato/lato-light.woff new file mode 100755 index 0000000..1b23b5e Binary files /dev/null and b/public/fonts/lato/lato-light.woff differ diff --git a/public/fonts/lato/lato-regular.eot b/public/fonts/lato/lato-regular.eot new file mode 100755 index 0000000..519ae5d Binary files /dev/null and b/public/fonts/lato/lato-regular.eot differ diff --git a/public/fonts/lato/lato-regular.svg b/public/fonts/lato/lato-regular.svg new file mode 100755 index 0000000..7a51d42 --- /dev/null +++ b/public/fonts/lato/lato-regular.svg @@ -0,0 +1,4691 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/public/fonts/lato/lato-regular.ttf b/public/fonts/lato/lato-regular.ttf new file mode 100755 index 0000000..83866f7 Binary files /dev/null and b/public/fonts/lato/lato-regular.ttf differ diff --git a/public/fonts/lato/lato-regular.woff b/public/fonts/lato/lato-regular.woff new file mode 100755 index 0000000..5ab1771 Binary files /dev/null and b/public/fonts/lato/lato-regular.woff differ diff --git a/public/sitemap.xml.gz b/public/sitemap.xml.gz new file mode 100644 index 0000000..9c501f3 Binary files /dev/null and b/public/sitemap.xml.gz differ diff --git a/string b/string new file mode 100644 index 0000000..06238be --- /dev/null +++ b/string @@ -0,0 +1,2 @@ + invoke active_record + create db/migrate/20140718120626_add_column_aasm_state_to_orders.rb diff --git a/test/controllers/account/orders_controller_test.rb b/test/controllers/account/orders_controller_test.rb new file mode 100644 index 0000000..b041941 --- /dev/null +++ b/test/controllers/account/orders_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class Account::OrdersControllerTest < ActionController::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/controllers/admin/orders_controller_test.rb b/test/controllers/admin/orders_controller_test.rb new file mode 100644 index 0000000..8af7f0c --- /dev/null +++ b/test/controllers/admin/orders_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class Admin::OrdersControllerTest < ActionController::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/controllers/admin/photos_controller_test.rb b/test/controllers/admin/photos_controller_test.rb new file mode 100644 index 0000000..bda4590 --- /dev/null +++ b/test/controllers/admin/photos_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class Admin::PhotosControllerTest < ActionController::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/controllers/admin/products_controller_test.rb b/test/controllers/admin/products_controller_test.rb new file mode 100644 index 0000000..508fe6b --- /dev/null +++ b/test/controllers/admin/products_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class Admin::ProductsControllerTest < ActionController::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/controllers/admin_controller_test.rb b/test/controllers/admin_controller_test.rb new file mode 100644 index 0000000..7bb9eb9 --- /dev/null +++ b/test/controllers/admin_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class AdminControllerTest < ActionController::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/controllers/card_charges_controller_test.rb b/test/controllers/card_charges_controller_test.rb new file mode 100644 index 0000000..c5002f2 --- /dev/null +++ b/test/controllers/card_charges_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class CardChargesControllerTest < ActionController::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/controllers/cart_items_controller_test.rb b/test/controllers/cart_items_controller_test.rb new file mode 100644 index 0000000..76b2b02 --- /dev/null +++ b/test/controllers/cart_items_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class CartItemsControllerTest < ActionController::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/controllers/carts_controller_test.rb b/test/controllers/carts_controller_test.rb new file mode 100644 index 0000000..1e748b8 --- /dev/null +++ b/test/controllers/carts_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class CartsControllerTest < ActionController::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/controllers/orders_controller_test.rb b/test/controllers/orders_controller_test.rb new file mode 100644 index 0000000..0afece1 --- /dev/null +++ b/test/controllers/orders_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class OrdersControllerTest < ActionController::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/controllers/products_controller_test.rb b/test/controllers/products_controller_test.rb new file mode 100644 index 0000000..c881fa6 --- /dev/null +++ b/test/controllers/products_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class ProductsControllerTest < ActionController::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/fixtures/cart_items.yml b/test/fixtures/cart_items.yml new file mode 100644 index 0000000..d5fac4d --- /dev/null +++ b/test/fixtures/cart_items.yml @@ -0,0 +1,21 @@ +# == Schema Information +# +# Table name: cart_items +# +# id :integer not null, primary key +# cart_id :integer +# product_id :integer +# created_at :datetime +# updated_at :datetime +# quantity :integer default(1) +# + +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + cart_id: 1 + product_id: 1 + +two: + cart_id: 1 + product_id: 1 diff --git a/test/fixtures/carts.yml b/test/fixtures/carts.yml new file mode 100644 index 0000000..9fdbb40 --- /dev/null +++ b/test/fixtures/carts.yml @@ -0,0 +1,20 @@ +# == Schema Information +# +# Table name: carts +# +# id :integer not null, primary key +# created_at :datetime +# updated_at :datetime +# + +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +# This model initially had no columns defined. If you add columns to the +# model remove the '{}' from the fixture names and add the columns immediately +# below each fixture, per the syntax in the comments below +# +one: {} +# column: value +# +two: {} +# column: value diff --git a/test/fixtures/order_infos.yml b/test/fixtures/order_infos.yml new file mode 100644 index 0000000..b237e26 --- /dev/null +++ b/test/fixtures/order_infos.yml @@ -0,0 +1,25 @@ +# == Schema Information +# +# Table name: order_infos +# +# id :integer not null, primary key +# order_id :integer +# billing_name :string(255) +# billing_address :string(255) +# shipping_name :string(255) +# shipping_address :string(255) +# created_at :datetime +# updated_at :datetime +# + +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +# This model initially had no columns defined. If you add columns to the +# model remove the '{}' from the fixture names and add the columns immediately +# below each fixture, per the syntax in the comments below +# +one: {} +# column: value +# +two: {} +# column: value diff --git a/test/fixtures/order_items.yml b/test/fixtures/order_items.yml new file mode 100644 index 0000000..3446899 --- /dev/null +++ b/test/fixtures/order_items.yml @@ -0,0 +1,24 @@ +# == Schema Information +# +# Table name: order_items +# +# id :integer not null, primary key +# product_name :string(255) +# price :float +# quantity :integer +# order_id :integer +# created_at :datetime +# updated_at :datetime +# + +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +# This model initially had no columns defined. If you add columns to the +# model remove the '{}' from the fixture names and add the columns immediately +# below each fixture, per the syntax in the comments below +# +one: {} +# column: value +# +two: {} +# column: value diff --git a/test/fixtures/orders.yml b/test/fixtures/orders.yml new file mode 100644 index 0000000..dea251d --- /dev/null +++ b/test/fixtures/orders.yml @@ -0,0 +1,26 @@ +# == Schema Information +# +# Table name: orders +# +# id :integer not null, primary key +# user_id :integer +# total :integer default(0) +# paid :boolean default(FALSE) +# created_at :datetime +# updated_at :datetime +# token :string(255) +# payment_method :string(255) +# aasm_state :string(255) default("order_placed") +# + +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +# This model initially had no columns defined. If you add columns to the +# model remove the '{}' from the fixture names and add the columns immediately +# below each fixture, per the syntax in the comments below +# +one: {} +# column: value +# +two: {} +# column: value diff --git a/test/fixtures/photos.yml b/test/fixtures/photos.yml new file mode 100644 index 0000000..43a4ec6 --- /dev/null +++ b/test/fixtures/photos.yml @@ -0,0 +1,22 @@ +# == Schema Information +# +# Table name: photos +# +# id :integer not null, primary key +# created_at :datetime +# updated_at :datetime +# image :string(255) +# product_id :integer +# + +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +# This model initially had no columns defined. If you add columns to the +# model remove the '{}' from the fixture names and add the columns immediately +# below each fixture, per the syntax in the comments below +# +one: {} +# column: value +# +two: {} +# column: value diff --git a/test/fixtures/products.yml b/test/fixtures/products.yml new file mode 100644 index 0000000..aaf8e76 --- /dev/null +++ b/test/fixtures/products.yml @@ -0,0 +1,26 @@ +# == Schema Information +# +# Table name: products +# +# id :integer not null, primary key +# title :string(255) +# description :text +# quantity :integer default(0) +# created_at :datetime +# updated_at :datetime +# price :float default(0.0) +# created_on :date +# updated_on :date +# + +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + title: MyString + description: MyText + quantity: 1 + +two: + title: MyString + description: MyText + quantity: 1 diff --git a/test/fixtures/users.yml b/test/fixtures/users.yml new file mode 100644 index 0000000..ef336eb --- /dev/null +++ b/test/fixtures/users.yml @@ -0,0 +1,31 @@ +# == Schema Information +# +# Table name: users +# +# id :integer not null, primary key +# email :string(255) default(""), not null +# encrypted_password :string(255) default(""), not null +# reset_password_token :string(255) +# reset_password_sent_at :datetime +# remember_created_at :datetime +# sign_in_count :integer default(0), not null +# current_sign_in_at :datetime +# last_sign_in_at :datetime +# current_sign_in_ip :string(255) +# last_sign_in_ip :string(255) +# created_at :datetime +# updated_at :datetime +# is_admin :boolean default(FALSE) +# + +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +# This model initially had no columns defined. If you add columns to the +# model remove the '{}' from the fixture names and add the columns immediately +# below each fixture, per the syntax in the comments below +# +one: {} +# column: value +# +two: {} +# column: value diff --git a/test/helpers/account/orders_helper_test.rb b/test/helpers/account/orders_helper_test.rb new file mode 100644 index 0000000..6073420 --- /dev/null +++ b/test/helpers/account/orders_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class Account::OrdersHelperTest < ActionView::TestCase +end diff --git a/test/helpers/admin/orders_helper_test.rb b/test/helpers/admin/orders_helper_test.rb new file mode 100644 index 0000000..8511d6d --- /dev/null +++ b/test/helpers/admin/orders_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class Admin::OrdersHelperTest < ActionView::TestCase +end diff --git a/test/helpers/admin/photos_helper_test.rb b/test/helpers/admin/photos_helper_test.rb new file mode 100644 index 0000000..753f282 --- /dev/null +++ b/test/helpers/admin/photos_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class Admin::PhotosHelperTest < ActionView::TestCase +end diff --git a/test/helpers/admin/products_helper_test.rb b/test/helpers/admin/products_helper_test.rb new file mode 100644 index 0000000..0b696b1 --- /dev/null +++ b/test/helpers/admin/products_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class Admin::ProductsHelperTest < ActionView::TestCase +end diff --git a/test/helpers/admin_helper_test.rb b/test/helpers/admin_helper_test.rb new file mode 100644 index 0000000..23d9f40 --- /dev/null +++ b/test/helpers/admin_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class AdminHelperTest < ActionView::TestCase +end diff --git a/test/helpers/card_charges_helper_test.rb b/test/helpers/card_charges_helper_test.rb new file mode 100644 index 0000000..1fe502e --- /dev/null +++ b/test/helpers/card_charges_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class CardChargesHelperTest < ActionView::TestCase +end diff --git a/test/helpers/cart_items_helper_test.rb b/test/helpers/cart_items_helper_test.rb new file mode 100644 index 0000000..4cfc7e9 --- /dev/null +++ b/test/helpers/cart_items_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class CartItemsHelperTest < ActionView::TestCase +end diff --git a/test/helpers/carts_helper_test.rb b/test/helpers/carts_helper_test.rb new file mode 100644 index 0000000..0fac3c4 --- /dev/null +++ b/test/helpers/carts_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class CartsHelperTest < ActionView::TestCase +end diff --git a/test/helpers/orders_helper_test.rb b/test/helpers/orders_helper_test.rb new file mode 100644 index 0000000..52dacae --- /dev/null +++ b/test/helpers/orders_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class OrdersHelperTest < ActionView::TestCase +end diff --git a/test/helpers/products_helper_test.rb b/test/helpers/products_helper_test.rb new file mode 100644 index 0000000..0f5beab --- /dev/null +++ b/test/helpers/products_helper_test.rb @@ -0,0 +1,4 @@ +require 'test_helper' + +class ProductsHelperTest < ActionView::TestCase +end diff --git a/test/mailers/order_mailer_test.rb b/test/mailers/order_mailer_test.rb new file mode 100644 index 0000000..6e2129d --- /dev/null +++ b/test/mailers/order_mailer_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class OrderMailerTest < ActionMailer::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/mailers/previews/order_mailer_preview.rb b/test/mailers/previews/order_mailer_preview.rb new file mode 100644 index 0000000..7be457e --- /dev/null +++ b/test/mailers/previews/order_mailer_preview.rb @@ -0,0 +1,4 @@ +# Preview all emails at http://localhost:3000/rails/mailers/order_mailer +class OrderMailerPreview < ActionMailer::Preview + +end diff --git a/test/models/cart_item_test.rb b/test/models/cart_item_test.rb new file mode 100644 index 0000000..e8c0f5c --- /dev/null +++ b/test/models/cart_item_test.rb @@ -0,0 +1,19 @@ +# == Schema Information +# +# Table name: cart_items +# +# id :integer not null, primary key +# cart_id :integer +# product_id :integer +# created_at :datetime +# updated_at :datetime +# quantity :integer default(1) +# + +require 'test_helper' + +class CartItemTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/models/cart_test.rb b/test/models/cart_test.rb new file mode 100644 index 0000000..84b5fbe --- /dev/null +++ b/test/models/cart_test.rb @@ -0,0 +1,16 @@ +# == Schema Information +# +# Table name: carts +# +# id :integer not null, primary key +# created_at :datetime +# updated_at :datetime +# + +require 'test_helper' + +class CartTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/models/order_info_test.rb b/test/models/order_info_test.rb new file mode 100644 index 0000000..fb6da21 --- /dev/null +++ b/test/models/order_info_test.rb @@ -0,0 +1,21 @@ +# == Schema Information +# +# Table name: order_infos +# +# id :integer not null, primary key +# order_id :integer +# billing_name :string(255) +# billing_address :string(255) +# shipping_name :string(255) +# shipping_address :string(255) +# created_at :datetime +# updated_at :datetime +# + +require 'test_helper' + +class OrderInfoTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/models/order_item_test.rb b/test/models/order_item_test.rb new file mode 100644 index 0000000..1e35b36 --- /dev/null +++ b/test/models/order_item_test.rb @@ -0,0 +1,20 @@ +# == Schema Information +# +# Table name: order_items +# +# id :integer not null, primary key +# product_name :string(255) +# price :float +# quantity :integer +# order_id :integer +# created_at :datetime +# updated_at :datetime +# + +require 'test_helper' + +class OrderItemTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/models/order_test.rb b/test/models/order_test.rb new file mode 100644 index 0000000..621d6cb --- /dev/null +++ b/test/models/order_test.rb @@ -0,0 +1,22 @@ +# == Schema Information +# +# Table name: orders +# +# id :integer not null, primary key +# user_id :integer +# total :integer default(0) +# paid :boolean default(FALSE) +# created_at :datetime +# updated_at :datetime +# token :string(255) +# payment_method :string(255) +# aasm_state :string(255) default("order_placed") +# + +require 'test_helper' + +class OrderTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/models/photo_test.rb b/test/models/photo_test.rb new file mode 100644 index 0000000..33a4fd6 --- /dev/null +++ b/test/models/photo_test.rb @@ -0,0 +1,18 @@ +# == Schema Information +# +# Table name: photos +# +# id :integer not null, primary key +# created_at :datetime +# updated_at :datetime +# image :string(255) +# product_id :integer +# + +require 'test_helper' + +class PhotoTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/models/product_test.rb b/test/models/product_test.rb new file mode 100644 index 0000000..1766a80 --- /dev/null +++ b/test/models/product_test.rb @@ -0,0 +1,22 @@ +# == Schema Information +# +# Table name: products +# +# id :integer not null, primary key +# title :string(255) +# description :text +# quantity :integer default(0) +# created_at :datetime +# updated_at :datetime +# price :float default(0.0) +# created_on :date +# updated_on :date +# + +require 'test_helper' + +class ProductTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/test/models/user_test.rb b/test/models/user_test.rb new file mode 100644 index 0000000..b5fa536 --- /dev/null +++ b/test/models/user_test.rb @@ -0,0 +1,27 @@ +# == Schema Information +# +# Table name: users +# +# id :integer not null, primary key +# email :string(255) default(""), not null +# encrypted_password :string(255) default(""), not null +# reset_password_token :string(255) +# reset_password_sent_at :datetime +# remember_created_at :datetime +# sign_in_count :integer default(0), not null +# current_sign_in_at :datetime +# last_sign_in_at :datetime +# current_sign_in_ip :string(255) +# last_sign_in_ip :string(255) +# created_at :datetime +# updated_at :datetime +# is_admin :boolean default(FALSE) +# + +require 'test_helper' + +class UserTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/user_story.todo b/user_story.todo new file mode 100644 index 0000000..919b97f --- /dev/null +++ b/user_story.todo @@ -0,0 +1,40 @@ +身為商家,我希望能夠夠過網路平台,極大化Net income + + 1.身為商家的管理者,要能夠在後台設定權限,權現分成管理者以及消費者 + + 2. 身為一個商家的管理者,我要能夠在後台管理上架商品,並能夠販賣 + 1. 身為管理者,我可以上傳商品的敘述、圖片、規格、價格、庫存 + 2. 身為管理者,我可以隨時修改商品的敘述、圖片、規格、價格、庫存 + 3. 身為管理者,我可以設定商品是否能夠上架販售 + + 3. 身為一個商家,我應該能設定商品分類,並決定商品擺放順序 + 1. 必須要有商品分類 + 2. 身為管理者,我可以新增、修改、刪除,現有分類 + 3. 身為管理者,我可以隨意修改、移動,現有商品在網站上的呈現順序 + + 4. 身為商家,我應該要隨時能將有問題的商品下架,使其禁止被下單 + + 5.身為商家,消費者購物結賬後,庫存應該自動減少 + + 6.身為商家,我應該可以收到消費者下的訂單,並設定為已結賬 + 1. 身為管理者,可以在後台看到訂單,定但狀態分為未結賬、以結賬、出貨中、已出貨、辦理退貨 + 2. 身為管理者,我可以在後台對訂單做狀態改變 + 3. 身為管理者,當我將商品射程以出貨時,消費者應該能收到一張以出貨的確認信 + + 7.身為商家,當消費者取消訂單時,庫存應自動增加,並通知我 + 1. 當消費者取消訂單,商品數量應該自動加一 + 2. 當消費者取消訂單,應該能在後台區域看到,以便我修改訂單狀態 + 3. 當消費者取消訂單,應該寄一封信件通知我 + + 8.身為商家,我想要知道誰在購買我的商品,也就是消費者的profile、以及他們的購買行為 + 1. 使用者若用fb登入,應該要記錄其年齡、性別、地區以及他有哪些朋友也曾經來消費過 + 2. 身為管理者,要能夠要能夠在後台查詢消費者的購買記錄 + + 9. 身為管理者,我想知道我做的網路行銷活動成效如何 + 1. 必須記錄使用者是從哪個連結進入(google analytics) + 2. 進入之使用者實際轉換率 (google analytics) + + 10.身為商家,我一該能記錄每天的平均銷售金額以及每月的變化 + 1. 身為管理者,我應該能在後台看到每月的平均銷售額 + 2. 身為管理者,我希望能看到每月銷售額變化的趨勢圖,以供未來策略規劃參考 +