UNPKG

graphdb-workbench

Version:
2 lines 1.21 kB
export const __webpack_esm_id__=70884;export const __webpack_esm_ids__=[5759,70884];export const __webpack_esm_modules__={5759(e,r,t){t.d(r,{a:()=>o});class o{constructor(e){this.graphQLPlaygroundComponent=e}setLanguage(e){this.graphQLPlaygroundComponent.setLanguage(e)}setEditorsTheme(e){this.graphQLPlaygroundComponent.setEditorsTheme(e)}}},70884(e,r,t){var o=t(5759),a=t(57154);function n(e,r,t,n){return{restrict:"E",templateUrl:"js/angular/core/directives/graphql-playground/templates/graphql-playground.html",scope:{configuration:"="},link:(s,i,g)=>{const p=(0,a.service)(a.ThemeService);s.getGraphQLPlaygroundComponent=()=>new o.a(c()[0]),s.abortQuery=o=>{const a=e.getActiveRepository(),s=o.detail.headers["X-GraphDB-Track-Alias"];n.info(r.instant("graphql.playground.message.abort_query")),t.deleteQuery(s,a)};const c=()=>i.find("graphql-playground-component");s.configuration.editorsThemeName||(s.configuration.editorsThemeName=p.getCodeEditorThemeName())}}}angular.module("graphdb.framework.core.directives.graphql-playground",[]).directive("graphqlPlayground",n),n.$inject=["$repositories","$translate","MonitoringRestService","toastr"]}}; //# sourceMappingURL=70884.7e1e7ff633cb4e4b6043.bundle.js.map