Permalink
Browse files

Initial import

Signed-off-by: kosmas58 <kosmas.schuetz@gmx.com>
  • Loading branch information...
1 parent 90d3063 commit 4f2e92e9f958b2b2cbf4e2e9ec93ad99e334d67c @kosmas58 committed Feb 19, 2010
Showing 702 changed files with 16,589 additions and 23,044 deletions.
View
@@ -2,11 +2,11 @@
<loadpath>
<pathentry path="" type="src"/>
<pathentry path="org.rubypeople.rdt.launching.RUBY_CONTAINER" type="con"/>
- <pathentry path="GEM_LIB/activeresource-2.3.2/lib" type="var"/>
+ <pathentry path="GEM_LIB/activeresource-2.3.5/lib" type="var"/>
+ <pathentry path="GEM_LIB/activerecord-2.3.5/lib" type="var"/>
+ <pathentry path="GEM_LIB/actionpack-2.3.5/lib" type="var"/>
<pathentry path="GEM_LIB/rake-0.8.7/lib" type="var"/>
- <pathentry path="GEM_LIB/rails-2.3.2/lib" type="var"/>
- <pathentry path="GEM_LIB/activesupport-2.3.2/lib" type="var"/>
- <pathentry path="GEM_LIB/actionmailer-2.3.2/lib" type="var"/>
- <pathentry path="GEM_LIB/actionpack-2.3.2/lib" type="var"/>
- <pathentry path="GEM_LIB/activerecord-2.3.2/lib" type="var"/>
+ <pathentry path="GEM_LIB/activesupport-2.3.5/lib" type="var"/>
+ <pathentry path="GEM_LIB/rails-2.3.5/lib" type="var"/>
+ <pathentry path="GEM_LIB/actionmailer-2.3.5/lib" type="var"/>
</loadpath>
View
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
- <name>compass-jquery-sample</name>
+ <name>compass-jquery-plugin-sample</name>
<comment></comment>
<projects>
</projects>
@@ -10,8 +10,14 @@
<arguments>
</arguments>
</buildCommand>
+ <buildCommand>
+ <name>com.aptana.ide.core.unifiedBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
</buildSpec>
<natures>
+ <nature>com.aptana.ide.project.nature.web</nature>
<nature>org.rubypeople.rdt.core.rubynature</nature>
<nature>org.radrails.rails.core.railsnature</nature>
</natures>
View
@@ -6,9 +6,9 @@ h2. Description
A Sass-based Meta-Framework for Compass that allows you to mix and match any of the following:
-* jRails with jQuery 1.3.2 and jQuery.UI 1.7.2 including themes
-* jqGrid V3.6.3
+* jRails with jQuery 1.3.2 and jQuery.UI 1.7.2 or jQuery 1.4.2 and jQuery 1.8 including themes
* dynatree V0.5.2
+* jqGrid V3.6.4
* jQTouch V1.0b2
This library requires <b>"Compass":http://wiki.github.com/chriseppstein/compass</b>.
@@ -17,7 +17,9 @@ h3. jRails, jQuery and jQuery.UI including themes
Use compass to install the jRails, jQuery and jQuery.UI javascript library including themes into your project.
-<pre>compass -r jquery -f jquery -p jrails <project name></pre>
+<pre>compass -r jquery -f jquery -p jrails-1.3.2 <project name></pre>
+or
+<pre>compass -r jquery -f jquery -p jrails-1.4.2 <project name></pre>
You will find all the stylesheets in easy-to-read Sass format at:
@@ -32,6 +34,10 @@ To use the localized stylesheets and javacripts for jQuery 1.3 include:
into your layouts.
+h3. I18n
+
+t.b.d.
+
h3. jQuery Dynatree Plugin
Use compass to install the jQuery Dynatree javascript library into your project.
@@ -2,13 +2,17 @@
# Likewise, all the methods added will be available for all controllers.
class ApplicationController < ActionController::Base
+ include Theme
+
helper :all # include all helpers, all the time
protect_from_forgery # See ActionController::RequestForgeryProtection for details
+
# Scrub sensitive parameters from your log
# filter_parameter_logging :password
before_filter :set_locale
+ before_filter :set_theme
def set_locale
# update session if passed
@@ -17,4 +21,12 @@ def set_locale
# set locale based on session or default
I18n.locale = session[:locale] || I18n.default_locale
end
+
+ def set_theme
+ # update session if passed
+ session[:theme] = params[:theme] if params[:theme]
+
+ # set locale based on session or default
+ Theme.current = session[:theme] || Theme.current
+ end
end
@@ -1,19 +0,0 @@
-class EventsController < ApplicationController
- layout 'blueprint'
-
-# make_resourceful do
-# actions :all
-# end
-
- def months
-
- end
-
- def weeks
- @example = (params[:example] || "01")
- @events = Event.to_calendar_json()
-
- @event = '[{"id":1, "start":"2009-09-10T09:15:00.000+10:00", "end":"2009-09-10T11:15:00.000+10:00", "title":"Breakfast with Willy"},
- {"id":2, "start":"2009-09-10T13:15:00.000+10:00", "end":"2009-09-10T14:15:00.000+10:00", "title":"Lunch with Mike"}]'
- end
-end
@@ -1,5 +0,0 @@
-class IphoneController < ApplicationController
- layout 'iphone'
-
-
-end
@@ -1,4 +0,0 @@
-class Jqtouch::DemoController < ApplicationController
- layout 'jqtouch'
-
-end
@@ -0,0 +1,5 @@
+class Jqueryui::Effects::AddClassController < ApplicationController
+ layout 'blueprint'
+
+ protect_from_forgery
+end
@@ -0,0 +1,5 @@
+class Jqueryui::Effects::AnimateController < ApplicationController
+ layout 'blueprint'
+
+ protect_from_forgery
+end
@@ -0,0 +1,5 @@
+class Jqueryui::Effects::EffectController < ApplicationController
+ layout 'blueprint'
+
+ protect_from_forgery
+end
@@ -0,0 +1,5 @@
+class Jqueryui::Effects::HideController < ApplicationController
+ layout 'blueprint'
+
+ protect_from_forgery
+end
@@ -0,0 +1,5 @@
+class Jqueryui::Effects::RemoveClassController < ApplicationController
+ layout 'blueprint'
+
+ protect_from_forgery
+end
@@ -0,0 +1,5 @@
+class Jqueryui::Effects::ShowController < ApplicationController
+ layout 'blueprint'
+
+ protect_from_forgery
+end
@@ -0,0 +1,5 @@
+class Jqueryui::Effects::SwitchClassController < ApplicationController
+ layout 'blueprint'
+
+ protect_from_forgery
+end
@@ -0,0 +1,5 @@
+class Jqueryui::Effects::ToggleClassController < ApplicationController
+ layout 'blueprint'
+
+ protect_from_forgery
+end
@@ -0,0 +1,5 @@
+class Jqueryui::Effects::ToggleController < ApplicationController
+ layout 'blueprint'
+
+ protect_from_forgery
+end
@@ -0,0 +1,5 @@
+class Jqueryui::Interactions::DraggableController < ApplicationController
+ layout 'blueprint'
+
+ protect_from_forgery
+end
@@ -0,0 +1,5 @@
+class Jqueryui::Interactions::DroppableController < ApplicationController
+ layout 'blueprint'
+
+ protect_from_forgery
+end
@@ -0,0 +1,5 @@
+class Jqueryui::Interactions::ResizeableController < ApplicationController
+ layout 'blueprint'
+
+ protect_from_forgery
+end
@@ -0,0 +1,5 @@
+class Jqueryui::Interactions::SelectableController < ApplicationController
+ layout 'blueprint'
+
+ protect_from_forgery
+end
@@ -0,0 +1,5 @@
+class Jqueryui::Interactions::SortableController < ApplicationController
+ layout 'blueprint'
+
+ protect_from_forgery
+end
@@ -0,0 +1,5 @@
+class Jqueryui::Widgets::AccordionController < ApplicationController
+ layout 'blueprint'
+
+ protect_from_forgery
+end
@@ -0,0 +1,5 @@
+class Jqueryui::Widgets::DatepickerController < ApplicationController
+ layout 'blueprint'
+
+ protect_from_forgery
+end
@@ -0,0 +1,2 @@
+class Jqueryui::Widgets::DialogController < ApplicationController
+end
@@ -0,0 +1,5 @@
+class Jqueryui::Widgets::ProgressbarController < ApplicationController
+ layout 'blueprint'
+
+ protect_from_forgery
+end
@@ -0,0 +1,5 @@
+class Jqueryui::Widgets::SliderController < ApplicationController
+ layout 'blueprint'
+
+ protect_from_forgery
+end
@@ -0,0 +1,5 @@
+class Jqueryui::Widgets::TabsController < ApplicationController
+ layout 'blueprint'
+
+ protect_from_forgery
+end
@@ -1,12 +0,0 @@
-class PeopleController < ApplicationController
- layout 'blueprint'
-
- def grid_data
- @people = Person.all(:order => "#{params[:sidx]} #{params[:sord]}")
-
- respond_to do |format|
- format.xml { render :partial => 'grid_data.xml.builder', :layout => false }
- end
- end
-
-end
@@ -2,85 +2,4 @@ class UsersController < ApplicationController
layout 'blueprint'
protect_from_forgery :except => [:post_data]
-
- # Don't forget to edit routes if you're using RESTful routing (see config/routes.rb)
- def pets
-
- # Queries are here for clarity purposes in this demo
- # It's of course a better idea to create a method in your model
-
- if params[:id].present?
- pets = User.find(params[:id]).pets.find(:all) do
- paginate :page => params[:page], :per_page => params[:rows]
- order_by "#{params[:sidx]} #{params[:sord]}"
- end
- total_entries = pets.total_entries
- else
- pets = []
- total_entries = 0
- end
- respond_to do |format|
- # Fields order is important in the to_jqgrid_json method (in this case : [:id,:name])
- # It must be the same as display order in your datagrid
- format.json { render :json => pets.to_jqgrid_json([:id,:name], params[:page], params[:rows], total_entries) }
- end
- end
-
- # Don't forget to edit routes if you're using RESTful routing (see config/routes.rb)
- def post_data
-
- # It's of course your role to add security / validation here
-
- if params[:oper] == "del"
- User.find(params[:id]).destroy
- else
- user_params = { :pseudo => params[:pseudo], :firstname => params[:firstname], :lastname => params[:lastname],
- :email => params[:email], :role => params[:role] }
- if params[:id] == "_empty"
- user = User.create(user_params)
- else
- user = User.find(params[:id])
- user.update_attributes(user_params)
- end
- end
-
- # If you need to display error messages
- err = ""
- if user
- user.errors.entries.each do |error|
- err << "<strong>#{error[0]}</strong> : #{error[1]}<br/>"
- end
- end
-
- render :text => "#{err}"
- end
-
- def index
-
- # Queries are here for clarity purposes in this demo
- # It's of course a better idea to create a method in your model
-
- users = User.find(:all) do
- if params[:_search] == "true"
- pseudo =~ "%#{params[:pseudo]}%" if params[:pseudo].present?
- firstname =~ "%#{params[:firstname]}%" if params[:firstname].present?
- lastname =~ "%#{params[:lastname]}%" if params[:lastname].present?
- email =~ "%#{params[:email]}%" if params[:email].present?
- role =~ "%#{params[:role]}%" if params[:role].present?
- end
- paginate :page => params[:page], :per_page => params[:rows]
- order_by "#{params[:sidx]} #{params[:sord]}"
- end
-
- @example = (params[:example] || "01")
-
- respond_to do |format|
- format.html
- # Fields order is important in the to_jqgrid_json method (in this case : [:id,:name])
- # It must be the same as display order in your datagrid
- format.json { render :json => users.to_jqgrid_json([:id,:pseudo,:firstname,:lastname,:email,:role],
- params[:page], params[:rows], users.total_entries) }
- end
- end
-
end
Oops, something went wrong.

0 comments on commit 4f2e92e

Please sign in to comment.