Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Commit

Permalink
Moving files from old repo
Browse files Browse the repository at this point in the history
  • Loading branch information
darkwing committed Jan 16, 2015
1 parent 51c70d1 commit 9aef5ba
Show file tree
Hide file tree
Showing 46 changed files with 1,325 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory": "client/bower_components"
}
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
client/bower_components
node_modules
11 changes: 11 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
env:
browser: true
node: true

globals:
angular: false

rules:
global-strict: 0
no-use-before-define: [2, 'nofunc']
quotes: [1, single]
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,8 @@ nosetests.xml
.mr.developer.cfg
.project
.pydevproject

# Generated files not desired
.DS_Store
client/bower_components
node_modules
22 changes: 22 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "angular-routes",
"version": "1.0.0",
"authors": [
"Peter deHaan <[email protected]>"
],
"license": "WTFPL",
"private": true,
"ignore": [
"**/.*",
"bower_components",
"node_modules"
],
"dependencies": {
"angular": "~1.3.0",
"angular-route": "~1.3.0",
"angular-sanitize": "~1.3.0",
"bootstrap": "~3.2.0",
"foundation": "~5.4.6",
"foundation-icons": "*"
}
}
44 changes: 44 additions & 0 deletions client/static/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!DOCTYPE html>
<html lang="en" ng-app="LoadsApp" ng-controller="AppController">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<base href="/" />
<link href="bower_components/foundation/css/normalize.css" media="all" rel="stylesheet" type="text/css" />
<link href="bower_components/foundation/css/foundation.css" media="all" rel="stylesheet" type="text/css" />

<!-- build:css assets/css/app.min.css -->
<link href="assets/css/opensans.css" media="all" rel="stylesheet" type="text/css" />
<link href="assets/css/app.css" media="all" rel="stylesheet" type="text/css" />
<!-- endbuild -->

<!-- <link href="assets/favicon.ico" rel="shortcut icon" type="image/x-icon" /> -->
<title>404 &raquo; Loads App</title>
</head>
<body>

<header-nav></header-nav>

<div class="row">
<section class="small-12 columns" id="main">
<h1>404 <small>File not found!</small></h1>
</section>
</div>

<footer-nav></footer-nav>

<script src="bower_components/angular/angular.min.js"></script>
<script src="bower_components/angular-route/angular-route.min.js"></script>

<!-- build:js assets/scripts/app.min.js -->
<script src="assets/scripts/app.js"></script>
<script src="assets/scripts/constants.js"></script>
<script src="assets/scripts/configs.js"></script>
<script src="assets/scripts/services.js"></script>
<script src="assets/scripts/controllers.js"></script>
<script src="assets/scripts/directives.js"></script>
<script src="assets/scripts/filters.js"></script>
<!-- endbuild -->

</body>
</html>
143 changes: 143 additions & 0 deletions client/static/assets/css/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
/* Structure */
body {
background: #e9eaed;
}

body > header {
background: #c13832;
-webkit-box-shadow: 0 2px 2px -2px rgba(0, 0, 0, .52);
box-shadow: 0 2px 2px -2px rgba(0, 0, 0, .52);
}

.top-bar, .top-bar-section li:not(.has-form) a:not(.button), .top-bar-section ul li {
background: none;
}

.top-bar .name h1 a {
font-weight: bold;
}

.top-bar-section > ul > .divider, .top-bar-section > ul > [role="separator"] {
border-right-color: #ad0901;
}

nav.breadcrumbs {
background: none;
margin: 10px 0;
padding: 0;
border: 0;
float: right;
}

h2 .label {
float: right;
font-size: 1.3rem;
background: transparent;
color: #999;
}

.runs-column {
width: calc(50% - 20px);
width: -webkit-calc(50% - 20px);
float: left;
}

@media (max-width: 768px) {

.runs-column {
width: 100%;
float: none;
}
}


/* Tags */
body, h1, h2, h3, h4, h5, h6 {
color: #4d4e53;
font-family: 'Open Sans', sans-serif;
}

