Directory Search API in die Benutzer-/Gruppenimport-Komponente im Angular-Frontend integriert.
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { __decorate, __param } from \"tslib\";\nimport { Component, Inject } from '@angular/core';\nimport { BaseTableComponent } from '../base-table/base-table.component';\nlet GroupTableComponent = class GroupTableComponent extends BaseTableComponent {\n constructor(service, columns, cModeService) {\n super(service, columns, cModeService);\n }\n};\nGroupTableComponent = __decorate([Component({\n selector: 'app-group-table',\n templateUrl: '../base-table/base-table.component.html',\n styleUrl: './group-table.component.css'\n}), __param(1, Inject('GROUP_COMPLETE_TABLE_COLUMNS'))], GroupTableComponent);\nexport { GroupTableComponent };","map":{"version":3,"names":["Component","Inject","BaseTableComponent","GroupTableComponent","constructor","service","columns","cModeService","__decorate","selector","templateUrl","styleUrl","__param"],"sources":["E:\\TekH\\Visual Studio\\WebUserManager\\DigitalData.UserManager.NgWebUI\\ClientApp\\src\\app\\components\\tables\\group-table\\group-table.component.ts"],"sourcesContent":["import { Component, Inject } from '@angular/core';\r\nimport { GroupService } from '../../../services/group.service';\r\nimport { Group } from '../../../models/user-management.api.models';\r\nimport { GuiColumn } from '@generic-ui/ngx-grid';\r\nimport { BaseTableComponent } from '../base-table/base-table.component';\r\n\r\n@Component({\r\n selector: 'app-group-table',\r\n templateUrl: '../base-table/base-table.component.html',\r\n styleUrl: './group-table.component.css'\r\n})\r\nexport class GroupTableComponent extends BaseTableComponent<Group, GroupService> {\r\n constructor(\r\n service: GroupService, @Inject('GROUP_COMPLETE_TABLE_COLUMNS') columns: Array<GuiColumn>, cModeService: ColorModeService) {\r\n super(service, columns, cModeService)\r\n }\r\n}"],"mappings":";AAAA,SAASA,SAAS,EAAEC,MAAM,QAAQ,eAAe;AAIjD,SAASC,kBAAkB,QAAQ,oCAAoC;AAOhE,IAAMC,mBAAmB,GAAzB,MAAMA,mBAAoB,SAAQD,kBAAuC;EAC9EE,YACEC,OAAqB,EAA0CC,OAAyB,EAAEC,YAA8B;IACxH,KAAK,CAACF,OAAO,EAAEC,OAAO,EAAEC,YAAY,CAAC;EACvC;CACD;AALYJ,mBAAmB,GAAAK,UAAA,EAL/BR,SAAS,CAAC;EACTS,QAAQ,EAAE,iBAAiB;EAC3BC,WAAW,EAAE,yCAAyC;EACtDC,QAAQ,EAAE;CACX,CAAC,EAG0BC,OAAA,IAAAX,MAAM,CAAC,8BAA8B,CAAC,E,EAFrDE,mBAAmB,CAK/B","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"ast":null,"code":"import { HttpParams } from '@angular/common/http';\nimport { ApiService } from './user-management.api.service';\nimport { Observable } from 'rxjs/internal/Observable';\nimport Swal from 'sweetalert2';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/common/http\";\nexport class DirUserService extends ApiService {\n constructor(http, userUri) {\n super(http, userUri);\n this.userUri = userUri;\n }\n getAll(groupName) {\n let params = new HttpParams();\n if (groupName) {\n params = params.set('groupName', groupName);\n }\n return new Observable(observer => {\n this.http.get(this.baseUrl, {\n params,\n withCredentials: true\n }).subscribe({\n next: response => {\n if (!response.isSuccess || !response.data) {\n Swal.fire({\n icon: \"error\",\n title: \"Oops...\",\n text: `Active Directory-Verbindung verloren. Bitte melden Sie sich erneut an`\n });\n }\n observer.next(response);\n },\n error: error => {\n observer.error(error);\n },\n complete: () => observer.complete()\n });\n });\n }\n static #_ = this.ɵfac = function DirUserService_Factory(t) {\n return new (t || DirUserService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject('DIR_USER_URL'));\n };\n static #_2 = this.ɵprov = /*@__PURE__*/i0.ɵɵdefineInjectable({\n token: DirUserService,\n factory: DirUserService.ɵfac,\n providedIn: 'root'\n });\n}","map":{"version":3,"names":["HttpParams","ApiService","Observable","Swal","DirUserService","constructor","http","userUri","getAll","groupName","params","set","observer","get","baseUrl","withCredentials","subscribe","next","response","isSuccess","data","fire","icon","title","text","error","complete","_","i0","ɵɵinject","i1","HttpClient","_2","factory","ɵfac","providedIn"],"sources":["E:\\TekH\\Visual Studio\\WebUserManager\\DigitalData.UserManager.NgWebUI\\ClientApp\\src\\app\\services\\dir-user.service.ts"],"sourcesContent":["import { Injectable, Inject } from '@angular/core';\r\nimport { HttpClient, HttpParams } from '@angular/common/http';\r\nimport { DirUser } from '../models/user-management.api.models';\r\nimport { ApiService } from './user-management.api.service';\r\nimport { Observable } from 'rxjs/internal/Observable';\r\nimport { ApiResult } from '../models/api.response.model';\r\nimport Swal from 'sweetalert2';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class DirUserService extends ApiService<DirUser> {\r\n constructor(http: HttpClient, @Inject('DIR_USER_URL') private userUri: string) {\r\n super(http, userUri);\r\n }\r\n\r\n override getAll(groupName?: string): Observable<ApiResult<DirUser[]>> {\r\n let params = new HttpParams();\r\n if (groupName) {\r\n params = params.set('groupName', groupName);\r\n }\r\n\r\n return new Observable(observer => {\r\n this.http.get<ApiResult<DirUser[]>>(this.baseUrl, { params, withCredentials: true })\r\n .subscribe({\r\n next: (response) => {\r\n if(!response.isSuccess || !response.data) {\r\n Swal.fire({\r\n icon: \"error\",\r\n title: \"Oops...\",\r\n text: `Active Directory-Verbindung verloren. Bitte melden Sie sich erneut an`,\r\n });\r\n }\r\n observer.next(response)\r\n },\r\n error: (error) => {\r\n observer.error(error)\r\n },\r\n complete: () => observer.complete()\r\n });\r\n });\r\n }\r\n}"],"mappings":"AACA,SAAqBA,UAAU,QAAQ,sBAAsB;AAE7D,SAASC,UAAU,QAAQ,+BAA+B;AAC1D,SAASC,UAAU,QAAQ,0BAA0B;AAErD,OAAOC,IAAI,MAAM,aAAa;;;AAK9B,OAAM,MAAOC,cAAe,SAAQH,UAAmB;EACrDI,YAAYC,IAAgB,EAAkCC,OAAe;IAC3E,KAAK,CAACD,IAAI,EAAEC,OAAO,CAAC;IADwC,KAAAA,OAAO,GAAPA,OAAO;EAErE;EAESC,MAAMA,CAACC,SAAkB;IAChC,IAAIC,MAAM,GAAG,IAAIV,UAAU,EAAE;IAC7B,IAAIS,SAAS,EAAE;MACbC,MAAM,GAAGA,MAAM,CAACC,GAAG,CAAC,WAAW,EAAEF,SAAS,CAAC;;IAG7C,OAAO,IAAIP,UAAU,CAACU,QAAQ,IAAG;MAC/B,IAAI,CAACN,IAAI,CAACO,GAAG,CAAuB,IAAI,CAACC,OAAO,EAAE;QAAEJ,MAAM;QAAEK,eAAe,EAAE;MAAI,CAAE,CAAC,CACjFC,SAAS,CAAC;QACTC,IAAI,EAAGC,QAAQ,IAAI;UACjB,IAAG,CAACA,QAAQ,CAACC,SAAS,IAAI,CAACD,QAAQ,CAACE,IAAI,EAAE;YACxCjB,IAAI,CAACkB,IAAI,CAAC;cACRC,IAAI,EAAE,OAAO;cACbC,KAAK,EAAE,SAAS;cAChBC,IAAI,EAAE;aACL,CAAC;;UAENZ,QAAQ,CAACK,IAAI,CAACC,QAAQ,CAAC;QACzB,CAAC;QACDO,KAAK,EAAGA,KAAK,IAAI;UACfb,QAAQ,CAACa,KAAK,CAACA,KAAK,CAAC;QACvB,CAAC;QACDC,QAAQ,EAAEA,CAAA,KAAMd,QAAQ,CAACc,QAAQ;OAClC,CAAC;IACN,CAAC,CAAC;EACJ;EAAC,QAAAC,CAAA,G;qBA9BUvB,cAAc,EAAAwB,EAAA,CAAAC,QAAA,CAAAC,EAAA,CAAAC,UAAA,GAAAH,EAAA,CAAAC,QAAA,CACa,cAAc;EAAA;EAAA,QAAAG,EAAA,G;WADzC5B,cAAc;IAAA6B,OAAA,EAAd7B,cAAc,CAAA8B,IAAA;IAAAC,UAAA,EAFb;EAAM","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
{"ast":null,"code":"import { __decorate, __param } from \"tslib\";\nimport { Component, Inject } from '@angular/core';\nimport { BaseTableComponent } from '../base-table/base-table.component';\nlet GroupUserTableComponent = class GroupUserTableComponent extends BaseTableComponent {\n constructor(service, columns, cModeService) {\n super(service, columns, cModeService);\n this.initData = () => this.fetchDataWith(true, true);\n this.loading = false;\n }\n fetchDataWith(withUser, withGroup) {\n this.service.getAll(withUser, withGroup).subscribe({\n next: response => {\n if (response.isSuccess && response.data) {\n this.source = response.data;\n } else {\n // Handle response failure\n console.error('Failed to fetch users');\n }\n },\n error: error => console.error('Error fetching users:', error)\n });\n }\n};\nGroupUserTableComponent = __decorate([Component({\n selector: 'app-group-user-table',\n templateUrl: '../base-table/base-table.component.html',\n styleUrl: './group-user-table.component.css'\n}), __param(1, Inject('GROUP_USER_TABLE_COLUMNS'))], GroupUserTableComponent);\nexport { GroupUserTableComponent };","map":{"version":3,"names":["Component","Inject","BaseTableComponent","GroupUserTableComponent","constructor","service","columns","cModeService","initData","fetchDataWith","loading","withUser","withGroup","getAll","subscribe","next","response","isSuccess","data","source","console","error","__decorate","selector","templateUrl","styleUrl","__param"],"sources":["E:\\TekH\\Visual Studio\\WebUserManager\\DigitalData.UserManager.NgWebUI\\ClientApp\\src\\app\\components\\tables\\group-user-table\\group-user-table.component.ts"],"sourcesContent":["import { Component, Inject } from '@angular/core';\r\nimport { GroupOfUserService } from '../../../services/group-of-user.service';\r\nimport { GroupOfUser } from '../../../models/user-management.api.models';\r\nimport { GuiColumn } from '@generic-ui/ngx-grid';\r\nimport { BaseTableComponent } from '../base-table/base-table.component';\r\n\r\n@Component({\r\n selector: 'app-group-user-table',\r\n templateUrl: '../base-table/base-table.component.html',\r\n styleUrl: './group-user-table.component.css'\r\n})\r\nexport class GroupUserTableComponent extends BaseTableComponent<GroupOfUser, GroupOfUserService> {\r\n constructor(service: GroupOfUserService, @Inject('GROUP_USER_TABLE_COLUMNS') columns: Array<GuiColumn>, cModeService: ColorModeService) {\r\n super(service, columns, cModeService)\r\n this.initData = () => this.fetchDataWith(true,true);\r\n this.loading = false;\r\n }\r\n\r\n fetchDataWith(withUser: boolean, withGroup: boolean){\r\n this.service.getAll(withUser, withGroup).subscribe ({\r\n next: (response) => {\r\n if (response.isSuccess && response.data) {\r\n this.source = response.data;\r\n } else {\r\n // Handle response failure\r\n console.error('Failed to fetch users');\r\n }\r\n },\r\n error: (error) => console.error('Error fetching users:', error)\r\n });\r\n }\r\n}"],"mappings":";AAAA,SAASA,SAAS,EAAEC,MAAM,QAAQ,eAAe;AAIjD,SAASC,kBAAkB,QAAQ,oCAAoC;AAOhE,IAAMC,uBAAuB,GAA7B,MAAMA,uBAAwB,SAAQD,kBAAmD;EAC9FE,YAAYC,OAA2B,EAAsCC,OAAyB,EAAEC,YAA8B;IACpI,KAAK,CAACF,OAAO,EAAEC,OAAO,EAAEC,YAAY,CAAC;IACrC,IAAI,CAACC,QAAQ,GAAG,MAAM,IAAI,CAACC,aAAa,CAAC,IAAI,EAAC,IAAI,CAAC;IACnD,IAAI,CAACC,OAAO,GAAG,KAAK;EACtB;EAEAD,aAAaA,CAACE,QAAiB,EAAEC,SAAkB;IACjD,IAAI,CAACP,OAAO,CAACQ,MAAM,CAACF,QAAQ,EAAEC,SAAS,CAAC,CAACE,SAAS,CAAE;MAClDC,IAAI,EAAGC,QAAQ,IAAI;QACjB,IAAIA,QAAQ,CAACC,SAAS,IAAID,QAAQ,CAACE,IAAI,EAAE;UACvC,IAAI,CAACC,MAAM,GAAGH,QAAQ,CAACE,IAAI;SAC5B,MAAM;UACL;UACAE,OAAO,CAACC,KAAK,CAAC,uBAAuB,CAAC;;MAE1C,CAAC;MACDA,KAAK,EAAGA,KAAK,IAAKD,OAAO,CAACC,KAAK,CAAC,uBAAuB,EAAEA,KAAK;KAC/D,CAAC;EACJ;CACD;AApBYlB,uBAAuB,GAAAmB,UAAA,EALnCtB,SAAS,CAAC;EACTuB,QAAQ,EAAE,sBAAsB;EAChCC,WAAW,EAAE,yCAAyC;EACtDC,QAAQ,EAAE;CACX,CAAC,EAE0CC,OAAA,IAAAzB,MAAM,CAAC,0BAA0B,CAAC,E,EADjEE,uBAAuB,CAoBnC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"ast":null,"code":"import { HttpParams } from '@angular/common/http';\nimport { ApiService } from './user-management.api.service';\nimport { Observable } from 'rxjs/internal/Observable';\nimport Swal from 'sweetalert2';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/common/http\";\nexport class DirUserService extends ApiService {\n constructor(http, userUri) {\n super(http, userUri);\n this.userUri = userUri;\n }\n getAll(groupName) {\n let params = new HttpParams();\n if (groupName) {\n params = params.set('groupName', groupName);\n }\n return new Observable(observer => {\n this.http.get(this.baseUrl, {\n params,\n withCredentials: true\n }).subscribe({\n next: response => {\n if (!response.isSuccess) {\n Swal.fire({\n icon: \"error\",\n title: \"Oops...\",\n text: `Active Directory-Verbindung verloren. Bitte melden Sie sich erneut an`\n });\n }\n observer.next(response);\n },\n error: error => {\n observer.error(error);\n },\n complete: () => observer.complete()\n });\n });\n }\n static #_ = this.ɵfac = function DirUserService_Factory(t) {\n return new (t || DirUserService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject('DIR_USER_URL'));\n };\n static #_2 = this.ɵprov = /*@__PURE__*/i0.ɵɵdefineInjectable({\n token: DirUserService,\n factory: DirUserService.ɵfac,\n providedIn: 'root'\n });\n}","map":{"version":3,"names":["HttpParams","ApiService","Observable","Swal","DirUserService","constructor","http","userUri","getAll","groupName","params","set","observer","get","baseUrl","withCredentials","subscribe","next","response","isSuccess","fire","icon","title","text","error","complete","_","i0","ɵɵinject","i1","HttpClient","_2","factory","ɵfac","providedIn"],"sources":["E:\\TekH\\Visual Studio\\WebUserManager\\DigitalData.UserManager.NgWebUI\\ClientApp\\src\\app\\services\\dir-user.service.ts"],"sourcesContent":["import { Injectable, Inject } from '@angular/core';\r\nimport { HttpClient, HttpParams } from '@angular/common/http';\r\nimport { DirUser } from '../models/user-management.api.models';\r\nimport { ApiService } from './user-management.api.service';\r\nimport { Observable } from 'rxjs/internal/Observable';\r\nimport { ApiResult } from '../models/api.response.model';\r\nimport Swal from 'sweetalert2';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class DirUserService extends ApiService<DirUser> {\r\n constructor(http: HttpClient, @Inject('DIR_USER_URL') private userUri: string) {\r\n super(http, userUri);\r\n }\r\n\r\n override getAll(groupName?: string): Observable<ApiResult<DirUser[]>> {\r\n let params = new HttpParams();\r\n if (groupName) {\r\n params = params.set('groupName', groupName);\r\n }\r\n\r\n return new Observable(observer => {\r\n this.http.get<ApiResult<DirUser[]>>(this.baseUrl, { params, withCredentials: true })\r\n .subscribe({\r\n next: (response) => {\r\n if(!response.isSuccess) {\r\n Swal.fire({\r\n icon: \"error\",\r\n title: \"Oops...\",\r\n text: `Active Directory-Verbindung verloren. Bitte melden Sie sich erneut an`,\r\n });\r\n }\r\n observer.next(response)\r\n },\r\n error: (error) => {\r\n observer.error(error)\r\n },\r\n complete: () => observer.complete()\r\n });\r\n });\r\n }\r\n}"],"mappings":"AACA,SAAqBA,UAAU,QAAQ,sBAAsB;AAE7D,SAASC,UAAU,QAAQ,+BAA+B;AAC1D,SAASC,UAAU,QAAQ,0BAA0B;AAErD,OAAOC,IAAI,MAAM,aAAa;;;AAK9B,OAAM,MAAOC,cAAe,SAAQH,UAAmB;EACrDI,YAAYC,IAAgB,EAAkCC,OAAe;IAC3E,KAAK,CAACD,IAAI,EAAEC,OAAO,CAAC;IADwC,KAAAA,OAAO,GAAPA,OAAO;EAErE;EAESC,MAAMA,CAACC,SAAkB;IAChC,IAAIC,MAAM,GAAG,IAAIV,UAAU,EAAE;IAC7B,IAAIS,SAAS,EAAE;MACbC,MAAM,GAAGA,MAAM,CAACC,GAAG,CAAC,WAAW,EAAEF,SAAS,CAAC;;IAG7C,OAAO,IAAIP,UAAU,CAACU,QAAQ,IAAG;MAC/B,IAAI,CAACN,IAAI,CAACO,GAAG,CAAuB,IAAI,CAACC,OAAO,EAAE;QAAEJ,MAAM;QAAEK,eAAe,EAAE;MAAI,CAAE,CAAC,CACjFC,SAAS,CAAC;QACTC,IAAI,EAAGC,QAAQ,IAAI;UACjB,IAAG,CAACA,QAAQ,CAACC,SAAS,EAAE;YACtBhB,IAAI,CAACiB,IAAI,CAAC;cACRC,IAAI,EAAE,OAAO;cACbC,KAAK,EAAE,SAAS;cAChBC,IAAI,EAAE;aACL,CAAC;;UAENX,QAAQ,CAACK,IAAI,CAACC,QAAQ,CAAC;QACzB,CAAC;QACDM,KAAK,EAAGA,KAAK,IAAI;UACfZ,QAAQ,CAACY,KAAK,CAACA,KAAK,CAAC;QACvB,CAAC;QACDC,QAAQ,EAAEA,CAAA,KAAMb,QAAQ,CAACa,QAAQ;OAClC,CAAC;IACN,CAAC,CAAC;EACJ;EAAC,QAAAC,CAAA,G;qBA9BUtB,cAAc,EAAAuB,EAAA,CAAAC,QAAA,CAAAC,EAAA,CAAAC,UAAA,GAAAH,EAAA,CAAAC,QAAA,CACa,cAAc;EAAA;EAAA,QAAAG,EAAA,G;WADzC3B,cAAc;IAAA4B,OAAA,EAAd5B,cAAc,CAAA6B,IAAA;IAAAC,UAAA,EAFb;EAAM","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|
||||
@@ -0,0 +1 @@
|
||||
{"ast":null,"code":"import { ApiService } from './user-management.api.service';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/common/http\";\nexport class DirGroupService extends ApiService {\n constructor(http, userUri) {\n super(http, userUri);\n this.userUri = userUri;\n }\n getAll() {\n return super.getAll();\n }\n static #_ = this.ɵfac = function DirGroupService_Factory(t) {\n return new (t || DirGroupService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject('DIR_GROUP_URL'));\n };\n static #_2 = this.ɵprov = /*@__PURE__*/i0.ɵɵdefineInjectable({\n token: DirGroupService,\n factory: DirGroupService.ɵfac,\n providedIn: 'root'\n });\n}","map":{"version":3,"names":["ApiService","DirGroupService","constructor","http","userUri","getAll","_","i0","ɵɵinject","i1","HttpClient","_2","factory","ɵfac","providedIn"],"sources":["E:\\TekH\\Visual Studio\\WebUserManager\\DigitalData.UserManager.NgWebUI\\ClientApp\\src\\app\\services\\dir-group.service.ts"],"sourcesContent":["import { Injectable, Inject } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { DirGroup } from '../models/user-management.api.models';\r\nimport { ApiService } from './user-management.api.service';\r\nimport { ApiResult } from '../models/api.response.model';\r\nimport { Observable } from 'rxjs/internal/Observable';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class DirGroupService extends ApiService<DirGroup> {\r\n constructor(http: HttpClient, @Inject('DIR_GROUP_URL') private userUri: string) {\r\n super(http, userUri);\r\n }\r\n\r\n override getAll(): Observable<ApiResult<DirGroup[]>> {\r\n return super.getAll()\r\n }\r\n}"],"mappings":"AAGA,SAASA,UAAU,QAAQ,+BAA+B;;;AAO1D,OAAM,MAAOC,eAAgB,SAAQD,UAAoB;EACvDE,YAAYC,IAAgB,EAAmCC,OAAe;IAC5E,KAAK,CAACD,IAAI,EAAEC,OAAO,CAAC;IADyC,KAAAA,OAAO,GAAPA,OAAO;EAEtE;EAESC,MAAMA,CAAA;IACb,OAAO,KAAK,CAACA,MAAM,EAAE;EACvB;EAAC,QAAAC,CAAA,G;qBAPUL,eAAe,EAAAM,EAAA,CAAAC,QAAA,CAAAC,EAAA,CAAAC,UAAA,GAAAH,EAAA,CAAAC,QAAA,CACY,eAAe;EAAA;EAAA,QAAAG,EAAA,G;WAD1CV,eAAe;IAAAW,OAAA,EAAfX,eAAe,CAAAY,IAAA;IAAAC,UAAA,EAFd;EAAM","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"ast":null,"code":"import { ApiService } from './user-management.api.service';\nimport { Observable } from 'rxjs/internal/Observable';\nimport Swal from 'sweetalert2';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/common/http\";\nexport class DirGroupService extends ApiService {\n constructor(http, userUri) {\n super(http, userUri);\n this.userUri = userUri;\n }\n getAll() {\n return new Observable(observer => {\n super.getAll().subscribe({\n next: response => {\n if (!response.isSuccess || !response.data) {\n Swal.fire({\n icon: \"error\",\n title: \"Oops...\",\n text: `Active Directory-Verbindung verloren. Bitte melden Sie sich erneut an`\n });\n }\n observer.next(response);\n },\n error: error => {\n observer.error(error);\n },\n complete: () => observer.complete()\n });\n });\n }\n static #_ = this.ɵfac = function DirGroupService_Factory(t) {\n return new (t || DirGroupService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject('DIR_GROUP_URL'));\n };\n static #_2 = this.ɵprov = /*@__PURE__*/i0.ɵɵdefineInjectable({\n token: DirGroupService,\n factory: DirGroupService.ɵfac,\n providedIn: 'root'\n });\n}","map":{"version":3,"names":["ApiService","Observable","Swal","DirGroupService","constructor","http","userUri","getAll","observer","subscribe","next","response","isSuccess","data","fire","icon","title","text","error","complete","_","i0","ɵɵinject","i1","HttpClient","_2","factory","ɵfac","providedIn"],"sources":["E:\\TekH\\Visual Studio\\WebUserManager\\DigitalData.UserManager.NgWebUI\\ClientApp\\src\\app\\services\\dir-group.service.ts"],"sourcesContent":["import { Injectable, Inject } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { DirGroup, DirUser } from '../models/user-management.api.models';\r\nimport { ApiService } from './user-management.api.service';\r\nimport { ApiResult } from '../models/api.response.model';\r\nimport { Observable } from 'rxjs/internal/Observable';\r\nimport Swal from 'sweetalert2';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class DirGroupService extends ApiService<DirGroup> {\r\n constructor(http: HttpClient, @Inject('DIR_GROUP_URL') private userUri: string) {\r\n super(http, userUri);\r\n }\r\n\r\n override getAll(): Observable<ApiResult<DirGroup[]>> {\r\n return new Observable(observer => {\r\n super.getAll()\r\n .subscribe({\r\n next: (response) => {\r\n if(!response.isSuccess || !response.data) {\r\n Swal.fire({\r\n icon: \"error\",\r\n title: \"Oops...\",\r\n text: `Active Directory-Verbindung verloren. Bitte melden Sie sich erneut an`,\r\n });\r\n }\r\n observer.next(response)\r\n },\r\n error: (error) => {\r\n observer.error(error)\r\n },\r\n complete: () => observer.complete()\r\n });\r\n });\r\n }\r\n}"],"mappings":"AAGA,SAASA,UAAU,QAAQ,+BAA+B;AAE1D,SAASC,UAAU,QAAQ,0BAA0B;AACrD,OAAOC,IAAI,MAAM,aAAa;;;AAK9B,OAAM,MAAOC,eAAgB,SAAQH,UAAoB;EACvDI,YAAYC,IAAgB,EAAmCC,OAAe;IAC5E,KAAK,CAACD,IAAI,EAAEC,OAAO,CAAC;IADyC,KAAAA,OAAO,GAAPA,OAAO;EAEtE;EAESC,MAAMA,CAAA;IACb,OAAO,IAAIN,UAAU,CAACO,QAAQ,IAAG;MAC/B,KAAK,CAACD,MAAM,EAAE,CACXE,SAAS,CAAC;QACTC,IAAI,EAAGC,QAAQ,IAAI;UACjB,IAAG,CAACA,QAAQ,CAACC,SAAS,IAAI,CAACD,QAAQ,CAACE,IAAI,EAAE;YACxCX,IAAI,CAACY,IAAI,CAAC;cACRC,IAAI,EAAE,OAAO;cACbC,KAAK,EAAE,SAAS;cAChBC,IAAI,EAAE;aACL,CAAC;;UAENT,QAAQ,CAACE,IAAI,CAACC,QAAQ,CAAC;QACzB,CAAC;QACDO,KAAK,EAAGA,KAAK,IAAI;UACfV,QAAQ,CAACU,KAAK,CAACA,KAAK,CAAC;QACvB,CAAC;QACDC,QAAQ,EAAEA,CAAA,KAAMX,QAAQ,CAACW,QAAQ;OAClC,CAAC;IACN,CAAC,CAAC;EACJ;EAAC,QAAAC,CAAA,G;qBAzBUjB,eAAe,EAAAkB,EAAA,CAAAC,QAAA,CAAAC,EAAA,CAAAC,UAAA,GAAAH,EAAA,CAAAC,QAAA,CACY,eAAe;EAAA;EAAA,QAAAG,EAAA,G;WAD1CtB,eAAe;IAAAuB,OAAA,EAAfvB,eAAe,CAAAwB,IAAA;IAAAC,UAAA,EAFd;EAAM","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user