Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 43 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
source 'https://rubygems.org'


# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.0'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'

# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.3'
# Use Uglifier as compressor for JavaScript assets
Expand Down Expand Up @@ -38,3 +37,45 @@ gem 'spring', group: :development
# Use debugger
# gem 'debugger', group: [:development, :test]

group :development do
gem 'sqlite3'
gem "magic_encoding" # 解決 Rails 中文顯示問題
gem "annotate" # 在 Model 裡顯示對應的資料庫設定
gem "letter_opener" # 預覽發送的 Mail 內容
gem "better_errors", "~> 0.9.0" #錯誤訊息幫手
gem 'meta_request' # 查看 log @ chrome 神器
end

#for heroku
group :production do
gem 'pg' , '0.15.1'
gem 'rails_12factor' , '0.0.2'
end

# 幫助表單輸入用
gem "simple_form", "~> 3.0.0.rc"

gem "seo_helper"

# CSS 套件
gem "susy"
gem 'compass', '>= 0.12.2'
gem 'compass-rails', '>= 1.0.3'
gem "bootstrap_helper", ">= 4.2.2.1"
gem "anjlab-bootstrap-rails", "2.3.1.2", :require => "bootstrap-rails"
gem "bootstrap-sass"

# 身份驗證功能
gem "devise", "~> 3.2.2"
gem "omniauth"
gem "omniauth-facebook"
gem "auto-facebook", "0.42"

# embedly for jQuery Preview
gem "embedly", "~> 1.8.0"

gem "settingslogic", "~> 2.0.9"

# 圖片上傳功能
gem 'carrierwave'
gem 'mini_magick'
132 changes: 132 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,71 @@ GEM
minitest (~> 5.1)
thread_safe (~> 0.1)
tzinfo (~> 1.1)
addressable (2.3.6)
anjlab-bootstrap-rails (2.3.1.2)
railties (>= 3.0)
sass (>= 3.2)
annotate (2.6.5)
activerecord (>= 2.3.0)
rake (>= 0.8.7)
arel (5.0.1.20140414130214)
auto-facebook (0.42)
omniauth
omniauth-facebook
rails (>= 4.0.0)
bcrypt (3.1.7)
better_errors (0.9.0)
coderay (>= 1.0.0)
erubis (>= 2.6.6)
bootstrap-sass (3.0.3.0)
sass (~> 3.2)
bootstrap_helper (4.2.3)
railties (>= 4.0.0)
thor (~> 0.14)
will_paginate (>= 3.0.3)
builder (3.2.2)
callsite (0.0.11)
carrierwave (0.10.0)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
json (>= 1.7)
mime-types (>= 1.16)
chunky_png (1.3.1)
coderay (1.1.0)
coffee-rails (4.0.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.7.0)
compass (0.12.6)
chunky_png (~> 1.2)
fssm (>= 0.2.7)
sass (~> 3.2.19)
compass-rails (1.1.7)
compass (>= 0.12.2)
sprockets (<= 2.11.0)
devise (3.2.4)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 3.2.6, < 5)
thread_safe (~> 0.1)
warden (~> 1.2.3)
embedly (1.8.0)
json
oauth
querystring
typhoeus
erubis (2.7.0)
ethon (0.7.1)
ffi (>= 1.3.0)
execjs (2.2.0)
faraday (0.9.0)
multipart-post (>= 1.2, < 3)
ffi (1.9.3)
fssm (0.2.10)
hashie (2.1.2)
hike (1.2.3)
i18n (0.6.9)
jbuilder (2.0.8)
Expand All @@ -47,14 +101,50 @@ GEM
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
json (1.8.1)
jwt (1.0.0)
launchy (2.4.2)
addressable (~> 2.3)
letter_opener (1.2.0)
launchy (~> 2.2)
magic_encoding (0.0.2)
mail (2.5.4)
mime-types (~> 1.16)
treetop (~> 1.4.8)
meta_request (0.3.0)
callsite
rack-contrib
railties
mime-types (1.25.1)
mini_magick (3.7.0)
subexec (~> 0.2.1)
minitest (5.3.4)
multi_json (1.10.1)
multi_xml (0.5.5)
multipart-post (2.0.0)
oauth (0.4.7)
oauth2 (0.9.4)
faraday (>= 0.8, < 0.10)
jwt (~> 1.0)
multi_json (~> 1.3)
multi_xml (~> 0.5)
rack (~> 1.2)
omniauth (1.2.1)
hashie (>= 1.2, < 3)
rack (~> 1.0)
omniauth-facebook (1.6.0)
omniauth-oauth2 (~> 1.1)
omniauth-oauth2 (1.1.2)
faraday (>= 0.8, < 0.10)
multi_json (~> 1.3)
oauth2 (~> 0.9.3)
omniauth (~> 1.2)
orm_adapter (0.5.0)
pg (0.15.1)
polyglot (0.3.5)
querystring (0.1.0)
rack (1.5.2)
rack-contrib (1.1.0)
rack (>= 0.9.1)
rack-test (0.6.2)
rack (>= 1.0)
rails (4.1.0)
Expand All @@ -67,6 +157,11 @@ GEM
bundler (>= 1.3.0, < 2.0)
railties (= 4.1.0)
sprockets-rails (~> 2.0)
rails_12factor (0.0.2)
rails_serve_static_assets
rails_stdout_logging
rails_serve_static_assets (0.0.2)
rails_stdout_logging (0.0.3)
railties (4.1.0)
actionpack (= 4.1.0)
activesupport (= 4.1.0)
Expand All @@ -84,6 +179,11 @@ GEM
sdoc (0.4.0)
json (~> 1.8)
rdoc (~> 4.0, < 5.0)
seo_helper (1.0.2)
settingslogic (2.0.9)
simple_form (3.0.2)
actionpack (~> 4.0)
activemodel (~> 4.0)
spring (1.1.3)
sprockets (2.11.0)
hike (~> 1.2)
Expand All @@ -95,6 +195,10 @@ GEM
activesupport (>= 3.0)
sprockets (~> 2.8)
sqlite3 (1.3.9)
subexec (0.2.3)
susy (1.0.9)
compass (>= 0.12.2)
sass (>= 3.2.0)
thor (0.19.1)
thread_safe (0.3.4)
tilt (1.4.1)
Expand All @@ -103,23 +207,51 @@ GEM
polyglot (>= 0.3.1)
turbolinks (2.2.2)
coffee-rails
typhoeus (0.6.9)
ethon (>= 0.7.1)
tzinfo (1.2.1)
thread_safe (~> 0.1)
uglifier (2.5.0)
execjs (>= 0.3.0)
json (>= 1.8.0)
warden (1.2.3)
rack (>= 1.0)
will_paginate (3.0.7)