h1 {
color: #222;
margin-top: 20px;
}

h2 {
font-size: 1.5em;
}

.runs-column table caption {
color: inherit;
text-align: start;
}

.runs-column table h2 {
margin-bottom: 0;
}

.runs-column table caption small {
display: block;
color: #999;
margin-bottom: 10px;
font-weight: normal;
font-size: 70%;
}

.run-table {
width: 100%;
}
.run-table tbody td {
border-bottom: 1px solid #eee;
}

.run-result {
position: relative;
padding-right: 40px;
}

.run-result div {
font-size: 85%;
display: inline-block;
margin-right: 8px;
}

.run-result-icon {
position: absolute;
top: 35%;
right: 20px;
}




a.run-link {
font-weight: bold;
display: block;
}

.success {
background-color: rgba(0, 255, 0, 0.05) !important;
}

.danger {
background-color: rgba(255, 0, 0, 0.05) !important;
}

.success-text {
color: green;
}
.danger-text {
color: red;
}

table.details-table {
width: 100%;
}

table.details-table th {
text-align: start;
}

table.details-table tbody th[scope="row"] {
width: 10em;
}
55 changes: 55 additions & 0 deletions client/static/assets/css/opensans.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
@font-face {
font-family: 'Open Sans Light';
src: url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Light-webfont.eot');
src: url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Light-webfont.eot?#iefix') format('embedded-opentype'), url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Light-webfont.woff') format('woff'), url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Light-webfont.ttf') format('truetype'), url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Light-webfont.svg#OpenSansLight') format('svg');
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'Open Sans Light';
src: url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Regular-webfont.eot');
src: url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Regular-webfont.eot?#iefix') format('embedded-opentype'), url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Regular-webfont.woff') format('woff'), url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Regular-webfont.ttf') format('truetype'), url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Regular-webfont.svg#OpenSansRegular') format('svg');
font-weight: bold;
font-style: normal;
}

@font-face {
font-family: 'Open Sans Light';
src: url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-LightItalic-webfont.eot');
src: url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-LightItalic-webfont.eot?#iefix') format('embedded-opentype'), url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-LightItalic-webfont.woff') format('woff'), url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-LightItalic-webfont.ttf') format('truetype'), url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-LightItalic-webfont.svg#OpenSansRegular') format('svg');
font-weight: normal;
font-style: italic;
}

@font-face {
font-family: 'Open Sans';
src: url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Regular-webfont.eot');
src: url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Regular-webfont.eot?#iefix') format('embedded-opentype'), url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Regular-webfont.woff') format('woff'), url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Regular-webfont.ttf') format('truetype'), url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Regular-webfont.svg#OpenSansRegular') format('svg');
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'Open Sans';
src: url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Semibold-webfont.eot');
src: url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Semibold-webfont.eot?#iefix') format('embedded-opentype'), url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Semibold-webfont.woff') format('woff'), url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Semibold-webfont.ttf') format('truetype'), url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Semibold-webfont.svg#OpenSansSemibold') format('svg');
font-weight: bold;
font-style: normal;
}

@font-face {
font-family: 'Open Sans';
src: url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Italic-webfont.eot');
src: url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Italic-webfont.eot?#iefix') format('embedded-opentype'), url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Italic-webfont.woff') format('woff'), url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Italic-webfont.ttf') format('truetype'), url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-Italic-webfont.svg#OpenSansItalic') format('svg');
font-weight: normal;
font-style: italic;
}

