-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- The CodeChecker Viewer now by default opens a product list. Users can select the product they want to view and will be routed to the run list. - If only ONE products exist on the server, simply opening http://host:port will automatically redirect the user to the run list of this single product. - This will only happen if this only product is properly connected. - Added a button to run lists to explicitly return to the product list page - The current product's name is now shown in the run list's title bar [ci skip]
- Loading branch information
1 parent
28b3e78
commit afde871
Showing
15 changed files
with
635 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>CodeChecker</title> | ||
|
||
<meta charset="UTF-8"> | ||
|
||
<link rel="shortcut icon" href="images/favicon.ico" /> | ||
|
||
<!-- CSS --> | ||
|
||
<link type="text/css" rel="stylesheet" href="scripts/plugins/dojo/dijit/themes/claro/claro.css" /> | ||
<link type="text/css" rel="stylesheet" href="scripts/plugins/dojo/dojox/grid/resources/claroGrid.css"/> | ||
<link type="text/css" rel="stylesheet" href="style/codecheckerviewer.css" /> | ||
<link type="text/css" rel="stylesheet" href="style/productlist.css" /> | ||
|
||
<!-- Third party libraries --> | ||
|
||
<script type="text/javascript" src="scripts/plugins/jsplumb/external/jquery-1.9.0-min.js"></script> | ||
<script type="text/javascript" src="scripts/plugins/jsplumb/jquery.jsPlumb-1.7.6-min.js"></script> | ||
<script type="text/javascript" src="scripts/plugins/thrift/thrift.js"></script> | ||
<script type="text/javascript" src="scripts/plugins/marked/marked.min.js"></script> | ||
|
||
<!-- Services --> | ||
|
||
<script type="text/javascript" src="scripts/codechecker-api/shared_types.js"></script> | ||
<script type="text/javascript" src="scripts/codechecker-api/products_types.js"></script> | ||
<script type="text/javascript" src="scripts/codechecker-api/codeCheckerProductService.js"></script> | ||
<script type="text/javascript" src="scripts/codechecker-api/authentication_types.js"></script> | ||
<script type="text/javascript" src="scripts/codechecker-api/codeCheckerAuthentication.js"></script> | ||
|
||
<!-- Configure Dojo --> | ||
|
||
<script> | ||
var dojoConfig = { | ||
baseUrl : '', | ||
async : true, | ||
packages : [ | ||
{ name : 'dojo', location : 'scripts/plugins/dojo/dojo' }, | ||
{ name : 'dijit', location : 'scripts/plugins/dojo/dijit' }, | ||
{ name : 'dojox', location : 'scripts/plugins/dojo/dojox' }, | ||
{ name : 'codechecker', location : 'scripts/codecheckerviewer' }, | ||
{ name : 'products', location : 'scripts/productlist' } | ||
] | ||
}; | ||
</script> | ||
|
||
<script type="text/javascript" src="scripts/plugins/dojo/dojo/dojo.js"></script> | ||
|
||
<!-- End loading custom scripts --> | ||
</head> | ||
<body class="claro"> | ||
<script> | ||
// http://stackoverflow.com/questions/5916900/how-can-you-detect-the-version-of-a-browser | ||
var browserVersion = (function(){ | ||
var ua = navigator.userAgent, tem, | ||
M = ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || []; | ||
|
||
if (/trident/i.test(M[1])) { | ||
tem = /\brv[ :]+(\d+)/g.exec(ua) || []; | ||
return 'IE ' + (tem[1] || ''); | ||
} | ||
|
||
if (M[1] === 'Chrome') { | ||
tem = ua.match(/\b(OPR|Edge)\/(\d+)/); | ||
if (tem != null) return tem.slice(1).join(' ').replace('OPR', 'Opera'); | ||
} | ||
|
||
M = M[2] ? [M[1], M[2]] : [navigator.appName, navigator.appVersion, '-?']; | ||
if ((tem = ua.match(/version\/(\d+)/i)) != null) M.splice(1, 1, tem[1]); | ||
return M.join(' '); | ||
})(); | ||
|
||
var pos = browserVersion.indexOf(' '); | ||
var browser = browserVersion.substr(0, pos); | ||
var version = parseInt(browserVersion.substr(pos + 1)); | ||
|
||
var browserCompatible | ||
= browser === 'Firefox' | ||
? version >= 4 | ||
: browser === 'IE' | ||
? version >= 9 | ||
: true; | ||
|
||
if (browserCompatible) { | ||
require([ | ||
'products/productlist'], | ||
function (productlist) { | ||
productlist(); | ||
}); | ||
} else { | ||
document.body.innerHTML = | ||
'<h2 style="margin-left: 20px;">Your browser is not compatible with CodeChecker Viewer!</h2> \ | ||
<p style="margin-left: 20px;">The version required for the following browsers are:</p> \ | ||
<ul style="margin-left: 20px;"> \ | ||
<li>Internet Explorer: version 9 or newer</li> \ | ||
<li>Firefox: version 4 or newer</li> \ | ||
</ul>'; | ||
} | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.