graphdb-workbench
Version:
The web application for GraphDB APIs
2 lines • 1.22 kB
JavaScript
export const __webpack_esm_id__=77090;export const __webpack_esm_ids__=[77090];export const __webpack_esm_modules__={77090:(t,e,r)=>{r(82493);var o=r(57154);angular.module("graphdb.framework.stats",["toastr"]).controller("AdminInfoCtrl",["$scope","$http","toastr","$timeout","$jwtAuth","$translate","AuthTokenService",function(t,e,r,n,s,c,a){const u=(0,o.service)(o.AuthenticationService);e.get("rest/info/data").success(function(e){t.info=e}).error(function(t){const e=getError(t);r.error(e,c.instant("common.error"))}),t.getReportStatus=function(){e.get("rest/report/status").success(function(e){const r=e.split("|",3);t.status=r[0],t.timestamp=r[1],t.errorMessage=r[2],"IN_PROGRESS"===t.status&&n(t.getReportStatus,3e3)}).error(function(t){const e=getError(t);r.error(e,c.instant("common.error"))})},t.getReportStatus(),t.getReport=function(){let t="rest/report";u.isAuthenticated()&&(t=t+"?authToken="+encodeURIComponent(a.getAuthToken())),window.open(t)},t.makeReport=function(){e.post("rest/report").success(function(){t.status="IN_PROGRESS",n(t.getReportStatus,2e3)}).error(function(t){const e=getError(t);r.error(e,c.instant("common.error"))})}}])}};
//# sourceMappingURL=77090.7cc10bbf36bcf524e8d9.bundle.js.map