2014-02-22 07:46:41 +00:00
|
|
|
###############################################################
|
|
|
|
|
### A spike is something that you build to prove something. ###
|
|
|
|
|
### It's not meant to be used in the actual product. ###
|
|
|
|
|
###############################################################
|
|
|
|
|
|
2013-02-05 03:24:13 +00:00
|
|
|
class SpikesController < ApplicationController
|
|
|
|
|
|
2014-05-19 21:57:08 +00:00
|
|
|
include ClientHelper
|
|
|
|
|
|
2013-02-05 03:24:13 +00:00
|
|
|
def facebook_invite
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
2014-01-25 20:03:14 +00:00
|
|
|
def listen_in
|
|
|
|
|
|
2014-02-27 18:38:02 +00:00
|
|
|
if !current_user.admin
|
2015-04-20 14:50:33 +00:00
|
|
|
raise JamPermissionError "must be administrator"
|
2014-02-27 18:38:02 +00:00
|
|
|
end
|
|
|
|
|
|
2014-01-25 20:03:14 +00:00
|
|
|
#as_musician = false is the critical search criteria for sessions to list correctly
|
2014-05-06 13:34:38 +00:00
|
|
|
@music_sessions = ActiveMusicSession.index(current_user, as_musician: false)
|
2014-01-25 20:03:14 +00:00
|
|
|
|
|
|
|
|
render :layout => 'web'
|
|
|
|
|
end
|
2014-02-06 05:45:48 +00:00
|
|
|
|
2014-03-28 04:00:57 +00:00
|
|
|
def launch_app
|
|
|
|
|
render :layout => 'web'
|
|
|
|
|
end
|
2014-05-19 21:57:08 +00:00
|
|
|
|
|
|
|
|
def websocket
|
|
|
|
|
render :layout => false
|
|
|
|
|
end
|
2014-12-18 21:13:55 +00:00
|
|
|
|
2020-04-16 16:26:18 +00:00
|
|
|
def responsive
|
|
|
|
|
render :layout => false
|
|
|
|
|
end
|
|
|
|
|
|
2014-12-18 21:13:55 +00:00
|
|
|
def subscription
|
|
|
|
|
|
2015-01-11 21:42:12 +00:00
|
|
|
#Notification.send_reload(MessageFactory::ALL_NATIVE_CLIENTS)
|
|
|
|
|
|
2014-12-18 21:13:55 +00:00
|
|
|
Notification.send_subscription_message('test', '1', '{"msg": "oh hai 1"}')
|
|
|
|
|
Notification.send_subscription_message('test', '2', '{"msg": "oh hai 2"}')
|
|
|
|
|
render text: 'oh hai'
|
|
|
|
|
end
|
2015-01-21 21:22:31 +00:00
|
|
|
|
|
|
|
|
def download_jam_track
|
|
|
|
|
|
|
|
|
|
jamTrack = JamTrack.find(params[:jam_track_id])
|
|
|
|
|
jamTrackRight = jamTrack.right_for_user(current_user)
|
|
|
|
|
|
|
|
|
|
gon.jamTrackId = jamTrack.id
|
|
|
|
|
gon.jamTrackRightId = jamTrackRight.id
|
2015-01-29 20:17:55 +00:00
|
|
|
gon.size = params[:size] ? params[:size] : 'large'
|
2015-01-21 21:22:31 +00:00
|
|
|
gon.switchState = params[:state]
|
|
|
|
|
|
|
|
|
|
render :layout => 'web'
|
|
|
|
|
end
|
2015-02-19 20:31:00 +00:00
|
|
|
|
2015-03-31 18:36:49 +00:00
|
|
|
def jam_track_preview
|
|
|
|
|
gon.jamTrackPlanCode = params[:plan_code]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
render :layout => 'web'
|
|
|
|
|
end
|
|
|
|
|
|
2015-01-31 04:50:05 +00:00
|
|
|
def site_validate
|
|
|
|
|
render :layout => 'web'
|
|
|
|
|
end
|
|
|
|
|
|
2015-02-15 23:10:29 +00:00
|
|
|
def recording_source
|
|
|
|
|
render :layout => 'web'
|
|
|
|
|
end
|
2015-03-02 09:41:53 +00:00
|
|
|
|
|
|
|
|
def musician_search_filter
|
2015-05-18 04:00:12 +00:00
|
|
|
# gon.musician_search_meta = MusicianSearch.search_filter_meta
|
|
|
|
|
render :layout => 'web'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def band_search_filter
|
|
|
|
|
gon.band_search_meta = BandSearch.search_filter_meta
|
2015-03-02 09:41:53 +00:00
|
|
|
render :layout => 'web'
|
|
|
|
|
end
|
|
|
|
|
|
2013-09-07 07:59:55 +00:00
|
|
|
end
|