forked from patricklindsay/wice_grid
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first version for Rails 3.0 with basic functionality working
- Loading branch information
Showing
38 changed files
with
180 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.5.6 | ||
3.0.0.pre1 |
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
generators/wice_grid_assets_jquery/wice_grid_assets_jquery_generator.rb
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
generators/wice_grid_assets_prototype/wice_grid_assets_prototype_generator.rb
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
32 changes: 32 additions & 0 deletions
32
lib/generators/wice_grid/wice_grid_assets_jquery_generator.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
module WiceGrid | ||
module Generators | ||
class WiceGridAssetsJqueryGenerator < Rails::Generators::Base | ||
|
||
desc "Copy WiceGrid assets for JQuery based apps" | ||
source_root File.expand_path('../templates', __FILE__) | ||
|
||
def active_js_framework | ||
'jquery' | ||
end | ||
def inactive_js_framework | ||
'prototype' | ||
end | ||
|
||
|
||
def copy_stuff | ||
template 'wice_grid_config.rb', 'config/initializers/wice_grid_config.rb' | ||
|
||
copy_file 'wice_grid.yml', 'config/locales/wice_grid.yml' | ||
|
||
copy_file 'wice_grid_jquery.js', 'public/javascripts/wice_grid.js' | ||
copy_file 'wice_grid.css', 'public/stylesheets/wice_grid.css' | ||
|
||
%w(arrow_down.gif calendar_view_month.png expand.png page_white_find.png table_refresh.png | ||
arrow_up.gif delete.png page_white_excel.png table.png tick_all.png untick_all.png ).each do |f| | ||
copy_file "icons/#{f}", "public/images/icons/grid/#{f}" | ||
end | ||
end | ||
|
||
end | ||
end | ||
end |
34 changes: 34 additions & 0 deletions
34
lib/generators/wice_grid/wice_grid_assets_prototype_generator.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
module WiceGrid | ||
module Generators | ||
class WiceGridAssetsPrototypeGenerator < Rails::Generators::Base | ||
|
||
desc "Copy WiceGrid assets for Prototype based apps" | ||
source_root File.expand_path('../templates', __FILE__) | ||
|
||
|
||
def active_js_framework | ||
'prototype' | ||
end | ||
def inactive_js_framework | ||
'jquery' | ||
end | ||
|
||
def copy_stuff | ||
template 'wice_grid_config.rb', 'config/initializers/wice_grid_config.rb' | ||
|
||
copy_file 'wice_grid.yml', 'config/locales/wice_grid.yml' | ||
|
||
copy_file 'wice_grid_prototype.js', 'public/javascripts/wice_grid.js' | ||
copy_file 'calendarview.js', 'public/javascripts/calendarview.js' | ||
copy_file 'wice_grid.css', 'public/stylesheets/wice_grid.css' | ||
copy_file 'calendarview.css', 'public/stylesheets/calendarview.css' | ||
|
||
%w(arrow_down.gif calendar_view_month.png expand.png page_white_find.png table_refresh.png | ||
arrow_up.gif delete.png page_white_excel.png table.png tick_all.png untick_all.png ).each do |f| | ||
copy_file "icons/#{f}", "public/images/icons/grid/#{f}" | ||
end | ||
end | ||
|
||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.