@font-face {
font-family: 'Open Sans Extra Bold';
src: url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-ExtraBold-webfont.eot');
src: url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-ExtraBold-webfont.eot?#iefix') format('embedded-opentype'), url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-ExtraBold-webfont.woff') format('woff'), url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-ExtraBold-webfont.ttf') format('truetype'), url('//mozorg.cdn.mozilla.net/media/fonts/OpenSans-ExtraBold-webfont.svg#OpenSansSemibold') format('svg');
font-weight: bold;
font-style: normal;
}
40 changes: 40 additions & 0 deletions client/static/assets/run-detail.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"desc": "Testing <b>loadtest.TestLoop.test_all</b>",
"status": {
"author": "jbonacci",
"runId": "dc481968-3610-4083-a5e0-3b6c0bb40f8a",
"startTime": "2014-10-20T17:43:43-08:00",
"endTime": "2014-10-20T18:14:06-08:00",
"duration": "30 min and 23 sec",
"state": "Ended"
},
"configuration": {
"users": [
20
],
"hits": 0,
"agents": 5,
"duration": 1800,
"serverUrl": "https://loop.stage.mozaws.net"
},
"results": {
"testsOver": 70204,
"successes": 70204,
"failures": 0,
"errors": 2,
"tcpHits": 281264,
"openedWebSockets": 140488,
"totalWebSockets": 140488,
"bytesPerWebSocket": 30294148,
"requestsPerSecond": 154
},
"customMetrics": {
"healthCheck": 20
},
"errors": [
{
"count": "2",
"message": "Invalid response\n File \"/usr/lib/python2.7/unittest/case.py\", line 332, in run\n testMethod()\n File \"loadtest.py\", line 47, in test_all\n self._test_websockets(*params)\n File \"loadtest.py\", line 270, in _test_websockets\n callee_ws = self.create_ws(progress_url, callback=_handle_callee)\n File \"loadtest.py\", line 34, in create_ws\n ws = TestCase.create_ws(self, *args, **kw)\n File \"/home/ubuntu/loads/loads/case.py\", line 65, in create_ws\n test_case=self)\n File \"/home/ubuntu/loads/loads/websockets.py\", line 56, in create_ws\n extensions, klass, test_case)\n File \"/home/ubuntu/loads/loads/websockets.py\", line 82, in _create_ws\n socket.connect()\n File \"/home/ubuntu/loads/local/lib/python2.7/site-packages/ws4py/client/__init__.py\", line 126, in connect\n raise HandshakeError(\"Invalid response\")"
}
]
}
3 changes: 3 additions & 0 deletions client/static/assets/scripts/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict';

angular.module('LoadsApp', ['ngRoute', 'ngSanitize']);
28 changes: 28 additions & 0 deletions client/static/assets/scripts/configs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
'use strict';

angular.module('LoadsApp')
.config(function ($routeProvider, $locationProvider) {
$locationProvider.html5Mode(false);

$routeProvider
.when('/', route('RunsController', 'runs'))
.when('/cluster', route('ClusterManagementController', 'cluster'))
.when('/agents/status', route('AgentsStatusController', 'agents-status'))
.when('/agents/check', route('LaunchAgentHealthCheckController', 'agents-check'))
.when('/tests', route('TestsController', 'tests'))
.when('/runs', route('RunsController', 'runs'))
.when('/runs/active', route('ActiveRunsController', 'runs-active'))
.when('/runs/finished', route('FinishedRunsController', 'runs-finished'))
.when('/run/:id?', route('RunDetailController', 'run-detail'))
.when('/reference', route('ReferenceController', 'reference'))
.otherwise({
redirectTo: '/'
});
});

function route(controller, templateUrl) {
return {
controller: controller,
templateUrl: 'assets/views/' + templateUrl + '.html'
};
}
17 changes: 17 additions & 0 deletions client/static/assets/scripts/constants.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
'use strict';

angular.module('LoadsApp')
.constant('ROUTES', {
HOME: '/#/',
CLUSTER: '/#/cluster',
AGENTS_STATUS: '/#/agents/status',
AGENTS_CHECK: '/#/agents/check',
TESTS: '/#/tests',
RUNS: '/#/runs',
RUNS_ACTIVE: '/#/runs/active',
RUNS_FINISHED: '/#/runs/finished',
RUN_DETAIL: '/#/run',
REFERENCE: '/#/reference'
})
.constant('WEBSOCKET_URL', 'wss://loads.services.mozilla.com/status/websocket')
.constant('YEAR', new Date().getFullYear());
Loading

0 comments on commit 9aef5ba

Please sign in to comment.