risdenk commented on a change in pull request #263: KNOX-2226 - Add home page to Knox URL: https://github.com/apache/knox/pull/263#discussion_r385312439
########## File path: knox-homepage-ui/homepage/app/generalProxyInformation/general.proxy.information.component.ts ########## @@ -0,0 +1,113 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You 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. + */ +import {Component, OnInit} from '@angular/core'; +import {HomepageService} from '../homepage.service'; +import {GeneralProxyInformation} from './general.proxy.information'; + +@Component({ + selector: 'app-general-proxy-information', + template: ` + <h4>General Proxy Information</h4> + <div class="table-responsive"> + <table class="table table-striped table-hover"> + <tbody> + <tr> + <td>Knox Version</td> + <td>{{ getVersion() }}</td> + </tr> + <tr> + <td>TLS Public Certificate</td> + <td> + <a href="{{ getMetadataAPIUrl('publicCert?type=pem') }}">PEM</a> + | + <a href="{{ getMetadataAPIUrl('publicCert?type=jks') }}">JKS</a> + </td> + </tr> + <tr> + <td>Admin UI URL</td> + <td><a href="{{ getAdminUiUrl() }}" target="_blank">{{ getAdminUiUrl() }}</a></td> + </tr> + <tr> + <td> + Admin API Details + <span class="inline-glyph glyphicon glyphicon-info-sign btn btn-xs" + title="{{ getAdminApiDescription() }}" data-toggle="tooltip"></span> + </td> + <td> + <a href="{{ getAdminApiBookUrl() }}" target="_blank">{{ getAdminApiBookUrl() }}</a> + </td> + </tr> + <tr> + <td> + Metadata API + </td> + <td> + <a href="{{ getMetadataAPIUrl('info') }}" target="_blank">General Proxy Information</a> + | + <a href="{{ getMetadataAPIUrl('topologies') }}" target="_blank">Topologies</a> + </td> Review comment: nit: I think in theory this can be in a separate file? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
