graphdb-workbench
Version:
The web application for GraphDB APIs
2 lines • 1.04 kB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[100],{123:function(t,r,o){"use strict";o.r(r);o(2);angular.module("graphdb.framework.stats",["toastr"]).controller("AdminInfoCtrl",["$scope","$http","toastr","$timeout","$jwtAuth",function(t,r,o,e,s){r.get("rest/info/data").success((function(r){t.info=r})).error((function(t){const r=getError(t);o.error(r,"Error")})),t.getReportStatus=function(){r.get("rest/report/status").success((function(r){const o=r.split("|",3);t.status=o[0],t.timestamp=o[1],t.errorMessage=o[2],"IN_PROGRESS"===t.status&&e(t.getReportStatus,3e3)})).error((function(t){const r=getError(t);o.error(r,"Error")}))},t.getReportStatus(),t.getReport=function(){let t="rest/report";s.isAuthenticated()&&(t=t+"?authToken="+encodeURIComponent(s.getAuthToken())),window.open(t)},t.makeReport=function(){r.post("rest/report").success((function(){t.status="IN_PROGRESS",e(t.getReportStatus,2e3)})).error((function(t){const r=getError(t);o.error(r,"Error")}))}}])}}]);
//# sourceMappingURL=100.6e6d69149935cd37d5a7.bundle.js.map