Skip to content

Commit

Permalink
Remove current frontend and add plugin hooks for new modular frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
gbprz committed May 6, 2015
1 parent 10bec05 commit 64b9bb4
Show file tree
Hide file tree
Showing 28 changed files with 2 additions and 3,506 deletions.
20 changes: 2 additions & 18 deletions app/views/frontend/screens/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,6 @@
<% @js_files.each do |js_file| %>
<script src="<%= frontend_js_path js_file %>" type="text/javascript"></script>
<% end %>
<script type="text/javascript">
var thescreen;
function init() {
<% if @debug %>
var debugWindow = new goog.debug.FancyWindow('main');
debugWindow.setEnabled(true);
debugWindow.init();
<% end %>
var div = document.getElementsByClassName('screen')[0];
var screenOptions = {
setupPath: '<%=j setup_frontend_screen_path(@screen, format: :json) %>',
<% if @preview %> isPreview: true, <% end %>
};
thescreen = new concerto.frontend.Screen(<%= @screen.id %>, div, screenOptions);
}
window.addEventListener('load', init, false);
</script>
<% end %>
<%= tag('div', class: 'screen', data: {screen: @screen.id }) -%>
<%= ConcertoPlugin.render_view_hook self, :concerto_frontend %>
<%= ConcertoPlugin.render_view_hook self, :concerto_frontend_plugins %>
1 change: 0 additions & 1 deletion public/frontend_js/closure-library

This file was deleted.

267 changes: 0 additions & 267 deletions public/frontend_js/content.js

This file was deleted.

82 changes: 0 additions & 82 deletions public/frontend_js/content_test.html

This file was deleted.

8 changes: 0 additions & 8 deletions public/frontend_js/content_type_registry.js

This file was deleted.

Loading

0 comments on commit 64b9bb4

Please sign in to comment.