PLATFORMS
ruby

DEPENDENCIES
anjlab-bootstrap-rails (= 2.3.1.2)
annotate
auto-facebook (= 0.42)
better_errors (~> 0.9.0)
bootstrap-sass
bootstrap_helper (>= 4.2.2.1)
carrierwave
coffee-rails (~> 4.0.0)
compass (>= 0.12.2)
compass-rails (>= 1.0.3)
devise (~> 3.2.2)
embedly (~> 1.8.0)
jbuilder (~> 2.0)
jquery-rails
letter_opener
magic_encoding
meta_request
mini_magick
omniauth
omniauth-facebook
pg (= 0.15.1)
rails (= 4.1.0)
rails_12factor (= 0.0.2)
sass-rails (~> 4.0.3)
sdoc (~> 0.4.0)
seo_helper
settingslogic (~> 2.0.9)
simple_form (~> 3.0.0.rc)
spring
sqlite3
susy
turbolinks
uglifier (>= 1.3.0)
3 changes: 3 additions & 0 deletions app/assets/javascripts/admin/products.js.coffee
Original file line number Diff line number Diff line change
@@ -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/
7 changes: 5 additions & 2 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@
//
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require_tree .
//= require twitter/bootstrap/transition
//= require twitter/bootstrap/modal
//= require twitter/bootstrap/collapse
//= require twitter/bootstrap/alert
//= require twitter/bootstrap/dropdown
3 changes: 3 additions & 0 deletions app/assets/javascripts/pages.js.coffee
Original file line number Diff line number Diff line change
@@ -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/
3 changes: 3 additions & 0 deletions app/assets/javascripts/products.js.coffee
Original file line number Diff line number Diff line change
@@ -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/
3 changes: 3 additions & 0 deletions app/assets/stylesheets/admin/products.css.scss
Original file line number Diff line number Diff line change
@@ -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/
2 changes: 1 addition & 1 deletion app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
* 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 common
*/
31 changes: 31 additions & 0 deletions app/assets/stylesheets/bootstrap-override.css.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
body {
padding-top: 60px;
}

ul.nav li.dropdown:hover .dropdown-menu {
display: block;
}

.navbar .dropdown-menu {
margin-top: 0px;
}

select,
textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
.uneditable-input {
height: 40px;
}
3 changes: 3 additions & 0 deletions app/assets/stylesheets/bootstrap-setting.css.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// puts your override variable here
// $baseFontSize: 13px;
// $navbarHeight: 50px;
Loading