From 0d0d98cfe42511d55991bc378ed9700d9f62d1c4 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Fri, 14 Feb 2014 18:36:19 +0100 Subject: [PATCH] Revert "Integrate require.js" This reverts commit 71ae45e4594ae09398c389f0f48edffbf35e352f. --- sonar-server/karma.conf.js | 6 +- .../WEB-INF/app/views/groups/index.html.erb | 4 - .../WEB-INF/app/views/issues/search.html.erb | 10 +- .../templates/_issue_detail_inner.hbs.erb | 4 + .../WEB-INF/app/views/layouts/_head.html.erb | 25 +- .../app/views/measures/search.html.erb | 15 +- .../views/permission_templates/index.html.erb | 4 - .../WEB-INF/app/views/roles/global.html.erb | 4 - .../WEB-INF/app/views/roles/projects.html.erb | 4 - .../WEB-INF/app/views/users/index.html.erb | 4 - .../main/webapp/javascripts/issues-extra.js | 1194 ---------------- .../src/main/webapp/javascripts/issues.js | 375 ----- .../src/main/webapp/javascripts/measures.js | 210 --- .../navigator/filters/ajax-select-filters.js | 41 +- .../navigator/filters/base-filters.js | 118 +- .../navigator/filters/checkbox-filters.js | 20 +- .../navigator/filters/context-filters.js | 20 +- .../navigator/filters/favorite-filters.js | 18 +- .../navigator/filters/filter-bar.js | 102 -- .../navigator/filters/metric-filters.js | 24 +- .../filters/more-criteria-filters.js | 19 +- .../navigator/filters/range-filters.js | 18 +- .../navigator/filters/select-filters.js | 22 +- .../navigator/filters/string-filters.js | 26 +- .../{ => navigator}/handlebars-extensions.js | 4 +- .../javascripts/navigator/issues-app-old.js | 130 ++ .../javascripts/navigator/issues-app.js | 338 +++++ .../webapp/javascripts/navigator/issues.js | 1206 +++++++++++++++++ .../javascripts/navigator/measures-app.js | 170 +++ .../main/webapp/javascripts/select-list.js | 646 +++++---- .../{backbone.js => backbone-min.js} | 0 ...rionette.js => backbone.marionette.min.js} | 0 .../webapp/javascripts/third-party/require.js | 36 - .../{underscore.js => underscore-min.js} | 0 sonar-server/wro.xml | 24 +- 35 files changed, 2484 insertions(+), 2357 deletions(-) delete mode 100644 sonar-server/src/main/webapp/javascripts/issues-extra.js delete mode 100644 sonar-server/src/main/webapp/javascripts/issues.js delete mode 100644 sonar-server/src/main/webapp/javascripts/measures.js delete mode 100644 sonar-server/src/main/webapp/javascripts/navigator/filters/filter-bar.js rename sonar-server/src/main/webapp/javascripts/{ => navigator}/handlebars-extensions.js (98%) create mode 100644 sonar-server/src/main/webapp/javascripts/navigator/issues-app-old.js create mode 100644 sonar-server/src/main/webapp/javascripts/navigator/issues-app.js create mode 100644 sonar-server/src/main/webapp/javascripts/navigator/issues.js create mode 100644 sonar-server/src/main/webapp/javascripts/navigator/measures-app.js rename sonar-server/src/main/webapp/javascripts/third-party/{backbone.js => backbone-min.js} (100%) rename sonar-server/src/main/webapp/javascripts/third-party/{backbone.marionette.js => backbone.marionette.min.js} (100%) delete mode 100644 sonar-server/src/main/webapp/javascripts/third-party/require.js rename sonar-server/src/main/webapp/javascripts/third-party/{underscore.js => underscore-min.js} (100%) diff --git a/sonar-server/karma.conf.js b/sonar-server/karma.conf.js index 9619bdfee07..269a010f7ca 100644 --- a/sonar-server/karma.conf.js +++ b/sonar-server/karma.conf.js @@ -25,9 +25,9 @@ module.exports = function(config) { files: [ // dependencies 'third-party/jquery.min.js', - 'third-party/underscore.js', - 'third-party/backbone.js', - 'third-party/backbone.marionette.js', + 'third-party/underscore-min.js', + 'third-party/backbone-min.js', + 'third-party/backbone.marionette.min.js', // app 'navigator/filters/base-filters.js', diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/groups/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/groups/index.html.erb index 229d1dda198..fde1b1f39e6 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/groups/index.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/groups/index.html.erb @@ -1,7 +1,3 @@ -<% content_for :script do %> - -<% end %> -
<% if profiles_administrator? %>