AJAX requests done. Notifications. Charts. ...

This commit is contained in:
Tobias Klika
2011-06-08 03:16:17 +02:00
67 changed files with 545 additions and 231 deletions
+6 -4
View File
@@ -38,13 +38,15 @@ module Nineminutes
jquery
plugins/rails
config
plugins/path
ajax/requests
ajax/routes
plugins/bing
animations/coloranimations
plugins/coloranimations
plugins/nivoslider
plugins/imageresize
animations/animations
plugins/path
ajax/routes
animations/animations
animations/fullscreen
layout
ajax/loadmore
)
+2 -1
View File
@@ -2,4 +2,5 @@ secret_token: ""
lastfm_api_key: ""
facebook:
app_id: ""
secret: ""
secret: ""
request_timeout: ""
+1 -1
View File
@@ -193,7 +193,7 @@ Devise.setup do |config|
config.omniauth :facebook, 'APP_ID', 'APP_SECRET'
end
config.omniauth :open_id, OpenID::Store::Filesystem.new('/tmp')
# config.omniauth :open_id, OpenID::Store::Filesystem.new('/tmp'), :name => 'google', :identifier => 'https://www.google.com/accounts/o8/id'
# config.omniauth :google_apps, OpenID::Store::Filesystem.new('/tmp'), :name => 'google', :identifier => 'https://www.google.com/accounts/o8/id'
# config.omniauth :twitter, 'CONSUMER_KEY', 'CONSUMER_SECRET'
# ==> Warden configuration
+1
View File
@@ -0,0 +1 @@
#require "sevendigital"
+12 -56
View File
@@ -1,5 +1,9 @@
Nineminutes::Application.routes.draw do
get "sidebar/index"
get "charts/index"
devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks" }
devise_scope :user do
get '/users/auth/:provider' => 'users/omniauth_callbacks#passthru'
@@ -8,70 +12,22 @@ Nineminutes::Application.routes.draw do
get "tracks/index"
get "artists/get_artists", :as => "get_artists"
match "/artists/:artist", :to => "artists#show"
match "/artists_more_tracks", :to => "artists#more_tracks"
match "/artists_more_albums", :to => "artists#more_albums"
match "/artists_more_similar", :to => "artists#more_similar"
match "/more_tracks", :to => "artists#more_tracks"
match "/more_albums", :to => "artists#more_albums"
match "/more_charts", :to => "charts#more"
get "artists/", :to => "artists#index"
#resources :artists, :constraints => { :id => /.*/ }
resources :search
resources :home
resources :users
resources :sidebar
get "home/", :to => "home#show"
get "charts/", :to => "charts#index"
# The priority is based upon order of creation:
# first created -> highest priority.
# Sample of regular route:
# match 'products/:id' => 'catalog#view'
# Keep in mind you can assign values other than :controller and :action
# Sample of named route:
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
# This route can be invoked with purchase_url(:id => product.id)
# Sample resource route (maps HTTP verbs to controller actions automatically):
# resources :products
# Sample resource route with options:
# resources :products do
# member do
# get 'short'
# post 'toggle'
# end
#
# collection do
# get 'sold'
# end
# end
# Sample resource route with sub-resources:
# resources :products do
# resources :comments, :sales
# resource :seller
# end
# Sample resource route with more complex sub-resources
# resources :products do
# resources :comments
# resources :sales do
# get 'recent', :on => :collection
# end
# end
# Sample resource route within a namespace:
# namespace :admin do
# # Directs /admin/products/* to Admin::ProductsController
# # (app/controllers/admin/products_controller.rb)
# resources :products
# end
# You can have the root of your site routed with "root"
# just remember to delete public/index.html.
root :to => "home#index"
# See how all your routes lay out with "rake routes"
# This is a legacy wild controller route that's not recommended for RESTful applications.
# Note: This route will make all actions in every controller accessible via GET requests.
# match ':controller(/:action(/:id(.:format)))'
end
+39
View File
@@ -0,0 +1,39 @@
#Your API access key and secret
oauth_consumer_key: "7d7gfjmr2r"
oauth_consumer_secret: "qhb5jq2pwycc7yhz"
#Your website/application name & version
#this information will be appended to user-agent HTTP headers for all API requests
app_name: 9minutes
app_version: 0.0.1
#automatically populate properties
lazy_load: true
#raise SevendigitalError if lazy loading a property fails?
#true - the error is ignored and the property remains unpopulated
#false - the original error is raised
ignorant_lazy_load: false
#what information to log
#false or nil - (default) don't log anything
#true or verbose - log basic info
#very_verbose - include full request & api responses in the log
#verbose: true
## default settings for common API parameters ##
#if any of the bellow parameters is specified here it will be appended to all API requests
#they can always be overridden for each individual API query
#e.g.:
# @client = Sevendigital::Client.new(:country => 'GB', :page_size => 20)
# @client.release.search("radiohead", :country => 'ES', :page_size => 5) -> will return 5 results from spanish catalogue
#end user's location
#country: GB
##size of images returned by API responses (for valid size please see the 7digital API documentation)
#image_size: 50
#number of items returned in API responses
#page_size: 20