Skip to content

Commit 9cdb741

Browse files
committed
first commit
0 parents  commit 9cdb741

File tree

311 files changed

+34491
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

311 files changed

+34491
-0
lines changed

.gitignore

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
2+
#
3+
# If you find yourself ignoring temporary files generated by your text editor
4+
# or operating system, you probably want to add a global ignore instead:
5+
# git config --global core.excludesfile '~/.gitignore_global'
6+
7+
# Ignore bundler config.
8+
/.bundle
9+
10+
# Ignore the default SQLite database.
11+
/db/*.sqlite3
12+
/db/*.sqlite3-journal
13+
14+
# Ignore all logfiles and tempfiles.
15+
/log/*.log
16+
/tmp

.rspec

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--color

Gemfile

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
source 'http://ruby.taobao.org'
2+
3+
gem 'rails', '4.0.1'
4+
5+
#加密
6+
gem 'bcrypt-ruby', '3.1.2'
7+
8+
#分页
9+
#gem 'will_paginate', '3.0.4'
10+
#gem 'bootstrap-will_paginate', '0.0.9'
11+
12+
#form
13+
gem 'simple_form' ,'3.0.1'
14+
gem 'country_select', '1.3.1'
15+
16+
#导出xls
17+
gem 'spreadsheet', '0.9.7'
18+
gem 'ruby-ole', '1.2.11.7'
19+
20+
#表格
21+
gem "wice_grid", '3.4.0'
22+
23+
#样式
24+
gem 'jquery-ui-rails'
25+
gem 'jquery-modal-rails'
26+
#gem 'bootstrap-sass','2.3.2.0'
27+
gem 'bootstrap_helper', github: 'sunday35034/bootstrap-helper'
28+
#gem 'font-awesome-sass'
29+
30+
group :development, :test do
31+
gem 'sqlite3', '1.3.7'
32+
gem 'rspec-rails', '2.13.1'
33+
end
34+
35+
group :test do
36+
gem 'selenium-webdriver', '2.0.0'
37+
gem 'capybara', '2.1.0'
38+
gem 'factory_girl_rails', '4.2.1'
39+
gem 'cucumber-rails', '1.3.0', :require => false
40+
gem 'database_cleaner', github: 'bmabey/database_cleaner'
41+
end
42+
gem 'sass-rails', '4.0.1'
43+
gem 'uglifier', '2.1.1'
44+
gem 'coffee-rails', '4.0.0'
45+
gem 'jquery-rails', '2.2.1'
46+
gem 'turbolinks', '1.1.1'
47+
gem 'jbuilder', '1.0.2'
48+
49+
group :doc do
50+
gem 'sdoc', '0.3.20', require: false
51+
end
52+
53+
group :production do
54+
gem 'pg', '0.15.1'
55+
gem 'rails_12factor', '0.0.2'
56+
end
57+
58+
gem 'rubyzip', "~> 0.9.9"

Gemfile.lock

+234
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,234 @@
1+
GIT
2+
remote: git://github.com/bmabey/database_cleaner.git
3+
revision: b254ce57bdeea927e514a486aedc2ac97199324b
4+
specs:
5+
database_cleaner (1.2.0)
6+
7+
GIT
8+
remote: git://github.com/sunday35034/bootstrap-helper.git
9+
revision: 8101f82b9da06cac23f786b7180445e6ca487d8b
10+
specs:
11+
bootstrap_helper (4.2.3)
12+
railties (>= 4.0.0)
13+
thor (~> 0.14)
14+
will_paginate (>= 3.0.3)
15+
16+
GEM
17+
remote: http://ruby.taobao.org/
18+
specs:
19+
actionmailer (4.0.1)
20+
actionpack (= 4.0.1)
21+
mail (~> 2.5.4)
22+
actionpack (4.0.1)
23+
activesupport (= 4.0.1)
24+
builder (~> 3.1.0)
25+
erubis (~> 2.7.0)
26+
rack (~> 1.5.2)
27+
rack-test (~> 0.6.2)
28+
activemodel (4.0.1)
29+
activesupport (= 4.0.1)
30+
builder (~> 3.1.0)
31+
activerecord (4.0.1)
32+
activemodel (= 4.0.1)
33+
activerecord-deprecated_finders (~> 1.0.2)
34+
activesupport (= 4.0.1)
35+
arel (~> 4.0.0)
36+
activerecord-deprecated_finders (1.0.3)
37+
activesupport (4.0.1)
38+
i18n (~> 0.6, >= 0.6.4)
39+
minitest (~> 4.2)
40+
multi_json (~> 1.3)
41+
thread_safe (~> 0.1)
42+
tzinfo (~> 0.3.37)
43+
arel (4.0.2)
44+
atomic (1.1.14)
45+
bcrypt-ruby (3.1.2)
46+
builder (3.1.4)
47+
capybara (2.1.0)
48+
mime-types (>= 1.16)
49+
nokogiri (>= 1.3.3)
50+
rack (>= 1.0.0)
51+
rack-test (>= 0.5.4)
52+
xpath (~> 2.0)
53+
childprocess (0.4.0)
54+
ffi (~> 1.0, >= 1.0.11)
55+
coffee-rails (4.0.0)
56+
coffee-script (>= 2.2.0)
57+
railties (>= 4.0.0.beta, < 5.0)
58+
coffee-script (2.2.0)
59+
coffee-script-source
60+
execjs
61+
coffee-script-source (1.7.0)
62+
countries (0.9.3)
63+
currencies (~> 0.4.2)
64+
country_select (1.3.1)
65+
countries (= 0.9.3)
66+
cucumber (1.3.10)
67+
builder (>= 2.1.2)
68+
diff-lcs (>= 1.1.3)
69+
gherkin (~> 2.12)
70+
multi_json (>= 1.7.5, < 2.0)
71+
multi_test (>= 0.0.2)
72+
cucumber-rails (1.3.0)
73+
capybara (>= 1.1.2)
74+
cucumber (>= 1.1.8)
75+
nokogiri (>= 1.5.0)
76+
currencies (0.4.2)
77+
diff-lcs (1.2.5)
78+
erubis (2.7.0)
79+
execjs (2.0.2)
80+
factory_girl (4.2.0)
81+
activesupport (>= 3.0.0)
82+
factory_girl_rails (4.2.1)
83+
factory_girl (~> 4.2.0)
84+
railties (>= 3.0.0)
85+
ffi (1.9.3)
86+
gherkin (2.12.2)
87+
multi_json (~> 1.3)
88+
hike (1.2.3)
89+
i18n (0.6.9)
90+
jbuilder (1.0.2)
91+
activesupport (>= 3.0.0)
92+
jquery-modal-rails (0.0.4)
93+
jquery-ui-rails
94+
railties (>= 3.2.0, < 5.0)
95+
thor (~> 0.14)
96+
uuidtools
97+
jquery-rails (2.2.1)
98+
railties (>= 3.0, < 5.0)
99+
thor (>= 0.14, < 2.0)
100+
jquery-ui-rails (4.1.1)
101+
railties (>= 3.1.0)
102+
json (1.8.1)
103+
json_pure (1.8.1)
104+
kaminari (0.15.1)
105+
actionpack (>= 3.0.0)
106+
activesupport (>= 3.0.0)
107+
mail (2.5.4)
108+
mime-types (~> 1.16)
109+
treetop (~> 1.4.8)
110+
mime-types (1.25.1)
111+
mini_portile (0.5.2)
112+
minitest (4.7.5)
113+
multi_json (1.8.4)
114+
multi_test (0.0.3)
115+
nokogiri (1.6.1)
116+
mini_portile (~> 0.5.0)
117+
pg (0.15.1)
118+
polyglot (0.3.3)
119+
rack (1.5.2)
120+
rack-test (0.6.2)
121+
rack (>= 1.0)
122+
rails (4.0.1)
123+
actionmailer (= 4.0.1)
124+
actionpack (= 4.0.1)
125+
activerecord (= 4.0.1)
126+
activesupport (= 4.0.1)
127+
bundler (>= 1.3.0, < 2.0)
128+
railties (= 4.0.1)
129+
sprockets-rails (~> 2.0.0)
130+
rails_12factor (0.0.2)
131+
rails_serve_static_assets
132+
rails_stdout_logging
133+
rails_serve_static_assets (0.0.2)
134+
rails_stdout_logging (0.0.3)
135+
railties (4.0.1)
136+
actionpack (= 4.0.1)
137+
activesupport (= 4.0.1)
138+
rake (>= 0.8.7)
139+
thor (>= 0.18.1, < 2.0)
140+
rake (10.1.1)
141+
rdoc (3.12.2)
142+
json (~> 1.4)
143+
rspec-core (2.13.1)
144+
rspec-expectations (2.13.0)
145+
diff-lcs (>= 1.1.3, < 2.0)
146+
rspec-mocks (2.13.1)
147+
rspec-rails (2.13.1)
148+
actionpack (>= 3.0)
149+
activesupport (>= 3.0)
150+
railties (>= 3.0)
151+
rspec-core (~> 2.13.0)
152+
rspec-expectations (~> 2.13.0)
153+
rspec-mocks (~> 2.13.0)
154+
ruby-ole (1.2.11.7)
155+
rubyzip (0.9.9)
156+
sass (3.2.14)
157+
sass-rails (4.0.1)
158+
railties (>= 4.0.0, < 5.0)
159+
sass (>= 3.1.10)
160+
sprockets-rails (~> 2.0.0)
161+
sdoc (0.3.20)
162+
json (>= 1.1.3)
163+
rdoc (~> 3.10)
164+
selenium-webdriver (2.0.0)
165+
childprocess (>= 0.1.9)
166+
ffi (>= 1.0.7)
167+
json_pure
168+
rubyzip
169+
simple_form (3.0.1)
170+
actionpack (>= 4.0.0, < 4.1)
171+
activemodel (>= 4.0.0, < 4.1)
172+
spreadsheet (0.9.7)
173+
ruby-ole (>= 1.0)
174+
sprockets (2.10.1)
175+
hike (~> 1.2)
176+
multi_json (~> 1.0)
177+
rack (~> 1.0)
178+
tilt (~> 1.1, != 1.3.0)
179+
sprockets-rails (2.0.1)
180+
actionpack (>= 3.0)
181+
activesupport (>= 3.0)
182+
sprockets (~> 2.8)
183+
sqlite3 (1.3.7)
184+
thor (0.18.1)
185+
thread_safe (0.1.3)
186+
atomic
187+
tilt (1.4.1)
188+
treetop (1.4.15)
189+
polyglot
190+
polyglot (>= 0.3.1)
191+
turbolinks (1.1.1)
192+
coffee-rails
193+
tzinfo (0.3.38)
194+
uglifier (2.1.1)
195+
execjs (>= 0.3.0)
196+
multi_json (~> 1.0, >= 1.0.2)
197+
uuidtools (2.1.4)
198+
wice_grid (3.4.0)
199+
kaminari (>= 0.13.0)
200+
will_paginate (3.0.4)
201+
xpath (2.0.0)
202+
nokogiri (~> 1.3)
203+
204+
PLATFORMS
205+
ruby
206+
207+
DEPENDENCIES
208+
bcrypt-ruby (= 3.1.2)
209+
bootstrap_helper!
210+
capybara (= 2.1.0)
211+
coffee-rails (= 4.0.0)
212+
country_select (= 1.3.1)
213+
cucumber-rails (= 1.3.0)
214+
database_cleaner!
215+
factory_girl_rails (= 4.2.1)
216+
jbuilder (= 1.0.2)
217+
jquery-modal-rails
218+
jquery-rails (= 2.2.1)
219+
jquery-ui-rails
220+
pg (= 0.15.1)
221+
rails (= 4.0.1)
222+
rails_12factor (= 0.0.2)
223+
rspec-rails (= 2.13.1)
224+
ruby-ole (= 1.2.11.7)
225+
rubyzip (~> 0.9.9)
226+
sass-rails (= 4.0.1)
227+
sdoc (= 0.3.20)
228+
selenium-webdriver (= 2.0.0)
229+
simple_form (= 3.0.1)
230+
spreadsheet (= 0.9.7)
231+
sqlite3 (= 1.3.7)
232+
turbolinks (= 1.1.1)
233+
uglifier (= 2.1.1)
234+
wice_grid (= 3.4.0)

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
RA-TAB
2+
=====
3+
*****
4+
管理系统通用功能框架,暂定计划实现以下几个功能:
5+
### 用户管理
6+
TODO:
7+
1. 修改用户资料与修改密码分开
8+
2. 用户管理界面列表日期类型使用jquery datepicker
9+
3. ~~解决菜单点击无效的问题(js问题)~~(已解决)
10+
### 通知系统
11+
### 通讯录管理

Rakefile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Add your own tasks in files placed in lib/tasks ending in .rake,
2+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3+
4+
require File.expand_path('../config/application', __FILE__)
5+
6+
Ratab::Application.load_tasks

app/assets/images/.keep

Whitespace-only changes.

app/assets/javascripts/application.js

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// This is a manifest file that'll be compiled into application.js, which will include all the files
2+
// listed below.
3+
//
4+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6+
//
7+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8+
// compiled file.
9+
//
10+
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11+
// about supported directives.
12+
//
13+
//= require jquery
14+
//= require jquery_ujs
15+
//= require ace-elements.min.js
16+
//= require bootstrap.js
17+
//= require ace.js
18+
//= require turbolinks
19+
//= require jquery-ui-1.10.3.custom.min.js
20+
//= require jquery.slimscroll.min.js
21+
//= require jquery.sparkline.min.js
22+
//= require jquery.autosize-min.js
23+
//= require jquery.knob.min.js
24+
//= require jquery.dataTables.min.js
25+
//= require jquery.dataTables.bootstrap.js
26+
//= require bootstrap-wysiwyg.min.js
27+
//= require bootbox.min.js
28+
//= require date-time/bootstrap-datepicker.min.js
29+
//= require fuelux/fuelux.spinner.min.js
30+
//= require fuelux/fuelux.wizard.min.js
31+
//= require jquery.maskedinput.min.js
32+
//= require additional-methods.min.js
33+
//= require flot/jquery.flot.min.js
34+
//= require flot/jquery.flot.pie.min.js
35+
//= require flot/jquery.flot.resize.min.js
36+
//= require jquery.mobile.custom.min.js
37+
//= require wice_grid
38+
//= require_tree .
39+
40+
window.setTimeout(function() { $("#error_explanation").fadeOut('slow'); }, 3000);
41+
window.setTimeout(function() { $(".alert").fadeOut('slow'); }, 3000);

app/assets/javascripts/home.js.coffee

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Place all the behaviors and hooks related to the matching controller here.
2+
# All this logic will automatically be available in application.js.
3+
# You can use CoffeeScript in this file: http://coffeescript.org/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Place all the behaviors and hooks related to the matching controller here.
2+
# All this logic will automatically be available in application.js.
3+
# You can use CoffeeScript in this file: http://coffeescript.org/
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Place all the behaviors and hooks related to the matching controller here.
2+
# All this logic will automatically be available in application.js.
3+
# You can use CoffeeScript in this file: http://coffeescript.org/

0 commit comments

Comments
 (0)