diff options
author | 2016-12-24 23:08:46 +0000 | |
---|---|---|
committer | 2016-12-30 15:38:08 +0000 | |
commit | 74c7067bffccd76f92dcbf51ba9211b9d6c6e533 (patch) | |
tree | dfde359ceded9bd89f96aed25d1a326f3609e19e /reporting/pages/app/scripts/directives | |
parent | 0d6df87202f4039ffff5e23957103cc1c8ca732a (diff) |
Create Test Reporting landing page
JIRA: RELENG-165
In this patch, I do the follow things:
1.deploy tornado server(currently I haven't write any backend code,
since the backend code depend on the testapi and I need to
communicate with Serena).
2.landing page code(almostly finished. But I haven't the data, so
for now, the data this page shows is a mock json. When the testapi
and my backend code ready, this page will finally finished)
3.deployment: supervisor + nginx + tornado + angular
usage:
docker run -itd -p 8000:8000 opnfv/reporting:<tag>
visit landing page:
http://server_ip:8000/reporting/index.html
test api:
http://server_ip:8000/landing-page/filters
visit old reporting page:
http://server_ip:8000/display/master/yardstick/status-apex.html
Change-Id: I527ab2661ce9e84b2942ebe673afbf5f2bc7878f
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'reporting/pages/app/scripts/directives')
-rw-r--r-- | reporting/pages/app/scripts/directives/mydirective.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/reporting/pages/app/scripts/directives/mydirective.js b/reporting/pages/app/scripts/directives/mydirective.js new file mode 100644 index 0000000..1d7177a --- /dev/null +++ b/reporting/pages/app/scripts/directives/mydirective.js @@ -0,0 +1,18 @@ +'use strict'; + +/** + * @ngdoc directive + * @name opnfvApp.directive:myDirective + * @description + * # myDirective + */ +angular.module('opnfvApp') + .directive('myDirective', function () { + return { + template: '<div></div>', + restrict: 'E', + link: function postLink(scope, element, attrs) { + element.text('this is the myDirective directive'); + } + }; + }); |