Adding React.js, Redux, revamping dashboard
This commit is contained in:
parent
68c93f8b85
commit
49520d6e62
34 changed files with 297 additions and 75 deletions
|
@ -12,6 +12,8 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
end
|
||||
|
||||
helper_method :current_account
|
||||
|
||||
protected
|
||||
|
||||
def current_account
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
class HomeController < ApplicationController
|
||||
layout 'dashboard'
|
||||
|
||||
before_action :authenticate_user!
|
||||
|
||||
def index
|
||||
@timeline = Feed.new(:home, current_user.account).get(10, params[:max_id])
|
||||
@body_classes = 'app-body'
|
||||
@home = Feed.new(:home, current_user.account).get(20)
|
||||
@mentions = Feed.new(:mentions, current_user.account).get(20)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
class SettingsController < ApplicationController
|
||||
layout 'dashboard'
|
||||
|
||||
before_action :authenticate_user!
|
||||
before_action :set_account
|
||||
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
class StatusesController < ApplicationController
|
||||
layout 'dashboard'
|
||||
|
||||
before_action :authenticate_user!
|
||||
|
||||
def create
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue