summaryrefslogtreecommitdiffstats
path: root/non-puppet/qtmetrics/ajaxrequest.js
diff options
context:
space:
mode:
authorDavid Skoland <david.skoland@qt.io>2021-03-19 11:03:18 +0100
committerDavid Skoland <david.skoland@qt.io>2021-04-06 07:09:55 +0000
commitfa8945177f6fb313706e854a307566d07cf96317 (patch)
tree1c58a3b969019fde1d32ee5f140e71fde35a97e7 /non-puppet/qtmetrics/ajaxrequest.js
parent8198e15cbd690cdca2f134546f11894804dd6af5 (diff)
Delete unused files
bootstrap has been superseded by coin and qtmetrics has been superseded by Grafana. testresults.qt.io has been moved to: https://git.qt.io/qtqa/testresults.qt.io Task-number: QTQAINFRA-1958 Change-Id: I6341b12c21f3566ae645f31927a6e6848e183b08 Reviewed-by: Tony SarajΓ€rvi <tony.sarajarvi@qt.io>
Diffstat (limited to 'non-puppet/qtmetrics/ajaxrequest.js')
-rw-r--r--non-puppet/qtmetrics/ajaxrequest.js172
1 files changed, 0 insertions, 172 deletions
diff --git a/non-puppet/qtmetrics/ajaxrequest.js b/non-puppet/qtmetrics/ajaxrequest.js
deleted file mode 100644
index e699345..0000000
--- a/non-puppet/qtmetrics/ajaxrequest.js
+++ /dev/null
@@ -1,172 +0,0 @@
-/****************************************************************************
-##
-## Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
-## Contact: http://www.qt-project.org/legal
-##
-## This file is part of the Qt Metrics web portal.
-##
-## $QT_BEGIN_LICENSE:LGPL$
-## Commercial License Usage
-## Licensees holding valid commercial Qt licenses may use this file in
-## accordance with the commercial license agreement provided with the
-## Software or, alternatively, in accordance with the terms contained in
-## a written agreement between you and Digia. For licensing terms and
-## conditions see http://qt.digia.com/licensing. For further information
-## use the contact form at http://qt.digia.com/contact-us.
-##
-## GNU Lesser General Public License Usage
-## Alternatively, this file may be used under the terms of the GNU Lesser
-## General Public License version 2.1 as published by the Free Software
-## Foundation and appearing in the file LICENSE.LGPL included in the
-## packaging of this file. Please review the following information to
-## ensure the GNU Lesser General Public License version 2.1 requirements
-## will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-##
-## In addition, as a special exception, Digia gives you certain additional
-## rights. These rights are described in the Digia Qt LGPL Exception
-## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-##
-## GNU General Public License Usage
-## Alternatively, this file may be used under the terms of the GNU
-## General Public License version 3.0 as published by the Free Software
-## Foundation and appearing in the file LICENSE.GPL included in the
-## packaging of this file. Please review the following information to
-## ensure the GNU General Public License version 3.0 requirements will be
-## met: http://www.gnu.org/copyleft/gpl.html.
-##
-##
-## $QT_END_LICENSE$
-##
-****************************************************************************/
-
-var metricRequest = new Array();
-var filterRequest;
-
-/* Create metric instance as required by the browser */
-function createMetricRequestObject(id)
-{
- if (window.XMLHttpRequest)
- metricRequest[id] = new XMLHttpRequest(); // for IE7+, Firefox, Chrome, Opera, Safari
- else
- metricRequest[id] = new ActiveXObject("Microsoft.XMLHTTP"); // for IE6 and IE5
-}
-
-/* Create filter instance as required by the browser */
-function createFilterRequestObject()
-{
- if (window.XMLHttpRequest)
- filterRequest = new XMLHttpRequest(); // for IE7+, Firefox, Chrome, Opera, Safari
- else
- filterRequest = new ActiveXObject("Microsoft.XMLHTTP"); // for IE6 and IE5
-}
-
-/* Request metric data (e.g. from database) */
-function getMetricData(metricId, filepath, round, filters)
-{
- if (filters == "") {
- document.getElementById("metricsBox"+metricId).innerHTML = "";
- return;
- }
- filters = encodeURIComponent(filters); // Encode the parameters to follow correct URL encoding (e.g. possible "+" characters)
- createMetricRequestObject(metricId);
- metricRequest[metricId].open("GET",filepath+"?round="+round+"&filters="+filters,true);
- metricRequest[metricId].send();
- metricRequest[metricId].onreadystatechange = function(index)
- {
- return function()
- {
- showMetricData(index);
- };
- } (metricId);
-}
-
-/* Show metric result in the related metrics box (div) */
-function showMetricData(metricId)
-{
- if (metricRequest[metricId].readyState == 4 && metricRequest[metricId].status == 200) {
- var response = metricRequest[metricId].responseText;
- document.getElementById("metricsBox"+metricId).innerHTML = response;
- getMetricDataRequestCompleted(metricId);
- return;
- }
-}
-
-/* Request filters (from database) */
-function getFilters(div, filepath)
-{
- createFilterRequestObject();
- filterRequest.open("GET",filepath,true);
- filterRequest.send();
- filterRequest.onreadystatechange = function(index)
- {
- return function()
- {
- showFilters(index);
- };
- } (div);
-}
-
-/* Show filters in the related div */
-function showFilters(div)
-{
- if (filterRequest.readyState == 4 && filterRequest.status == 200) {
- var response = filterRequest.responseText;
- document.getElementById(div).innerHTML = response;
- getFiltersRequestCompleted();
- return;
- }
-}
-
-/* Request database status (initial loading of the page) */
-function getDatabaseStatusInitial(div, filepath, initial, timeOffset)
-{
- timeOffset = encodeURIComponent(timeOffset); // Encode the parameters to follow correct URL encoding (e.g. possible "+" character in "GMT+0300")
- createFilterRequestObject();
- filterRequest.open("GET",filepath+"?initial="+initial+"&timeoffset="+timeOffset,true);
- filterRequest.send();
- filterRequest.onreadystatechange = function(index)
- {
- return function()
- {
- showDatabaseStatusInitial(index);
- };
- } (div);
-}
-
-/* Request database status (normal use of the page) */
-function getDatabaseStatus(div, filepath, initial, timeOffset)
-{
- timeOffset = encodeURIComponent(timeOffset); // Encode the parameters to follow correct URL encoding (e.g. possible "+" character in "GMT+0300")
- createFilterRequestObject();
- filterRequest.open("GET",filepath+"?initial="+initial+"&timeoffset="+timeOffset,true);
- filterRequest.send();
- filterRequest.onreadystatechange = function(index)
- {
- return function()
- {
- showDatabaseStatus(index);
- };
- } (div);
-}
-
-/* Show database status in the related div (initial loading of the page) */
-function showDatabaseStatusInitial(div)
-{
- if (filterRequest.readyState == 4 && filterRequest.status == 200) {
- var response = filterRequest.responseText;
- document.getElementById(div).innerHTML = response;
- getDatabaseStatusInitialRequestCompleted();
- return;
- }
-}
-
-/* Show database status in the related div (normal use of the page) */
-function showDatabaseStatus(div)
-{
- if (filterRequest.readyState == 4 && filterRequest.status == 200) {
- var response = filterRequest.responseText;
- document.getElementById(div).innerHTML = response;
- getDatabaseStatusRequestCompleted();
- return;
- }
-}