diff options
Diffstat (limited to '3rd_party/static/testapi-ui/components/home')
-rw-r--r-- | 3rd_party/static/testapi-ui/components/home/home.html | 142 | ||||
-rw-r--r-- | 3rd_party/static/testapi-ui/components/home/homeController.js | 58 |
2 files changed, 200 insertions, 0 deletions
diff --git a/3rd_party/static/testapi-ui/components/home/home.html b/3rd_party/static/testapi-ui/components/home/home.html new file mode 100644 index 0000000..184980b --- /dev/null +++ b/3rd_party/static/testapi-ui/components/home/home.html @@ -0,0 +1,142 @@ +<div class="container-fluid"> + <div class="row"> + <div class="col-md-2 home-category" ng-style="{'height': ctrl.height}"> + <div class="panel-group" id="accordion"> + <div class="panel panel-default"> + <div class="panel-heading"> + <div class="panel-title"> + <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne"> + Governance & Workflow + </a> + </div> + </div> + <div id="collapseOne" class="panel-collapse collapse"> + <div class="panel-body"> + <div><a href="https://www.opnfv.org/verified" target="_blank">Overview <span class="glyphicon glyphicon-new-window" aria-hidden="true"></span></a></div> + <div><a href="https://www.opnfv.org/wp-content/uploads/sites/12/2018/01/OVP-Governance-Guidelines-1.0.1-012218.pdf" target="_blank">Governance Guidelines <span class="glyphicon glyphicon-new-window" aria-hidden="true"></span></a></div> + <div><a href="https://www.opnfv.org/wp-content/uploads/sites/12/2018/01/OVP-Terms-and-Conditions-011918.pdf" target="_blank">Terms & Conditions <span class="glyphicon glyphicon-new-window" aria-hidden="true"></span></a></div> + <div><a href="http://docs.opnfv.org/en/stable-danube/submodules/dovetail/docs/testing/user/certificationworkflow/index.html + " target="_blank">Process Workflow <span class="glyphicon glyphicon-new-window" aria-hidden="true"></span></a></div> + <div><a href="https://na3.docusign.net/Member/PowerFormSigning.aspx?PowerFormId=579ac00d-0a1f-4db3-82ea-ddd977769a60" target="_blank">Participation Form <span class="glyphicon glyphicon-new-window" aria-hidden="true"></span></a></div> + <!-- + <div><a target="_blank">Approved 3rd Party Labs <span class="glyphicon glyphicon-new-window" aria-hidden="true"></span></a></div> + --> + </div> </div> + </div> + <div class="panel panel-default" style="margin-top:0px"> + <div class="panel-heading"> + <div class="panel-title"> + <a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo"> + Training Resources + </a> + </div> + </div> + <div id="collapseTwo" class="panel-collapse collapse"> + <div class="panel-body"> + <div><a href="http://docs.opnfv.org/en/stable-danube/submodules/dovetail/docs/testing/user/userguide/testing_guide.html + " target="_blank">OVP / Dovetail User Guide <span class="glyphicon glyphicon-new-window" aria-hidden="true"></span></a></div> + <!-- + <div><a href="https://wiki.opnfv.org/download/attachments/11698759/Dovetail%20CVP%20Tutorial.ppt?version=2&modificationDate=1508175962000&api=v2 + " target="_blank">OVP / Dovetail Tutorial Slides <span class="glyphicon glyphicon-new-window" aria-hidden="true"></span></a></div> + --> + <div><a href="http://docs.opnfv.org/en/stable-danube/submodules/dovetail/docs/testing/user/userguide/cli_reference.html + " target="_blank">Dovetail CLI <span class="glyphicon glyphicon-new-window" aria-hidden="true"></span></a></div> + <div><a href="http://docs.opnfv.org/en/stable-danube/submodules/dovetail/docs/testing/user/testspecification" target="_blank">Test Specifications <span class="glyphicon glyphicon-new-window" aria-hidden="true"></span></a></div> + </div> + </div> + </div> + <div class="panel panel-default" style="margin-top:0px"> + <div class="panel-heading"> + <div class="panel-title"> + <a data-toggle="collapse" data-parent="#accordion" href="#collapseThree"> + Release Information + </a> + </div> + </div> + <div id="collapseThree" class="panel-collapse collapse"> + <div class="panel-body"> + <div><a href="http://docs.opnfv.org/en/stable-danube/submodules/dovetail/docs/release/release-notes/index.html + " target="_blank">2018.01 Release Notes <span class="glyphicon glyphicon-new-window" aria-hidden="ture"></span></a></div> + <div><a href="http://docs.opnfv.org/en/stable-danube/submodules/dovetail/docs/testing/user/reviewerguide/index.html + " target="_blank">2018.01 Reviewer Guide <span class="glyphicon glyphicon-new-window" aria-hidden="true"></span></a></div> + <div><a href="http://docs.opnfv.org/en/stable-danube/submodules/dovetail/docs/testing/user/ovpaddendum/index.html + " target="_blank">2018.01 Guidelines Addendum <span class="glyphicon glyphicon-new-window" aria-hidden="true"></span></a></div> + <div><a href="https://www.opnfv.org/wp-content/uploads/sites/12/2018/05/OPNFV_Verified_BrandGuide_021618.pdf + " target="_blank">OPNFV Verified Brand Guidelines <span class="glyphicon glyphicon-new-window" aria-hidden="true"></span></a></div> + <!-- + <div><a target="_blank">FAQ</a></div> + <div><a target="_blank">Known issues</a></div> + <div><a target="_blank">Dovetail and dependent container versioning</a></div> + <div><a target="_blank">Other - TBD</a></div> + --> + </div> + </div> + </div> + <!-- + <div class="panel panel-default" style="margin-top:0px"> + <div class="panel-heading"> + <div class="panel-title"> + <a data-toggle="collapse" data-parent="#accordion" href="#collapseFour"> + OVP Registry + </a> + </div> + </div> + <div id="collapseFour" class="panel-collapse collapse"> + <div class="panel-body"> + </div> + </div> + </div> + --> + </div> + </div> + + <div class="col-md-10"> + <div class="common-main-container"> + <div class="home-content-title"> + <h1>OPNFV is offering an OPNFV Verified Program (OVP) that verifies products and services with the "OPNFV Verified" mark.</h1> + </div> + <div class="home-content"> + <div class="col-md-2"> + <img class="home-content-img" src="testapi-ui/assets/img/icon.png" /> + </div> + <div class="col-md-10"> + <p class="home-content-text" style="padding-bottom:40px;"> + The OPNFV Verified program demonstrates the readiness and availability of commercial products based on OPNFV. + Verified products and services submitted by vendors and service providers become compliant by implementing explicitly defined interfaces, + behaviors and key features while retaining distinct and value-added innovations across features and capabilities. + Navigate through the links in the left-hand menu to learn more and get started. You'll find step-step-instructions as well as a participation form. + Use this portal to upload your test results when ready. Please send any questions to verified@opnfv.org<sup><span class="glyphicon glyphicon-envelope" style="font-size:60%;" aria-hidden="true"></span></sup>. + </p> + </div> + </div> + <div id="directory_break"> + </div> + <div class="home-content-title"> + <h1>OPNFV Verified Products Directory</h1> + Click on rows for more product verification details per company. + </div> + <div class="directory_main"> + <table id="directory_inner" class=""> + <thead> + <tr> + <th>Company</th> + <th>Product</th> + <th>Cateogry</th> + <th>Version</th> + </tr> + </thead> + <tbody style="overflow: hidden; text-overflow: ellipsis;"> + <tr class="company_row" ng-click="ctrl.getCompany(app)" ng-repeat="app in ctrl.applications | filter:{approved:true} | orderBy : 'approve_date'"> + <td width="400"><img class="company_logo" src="api/v1/cvp/applications/getlogo/{{app.company_logo}}" />{{ app.organization_name}}</td> + <td width="300">{{ app.product_name}}</td> + <td width="150">{{ app.ovp_category}}</td> + <td width="150">{{ app.ovp_version}}</td> + </tr> + </tbody> + </table> + </div> + + </div> + </div> + </div> +</div> diff --git a/3rd_party/static/testapi-ui/components/home/homeController.js b/3rd_party/static/testapi-ui/components/home/homeController.js new file mode 100644 index 0000000..bed86ab --- /dev/null +++ b/3rd_party/static/testapi-ui/components/home/homeController.js @@ -0,0 +1,58 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +(function () { + 'use strict'; + + angular + .module('testapiApp') + .controller('HomeController', HomeController); + + HomeController.$inject = [ + '$http', '$scope', '$rootScope', '$state', 'testapiApiUrl' + ]; + + /** + * TestAPI Results Controller + * This controller is for the '/results' page where a user can browse + * a listing of community uploaded results. + */ + function HomeController($http, $scope, $rootScope, $state, testapiApiUrl) { + var ctrl = this; + getApplication(); + + ctrl.height = $(document).height() + 500; + + ctrl.gotoApplication = function(){ + if($rootScope.auth.isAuthenticated){ + $state.go('application'); + }else{ + $rootScope.auth.doSignIn('cas'); + } + } + + function getApplication(){ + $http.get(testapiApiUrl + "/cvp/applications").then(function(response){ + ctrl.applications = response.data.applications; + }, function(error){ + }); + } + + ctrl.getCompany = function(row){ + //console.log(row) + $state.go('directory', {'companyID': row.organization_name, 'logo': row.company_logo}); + } + + } +})(); |