Skip to content

Commit

Permalink
Notify when preview cannot be opened
Browse files Browse the repository at this point in the history
  • Loading branch information
alombarte committed Mar 12, 2024
1 parent 0d9d05e commit e3d02ee
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/app/designer.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ angular
var newWindow = window.open();
if (newWindow.document) {
newWindow.document.write('<pre>' + angular.toJson(save, true) + '</pre>');
} else {
alert("Your browser prevented to open the configuration in a new window.");
}
$rootScope.saved_once = true;
};
Expand Down
2 changes: 1 addition & 1 deletion src/app/layout/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ <h4 class="modal-title">KrakenD Enterprise features</h4>
<a href="https://www.krakend.io">
<img class="footer-logo" src="https://www.krakend.io/images/logo-inverse.png">
</a>
<p>Copyright © 2017-2023 KRAKEND S.L</p>
<p>Copyright © 2017-2024 KRAKEND S.L</p>
</div>
<div class="col-md-6">
<p class="lead">
Expand Down
3 changes: 2 additions & 1 deletion src/app/metrics/opencensus.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
<div class="box-header with-border">
<h3 class="box-title"><input type="checkbox"
ng-checked="isMiddlewareEnabled()"
ng-click="toggleOpencensusMiddleware()"> Opencensus (DEPRECATED)
ng-click="toggleOpencensusMiddleware()"> Opencensus
</h3>
<div class="pull-right" ng-include src="'/src/app/layout/docs.html'" ng-repeat="doc in [{'ee': false, 'url':'/telemetry/opencensus/'}]"></div>
</div>
<div class="box-body">
<p ng-if="!isMiddlewareEnabled()">The Opencensus <em>middleware</em> provides several integrations to export tracing and metrics to different third party systems.</p>
<div ng-if="isMiddlewareEnabled()">
<p class="box box-danger text-lg">The development of this component is frozen. Use OpenTelemetry for new projects instead.</p>
<div class="form-group">
<div class="checkbox">
<label>
Expand Down
6 changes: 3 additions & 3 deletions src/app/middlewares/metrics.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<div class="box box-info box-solid">
<div class="box-header with-border">
<h3 class="box-title"><input type="checkbox" ng-checked="isMiddlewareEnabled()" ng-click="toggleMiddleware()">
Metrics</h3>
Metrics API</h3>
<div class="pull-right" ng-include src="'/src/app/layout/docs.html'" ng-repeat="doc in [{'ee': false, 'url':'/telemetry/extended-metrics/'}]"></div>
</div>

<div class="box-body">
<p ng-if="!isMiddlewareEnabled()">The metrics <em>middleware</em> listens in a new address and exposes a
<p ng-if="!isMiddlewareEnabled()">The metrics API listens in a new address and exposes a
<code>/__stats/</code> endpoint with all the KrakenD metrics.</p>
<div ng-if="isMiddlewareEnabled()">
<div class="form-group">
<div class="checkbox">
<label>
<input type="checkbox" ng-model="data.extra_config[config_namespace].endpoint_disabled">
<strong>Disable /__stats/ endpoint</strong> - Metrics won't be published but still collected.
<strong>Disable <code>/__stats/</code> endpoint</strong> - Metrics won't be published but still collected (can be sent to InfluxDB).
</label>
</div>
<div class="checkbox">
Expand Down

0 comments on commit e3d02ee

Please sign in to comment.