summaryrefslogtreecommitdiffstats
path: root/non-puppet/qtmetrics2/scripts
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/qtmetrics2/scripts
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/qtmetrics2/scripts')
-rw-r--r--non-puppet/qtmetrics2/scripts/about.js43
-rw-r--r--non-puppet/qtmetrics2/scripts/admin.js137
-rw-r--r--non-puppet/qtmetrics2/scripts/ajax.js184
-rw-r--r--non-puppet/qtmetrics2/scripts/ie10-viewport-bug-workaround.js22
-rw-r--r--non-puppet/qtmetrics2/scripts/loading.js66
-rw-r--r--non-puppet/qtmetrics2/scripts/project_autocomplete.js83
-rw-r--r--non-puppet/qtmetrics2/scripts/reload.js43
-rw-r--r--non-puppet/qtmetrics2/scripts/speedo.js157
-rw-r--r--non-puppet/qtmetrics2/scripts/testset_autocomplete.js83
-rw-r--r--non-puppet/qtmetrics2/scripts/tooltip.js62
10 files changed, 0 insertions, 880 deletions
diff --git a/non-puppet/qtmetrics2/scripts/about.js b/non-puppet/qtmetrics2/scripts/about.js
deleted file mode 100644
index 5c61bc5..0000000
--- a/non-puppet/qtmetrics2/scripts/about.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
-#############################################################################
-##
-## Copyright (C) 2015 The Qt Company Ltd.
-## Contact: http://www.qt.io/licensing/
-##
-## This file is part of the Quality Assurance module of the Qt Toolkit.
-##
-## $QT_BEGIN_LICENSE:LGPL21$
-## 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 The Qt Company. For licensing terms
-## and conditions see http://www.qt.io/terms-conditions. For further
-## information use the contact form at http://www.qt.io/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 or version 3 as published by the Free
-## Software Foundation and appearing in the file LICENSE.LGPLv21 and
-## LICENSE.LGPLv3 included in the packaging of this file. Please review the
-## following information to ensure the GNU Lesser General Public License
-## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
-## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-##
-## As a special exception, The Qt Company gives you certain additional
-## rights. These rights are described in The Qt Company LGPL Exception
-## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-##
-## $QT_END_LICENSE$
-##
-#############################################################################
-
-/**
- * Show About window
- * @since 18-06-2015
- * @author Juha Sippola
- */
-
-$(function(){
- $("#about").load("templates/about.html");
-});
diff --git a/non-puppet/qtmetrics2/scripts/admin.js b/non-puppet/qtmetrics2/scripts/admin.js
deleted file mode 100644
index 589294b..0000000
--- a/non-puppet/qtmetrics2/scripts/admin.js
+++ /dev/null
@@ -1,137 +0,0 @@
-/*
-#############################################################################
-##
-## Copyright (C) 2015 The Qt Company Ltd.
-## Contact: http://www.qt.io/licensing/
-##
-## This file is part of the Quality Assurance module of the Qt Toolkit.
-##
-## $QT_BEGIN_LICENSE:LGPL21$
-## 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 The Qt Company. For licensing terms
-## and conditions see http://www.qt.io/terms-conditions. For further
-## information use the contact form at http://www.qt.io/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 or version 3 as published by the Free
-## Software Foundation and appearing in the file LICENSE.LGPLv21 and
-## LICENSE.LGPLv3 included in the packaging of this file. Please review the
-## following information to ensure the GNU Lesser General Public License
-## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
-## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-##
-## As a special exception, The Qt Company gives you certain additional
-## rights. These rights are described in The Qt Company LGPL Exception
-## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-##
-## $QT_END_LICENSE$
-##
-#############################################################################
-
-/**
- * Admin functions
- * @since 17-09-2015
- * @author Juha Sippola
- */
-
-// Catch action confirmation from the modal
-$('.modal .modal-footer button').on('click', function (e) {
- var branchTag;
- var branchName;
- var removeButtonDiv;
- var archiveButtonDiv;
- var $target = $(e.target);
- $(this).closest('.modal').on('hidden.bs.modal', function (e) {
-
- // Remove branch
- if ($target[0].id.search("confirm_branch_remove") === 0) {
- branchTag = $target[0].id.substring($target[0].id.lastIndexOf('_') + 1);
- branchName = $target[0].name;
- removeButtonDiv = '#' + branchTag + 'RemoveButton';
- archiveButtonDiv = '#' + branchTag + 'ArchiveButton';
- $(removeButtonDiv).html("Removing...");
- // Send request and handle the response
- $.ajax({
- url: "api/branch/" + branchName,
- type: 'DELETE',
- success: function(result) {
- console.log(this.type + ": " + this.url + " done");
- $(removeButtonDiv).html("Removed");
- $(archiveButtonDiv).html("");
- },
- error: function (request, status, error) {
- console.log(this.type + ": " + this.url + " error (" + error + ")");
- $(removeButtonDiv).html("Error!");
- }
- });
- }
-
- // Archive branch
- if ($target[0].id.search("confirm_branch_archive") === 0) {
- branchTag = $target[0].id.substring($target[0].id.lastIndexOf('_') + 1);
- branchName = $target[0].name;
- archiveButtonDiv = '#' + branchTag + 'ArchiveButton';
- $(archiveButtonDiv).html("Archiving...");
- // Send request and handle the response
- $.ajax({
- url: "api/branch/archive/" + branchName,
- type: 'PUT',
- success: function(result) {
- console.log(this.type + ": " + this.url + " done");
- $(archiveButtonDiv).html("Archived");
- },
- error: function (request, status, error) {
- console.log(this.type + ": " + this.url + " error (" + error + ")");
- $(archiveButtonDiv).html("Error!");
- }
- });
- }
-
- // Restore branch
- if ($target[0].id.search("confirm_branch_restore") === 0) {
- branchTag = $target[0].id.substring($target[0].id.lastIndexOf('_') + 1);
- branchName = $target[0].name;
- archiveButtonDiv = '#' + branchTag + 'ArchiveButton';
- $(archiveButtonDiv).html("Restoring...");
- // Send request and handle the response
- $.ajax({
- url: "api/branch/restore/" + branchName,
- type: 'PUT',
- success: function(result) {
- console.log(this.type + ": " + this.url + " done");
- $(archiveButtonDiv).html("Restored");
- },
- error: function (request, status, error) {
- console.log(this.type + ": " + this.url + " error (" + error + ")");
- $(archiveButtonDiv).html("Error!");
- }
- });
- }
-
- // Remove data
- if ($target[0].id.search("confirm_data_remove") === 0) {
- var dataDate = $target[0].id.substring($target[0].id.lastIndexOf('_') + 1);
- var dataState = $target[0].name;
- removeButtonDiv = '#' + dataState + '-' + dataDate + 'Button';
- $(removeButtonDiv).html("Removing...");
- // Send delete request and handle the response
- $.ajax({
- url: "api/data/" + dataState + "/" + dataDate,
- type: 'DELETE',
- success: function(result) {
- console.log(this.type + ": " + this.url + " done");
- $(removeButtonDiv).html("Removed");
- },
- error: function (request, status, error) {
- console.log(this.type + ": " + this.url + " error (" + error + ")");
- $(removeButtonDiv).html("Error!");
- }
- });
- }
-
- });
-});
diff --git a/non-puppet/qtmetrics2/scripts/ajax.js b/non-puppet/qtmetrics2/scripts/ajax.js
deleted file mode 100644
index f63695e..0000000
--- a/non-puppet/qtmetrics2/scripts/ajax.js
+++ /dev/null
@@ -1,184 +0,0 @@
-/*
-#############################################################################
-##
-## Copyright (C) 2015 The Qt Company Ltd.
-## Contact: http://www.qt.io/licensing/
-##
-## This file is part of the Quality Assurance module of the Qt Toolkit.
-##
-## $QT_BEGIN_LICENSE:LGPL21$
-## 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 The Qt Company. For licensing terms
-## and conditions see http://www.qt.io/terms-conditions. For further
-## information use the contact form at http://www.qt.io/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 or version 3 as published by the Free
-## Software Foundation and appearing in the file LICENSE.LGPLv21 and
-## LICENSE.LGPLv3 included in the packaging of this file. Please review the
-## following information to ensure the GNU Lesser General Public License
-## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
-## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-##
-## As a special exception, The Qt Company gives you certain additional
-## rights. These rights are described in The Qt Company LGPL Exception
-## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-##
-## $QT_END_LICENSE$
-##
-#############################################################################
-
-/**
- * Ajax route calls
- * @since 24-09-2015
- * @author Juha Sippola
- */
-
-$(function () {
-
- var div;
- var divs = [];
- var project;
- var testset;
- var url;
-
- // Get all div ids on a page to call correct routes
- $(".container-fluid").find("div").each(function(){ divs.push(this.id); });
-
- // Testset project / latest status
- if ($.inArray('testset_project_data_latest', divs) > -1) {
- project = $('#project').html();
- $.ajax({
- url: "data/testsetproject/latest/" + project,
- dataType: "html",
- cache: true
- })
- .done(function( html ) {
- console.log(this.url + " done");
- $('#testset_project_data_latest').html(html);
- });
- }
-
- // Testset project / results in branches
- if ($.inArray('testset_project_data_results', divs) > -1) {
- project = $('#project').html();
- $.ajax({
- url: "data/testsetproject/results/" + project,
- dataType: "html",
- cache: true
- })
- .done(function( html ) {
- console.log(this.url + " done");
- $('#testset_project_data_results').html(html);
- });
- }
-
- // Top testset failures
- if ($.inArray('testsets_top_data', divs) > -1) {
- $.ajax({
- url: "data/test/top",
- dataType: "html",
- cache: true
- })
- .done(function( html ) {
- console.log(this.url + " done");
- $('#testsets_top_data').html(html);
- });
- }
-
- // Flaky testsets
- if ($.inArray('flaky_testsets_data', divs) > -1) {
- $.ajax({
- url: "data/test/flaky",
- dataType: "html",
- cache: true
- })
- .done(function( html ) {
- console.log(this.url + " done");
- $('#flaky_testsets_data').html(html);
- });
- }
-
- // Top testfunction failures
- if ($.inArray('testfunctions_top_data', divs) > -1) {
- $.ajax({
- url: "data/test/top/testfunctions",
- dataType: "html",
- cache: true
- })
- .done(function( html ) {
- console.log(this.url + " done");
- $('#testfunctions_top_data').html(html);
- });
- }
-
- // Blacklisted passed testfunctions
- if ($.inArray('testfunctions_blacklisted_passed_data', divs) > -1) {
- testset = $('#testset').html();
- project = $('#project').html();
- if (testset === '') {
- url = "data/test/bpassed";
- } else {
- url = "data/test/bpassed/" + testset + "/" + project;
- }
- $.ajax({
- url: url,
- dataType: "html",
- cache: true
- })
- .done(function( html ) {
- console.log(this.url + " done");
- $('#testfunctions_blacklisted_passed_data').html(html);
- });
- }
-
- // Blacklisted passed testrows
- if ($.inArray('testrows_blacklisted_passed_data', divs) > -1) {
- testset = $('#testset').html();
- project = $('#project').html();
- url = "data/test/bpassed/testrows/" + testset + "/" + project;
- $.ajax({
- url: url,
- dataType: "html",
- cache: true
- })
- .done(function( html ) {
- console.log(this.url + " done");
- $('#testrows_blacklisted_passed_data').html(html);
- });
- }
-
- // Top testset duration
- if ($.inArray('testsets_duration', divs) > -1) {
- $.ajax({
- url: "data/test/duration/testsets",
- dataType: "html",
- cache: true
- })
- .done(function( html ) {
- console.log(this.url + " done");
- $('#testsets_duration').html(html);
- });
- }
-
- // Top testfunction duration
- if ($.inArray('testfunctions_duration', divs) > -1) {
- testset = $('#testset').html();
- project = $('#project').html();
- url = "data/test/duration/testfunctions/" + testset + "/" + project;
- $.ajax({
- url: url,
- dataType: "html",
- cache: true
- })
- .done(function( html ) {
- console.log(this.url + " done");
- $('#testfunctions_duration').html(html);
- });
- }
-
-});
diff --git a/non-puppet/qtmetrics2/scripts/ie10-viewport-bug-workaround.js b/non-puppet/qtmetrics2/scripts/ie10-viewport-bug-workaround.js
deleted file mode 100644
index 346636d..0000000
--- a/non-puppet/qtmetrics2/scripts/ie10-viewport-bug-workaround.js
+++ /dev/null
@@ -1,22 +0,0 @@
-/*!
- * IE10 viewport hack for Surface/desktop Windows 8 bug
- * Copyright 2014 Twitter, Inc.
- * Licensed under the Creative Commons Attribution 3.0 Unported License. For
- * details, see http://creativecommons.org/licenses/by/3.0/.
- */
-
-// See the Getting Started docs for more information:
-// http://getbootstrap.com/getting-started/#support-ie10-width
-
-(function () {
- 'use strict';
- if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
- var msViewportStyle = document.createElement('style')
- msViewportStyle.appendChild(
- document.createTextNode(
- '@-ms-viewport{width:auto!important}'
- )
- )
- document.querySelector('head').appendChild(msViewportStyle)
- }
-})();
diff --git a/non-puppet/qtmetrics2/scripts/loading.js b/non-puppet/qtmetrics2/scripts/loading.js
deleted file mode 100644
index 0c05568..0000000
--- a/non-puppet/qtmetrics2/scripts/loading.js
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
-#############################################################################
-##
-## Copyright (C) 2015 The Qt Company Ltd.
-## Contact: http://www.qt.io/licensing/
-##
-## This file is part of the Quality Assurance module of the Qt Toolkit.
-##
-## $QT_BEGIN_LICENSE:LGPL21$
-## 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 The Qt Company. For licensing terms
-## and conditions see http://www.qt.io/terms-conditions. For further
-## information use the contact form at http://www.qt.io/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 or version 3 as published by the Free
-## Software Foundation and appearing in the file LICENSE.LGPLv21 and
-## LICENSE.LGPLv3 included in the packaging of this file. Please review the
-## following information to ensure the GNU Lesser General Public License
-## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
-## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-##
-## As a special exception, The Qt Company gives you certain additional
-## rights. These rights are described in The Qt Company LGPL Exception
-## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-##
-## $QT_END_LICENSE$
-##
-#############################################################################
-
-/**
- * Show loading progress bar
- * @since 08-07-2015
- * @author Juha Sippola
- */
-
-// Hide the progress bar when page loaded
-$(window).load(function() {
- $('#link_loading').hide();
-});
-
-// Show the progress bar when reloading the page (this also hides the progress bar when pressing back/forward button)
-$(window).on('beforeunload', function() {
- setTimeout(function() {
- $('#link_loading').fadeIn();
- }, 1000); // wait for 1s
-});
-
-// Show the progress bar when internal link clicked
-$(function(){
- $('a').on('click', function(e) {
- if ( $(this).attr('target') !== '_blank' && $(this).attr('href') !== "" && $(this).attr('href') !== "#") {
- setTimeout(function() {
- $('#link_loading').fadeIn();
- }, 1000); // wait for 1s
- }
- // Fallback: hide after a timeout so that never left on by accident (e.g. due to browser differences)
- setTimeout(function() {
- $('#link_loading').fadeOut();
- }, 10000); // wait for 10s
- });
-});
diff --git a/non-puppet/qtmetrics2/scripts/project_autocomplete.js b/non-puppet/qtmetrics2/scripts/project_autocomplete.js
deleted file mode 100644
index 7ab9490..0000000
--- a/non-puppet/qtmetrics2/scripts/project_autocomplete.js
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
-#############################################################################
-##
-## Copyright (C) 2015 The Qt Company Ltd.
-## Contact: http://www.qt.io/licensing/
-##
-## This file is part of the Quality Assurance module of the Qt Toolkit.
-##
-## $QT_BEGIN_LICENSE:LGPL21$
-## 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 The Qt Company. For licensing terms
-## and conditions see http://www.qt.io/terms-conditions. For further
-## information use the contact form at http://www.qt.io/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 or version 3 as published by the Free
-## Software Foundation and appearing in the file LICENSE.LGPLv21 and
-## LICENSE.LGPLv3 included in the packaging of this file. Please review the
-## following information to ensure the GNU Lesser General Public License
-## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
-## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-##
-## As a special exception, The Qt Company gives you certain additional
-## rights. These rights are described in The Qt Company LGPL Exception
-## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-##
-## $QT_END_LICENSE$
-##
-#############################################################################
-
-/**
- * Project autocomplete
- * @since 30-06-2015
- * @author Juha Sippola
- */
-
-$(function() {
- var cache = {};
- $( "#projectInput" ).autocomplete({
- minLength: 2,
-
- // get the filtered list (cached)
- source: function( request, response ) {
- var term = request.term;
- if ( term in cache ) {
- response( cache[ term ] );
- return;
- }
- $.getJSON( "project_search.php", request, function( data, status, xhr ) {
- cache[ term ] = data;
- response( data );
- });
- },
-
- // detect the case without any matches
- response: function (event, ui) {
- if (ui.content.length === 0) {
- ui.content.push({
- 'label': '(no match)',
- 'value': ''
- });
- }
- }
- })
-
- // fill the list
- .data("ui-autocomplete")._renderItem = function (ul, item) {
- if (item.value === '') {
- // 'no match' case
- return $('<li class="ui-state-disabled">'+item.label+'</li>')
- .appendTo(ul);
- } else {
- // list of matches
- return $("<li>")
- .append("<a>" + item.label + "</a>")
- .appendTo(ul);
- }
- };
-});
diff --git a/non-puppet/qtmetrics2/scripts/reload.js b/non-puppet/qtmetrics2/scripts/reload.js
deleted file mode 100644
index 1b6b353..0000000
--- a/non-puppet/qtmetrics2/scripts/reload.js
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
-#############################################################################
-##
-## Copyright (C) 2015 The Qt Company Ltd.
-## Contact: http://www.qt.io/licensing/
-##
-## This file is part of the Quality Assurance module of the Qt Toolkit.
-##
-## $QT_BEGIN_LICENSE:LGPL21$
-## 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 The Qt Company. For licensing terms
-## and conditions see http://www.qt.io/terms-conditions. For further
-## information use the contact form at http://www.qt.io/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 or version 3 as published by the Free
-## Software Foundation and appearing in the file LICENSE.LGPLv21 and
-## LICENSE.LGPLv3 included in the packaging of this file. Please review the
-## following information to ensure the GNU Lesser General Public License
-## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
-## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-##
-## As a special exception, The Qt Company gives you certain additional
-## rights. These rights are described in The Qt Company LGPL Exception
-## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-##
-## $QT_END_LICENSE$
-##
-#############################################################################
-
-/**
- * Show About window
- * @since 15-09-2015
- * @author Juha Sippola
- */
-
-$('.reload_page').click(function(e){
- window.location.reload();
-});
diff --git a/non-puppet/qtmetrics2/scripts/speedo.js b/non-puppet/qtmetrics2/scripts/speedo.js
deleted file mode 100644
index 92b1acc..0000000
--- a/non-puppet/qtmetrics2/scripts/speedo.js
+++ /dev/null
@@ -1,157 +0,0 @@
-/*
-#############################################################################
-##
-## Copyright (C) 2015 The Qt Company Ltd.
-## Contact: http://www.qt.io/licensing/
-##
-## This file is part of the Quality Assurance module of the Qt Toolkit.
-##
-## $QT_BEGIN_LICENSE:LGPL21$
-## 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 The Qt Company. For licensing terms
-## and conditions see http://www.qt.io/terms-conditions. For further
-## information use the contact form at http://www.qt.io/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 or version 3 as published by the Free
-## Software Foundation and appearing in the file LICENSE.LGPLv21 and
-## LICENSE.LGPLv3 included in the packaging of this file. Please review the
-## following information to ensure the GNU Lesser General Public License
-## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
-## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-##
-## As a special exception, The Qt Company gives you certain additional
-## rights. These rights are described in The Qt Company LGPL Exception
-## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-##
-## $QT_END_LICENSE$
-##
-#############################################################################
-
-/**
- * Speedo chart functions
- * @since 27-09-2015
- * @author Juha Sippola
- */
-
-$(function () {
-
- // Get all div ids on a page
- var divs = [];
- $(".chartSpeedo").find("div").each(function(){ divs.push(this.id); });
-
- // Draw the charts
- jQuery.each( divs, function( i, val ) {
- var percent = Math.round(($("#" + val + "Value").html()/100) * 100) / 100;
- drawSpeedo("#" + val, percent);
- });
-
-});
-
-function drawSpeedo(divId, percent) {
-
- var Needle, arc, arcEndRad, arcStartRad, barWidth, chart, chartInset,
- degToRad, el, endPadRad, height, margin, needle, numSections, padRad,
- percToDeg, percToRad, radius, sectionIndx, sectionPerc, startPadRad,
- svg, totalPercent, width, _i;
-
- console.log(divId + ": " + percent);
-
- barWidth = 30;
- numSections = 10;
- sectionPerc = 1 / numSections / 2;
- padRad = 0.05;
- chartInset = 0;
- totalPercent = 0.75;
-
- el = d3.select(divId);
-
- margin = {
- top: 90,
- right: 0,
- bottom: 0,
- left: 0
- };
-
- // width = el[0][0].offsetWidth + margin.left;
- // height = el[0][0].offsetWidth + margin.top;
- // radius = Math.min(width, height) / 2;
- width = 150;
- height = 150;
- radius = 75;
-
- percToDeg = function(perc) {
- return perc * 360;
- };
-
- percToRad = function(perc) {
- return degToRad(percToDeg(perc));
- };
-
- degToRad = function(deg) {
- return deg * Math.PI / 180;
- };
-
- svg = el.append('svg').attr('width', width + margin.left + margin.right).attr('height', height);
- chart = svg.append('g').attr('transform', "translate(" + ((width / 2) + margin.left) + ", " + margin.top + ")");
- for (sectionIndx = _i = 1; 1 <= numSections ? _i <= numSections : _i >= numSections; sectionIndx = 1 <= numSections ? ++_i : --_i) {
- arcStartRad = percToRad(totalPercent);
- arcEndRad = arcStartRad + percToRad(sectionPerc);
- totalPercent += sectionPerc;
- startPadRad = sectionIndx === 0 ? 0 : padRad / 2;
- endPadRad = sectionIndx === numSections ? 0 : padRad / 2;
- arc = d3.svg.arc().outerRadius(radius - chartInset).innerRadius(radius - chartInset - barWidth).startAngle(arcStartRad + startPadRad).endAngle(arcEndRad - endPadRad);
- chart.append('path').attr('class', "arc chart-color" + sectionIndx).attr('d', arc);
- }
-
- Needle = (function() {
-
- function Needle(len, radius) {
- this.len = len;
- this.radius = radius;
- }
-
- Needle.prototype.drawOn = function(el, perc) {
- el.append('circle').attr('class', 'needle-center').attr('cx', 0).attr('cy', 0).attr('r', this.radius);
- return el.append('path').attr('class', 'needle').attr('d', this.mkCmd(perc));
- };
-
- Needle.prototype.animateOn = function(el, perc) {
- var self;
- self = this;
- return el.transition().delay(500).ease('elastic').duration(4000).selectAll('.needle').tween('progress', function() {
- return function(percentOfPercent) {
- var progress;
- progress = percentOfPercent * perc;
- return d3.select(this).attr('d', self.mkCmd(progress));
- };
- });
- };
-
- Needle.prototype.mkCmd = function(perc) {
- var centerX, centerY, leftX, leftY, rightX, rightY, thetaRad, topX, topY;
- thetaRad = percToRad(perc / 2);
- centerX = 0;
- centerY = 0;
- topX = centerX - this.len * Math.cos(thetaRad);
- topY = centerY - this.len * Math.sin(thetaRad);
- leftX = centerX - this.radius * Math.cos(thetaRad - Math.PI / 2);
- leftY = centerY - this.radius * Math.sin(thetaRad - Math.PI / 2);
- rightX = centerX - this.radius * Math.cos(thetaRad + Math.PI / 2);
- rightY = centerY - this.radius * Math.sin(thetaRad + Math.PI / 2);
- return "M " + leftX + " " + leftY + " L " + topX + " " + topY + " L " + rightX + " " + rightY;
- };
-
- return Needle;
-
- })();
-
- needle = new Needle(85, 8);
- needle.drawOn(chart, 0);
- needle.animateOn(chart, percent);
-
-}
diff --git a/non-puppet/qtmetrics2/scripts/testset_autocomplete.js b/non-puppet/qtmetrics2/scripts/testset_autocomplete.js
deleted file mode 100644
index 6912020..0000000
--- a/non-puppet/qtmetrics2/scripts/testset_autocomplete.js
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
-#############################################################################
-##
-## Copyright (C) 2015 The Qt Company Ltd.
-## Contact: http://www.qt.io/licensing/
-##
-## This file is part of the Quality Assurance module of the Qt Toolkit.
-##
-## $QT_BEGIN_LICENSE:LGPL21$
-## 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 The Qt Company. For licensing terms
-## and conditions see http://www.qt.io/terms-conditions. For further
-## information use the contact form at http://www.qt.io/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 or version 3 as published by the Free
-## Software Foundation and appearing in the file LICENSE.LGPLv21 and
-## LICENSE.LGPLv3 included in the packaging of this file. Please review the
-## following information to ensure the GNU Lesser General Public License
-## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
-## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-##
-## As a special exception, The Qt Company gives you certain additional
-## rights. These rights are described in The Qt Company LGPL Exception
-## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-##
-## $QT_END_LICENSE$
-##
-#############################################################################
-
-/**
- * Testset autocomplete
- * @since 05-05-2015
- * @author Juha Sippola
- */
-
-$(function() {
- var cache = {};
- $( "#testsetInput" ).autocomplete({
- minLength: 2,
-
- // get the filtered list (cached)
- source: function( request, response ) {
- var term = request.term;
- if ( term in cache ) {
- response( cache[ term ] );
- return;
- }
- $.getJSON( "testset_search.php", request, function( data, status, xhr ) {
- cache[ term ] = data;
- response( data );
- });
- },
-
- // detect the case without any matches
- response: function (event, ui) {
- if (ui.content.length === 0) {
- ui.content.push({
- 'label': '(no match)',
- 'value': ''
- });
- }
- }
- })
-
- // fill the list
- .data("ui-autocomplete")._renderItem = function (ul, item) {
- if (item.value === '') {
- // 'no match' case
- return $('<li class="ui-state-disabled">'+item.label+'</li>')
- .appendTo(ul);
- } else {
- // list of matches
- return $("<li>")
- .append("<a>" + item.label + "</a>")
- .appendTo(ul);
- }
- };
-});
diff --git a/non-puppet/qtmetrics2/scripts/tooltip.js b/non-puppet/qtmetrics2/scripts/tooltip.js
deleted file mode 100644
index 27004c2..0000000
--- a/non-puppet/qtmetrics2/scripts/tooltip.js
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
-#############################################################################
-##
-## Copyright (C) 2015 The Qt Company Ltd.
-## Contact: http://www.qt.io/licensing/
-##
-## This file is part of the Quality Assurance module of the Qt Toolkit.
-##
-## $QT_BEGIN_LICENSE:LGPL21$
-## 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 The Qt Company. For licensing terms
-## and conditions see http://www.qt.io/terms-conditions. For further
-## information use the contact form at http://www.qt.io/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 or version 3 as published by the Free
-## Software Foundation and appearing in the file LICENSE.LGPLv21 and
-## LICENSE.LGPLv3 included in the packaging of this file. Please review the
-## following information to ensure the GNU Lesser General Public License
-## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
-## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-##
-## As a special exception, The Qt Company gives you certain additional
-## rights. These rights are described in The Qt Company LGPL Exception
-## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-##
-## $QT_END_LICENSE$
-##
-#############################################################################
-
-/**
- * Initialize Bootstrap tooltips
- * @since 26-06-2015
- * @author Juha Sippola
- */
-
-$(function () {
-
- // Set tooltip activation to click on touch devices (and hover on others)
- var is_touch_device = ("ontouchstart" in window) || window.DocumentTouch && document instanceof DocumentTouch;
- $(".clickOnTouch").tooltip({
- trigger: is_touch_device ? "click" : "hover"
- });
-
- // Bootstrap tooltip
- $('[data-toggle="tooltip"]').tooltip();
-
- // Hide clicked tooltip
- $('body').on('click', function (e) {
- $('[data-toggle="tooltip"]').each(function () {
- //the 'is' for element that triggered the tooltip
- if (!$(this).is(e.target) && $(this).has(e.target).length === 0) {
- $(this).tooltip('hide');
- }
- });
- });
-
-});