]> source.dussan.org Git - sonarqube.git/commitdiff
Revert "SONARCLOUD-615 Add google tag manager scripts" (#1583)
authorSiegfried Ehret <49895321+siegfried-ehret-sonarsource@users.noreply.github.com>
Thu, 9 May 2019 07:01:03 +0000 (09:01 +0200)
committerSonarTech <sonartech@sonarsource.com>
Thu, 9 May 2019 18:21:09 +0000 (20:21 +0200)
This reverts commit 74356a544b24317e5504fe6a85327f81af07f658.

server/sonar-web/config/webpack.config.js
server/sonar-web/public/analytics.js [deleted file]
server/sonar-web/public/index.html

index 8e6d754aad434551f65d1f429bfc9434b94ccb20..ec6ed103d5d9e8823e91a80b9c65b7b8393a8ba1 100644 (file)
@@ -193,7 +193,6 @@ module.exports = ({ production = true, release = false }) => {
 
         !production && new webpack.HotModuleReplacementPlugin()
       ].filter(Boolean),
-
       performance:
         production && release
           ? {
diff --git a/server/sonar-web/public/analytics.js b/server/sonar-web/public/analytics.js
deleted file mode 100644 (file)
index bfb641e..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2019 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- */
index 15b0b4fe201938ac7fdb18d638e1201b8bbde243..11e69bd1c7189bc7831533014f880742cbe81ec0 100644 (file)
 </head>
 
 <body>
-  <script>
-    window.baseUrl = '%WEB_CONTEXT%';
-    window.serverStatus = '%SERVER_STATUS%';
-    window.instance = '%INSTANCE%';
-    window.official = %OFFICIAL%;
-  </script>
-  <script src="./analytics.js"></script>
-
   <div id="content">
     <div class="global-loading">
       <i class="spinner global-loading-spinner"></i>
       <span class="global-loading-text">Loading...</span>
     </div>
   </div>
+  <script>
+    window.baseUrl = '%WEB_CONTEXT%';
+    window.serverStatus = '%SERVER_STATUS%';
+    window.instance = '%INSTANCE%';
+    window.official = %OFFICIAL%;
+  </script>
   <% for (let chunk in htmlWebpackPlugin.files.chunks) { %>
     <script type="module" src="%WEB_CONTEXT%/<%= htmlWebpackPlugin.files.chunks[chunk].entry %>"></script>
     <script nomodule src="%WEB_CONTEXT%/<%= htmlWebpackPlugin.files.chunks[chunk].entry.replace(/m\.[\w\d]+/, htmlWebpackPlugin.options.timestamp) %>"></script>