forked from Sunbird-cQube/cQube_Edu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Sunbird-cQube#254 from atulmane01/development
added map for udise and pgi
- Loading branch information
Showing
14 changed files
with
239 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...p/views/school-education/pages/implementation-status/implementation-status.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
<div class="grid grid-cols-12"> | ||
<div class="col-span-full" *ngIf="pgiStateData" appFullScreen> | ||
<app-leaflet-map [mapData]="pgiStateData"></app-leaflet-map> | ||
<ngx-spinner bdColor = "rgba(0, 0, 0, 0.8)" size = "medium" color = "#fff" type = "ball-scale-multiple" [fullScreen] = "true"><p style="color: white" > Loading... </p></ngx-spinner> | ||
</div> | ||
<div class="col" *ngIf="isMapReport1Loading"> | ||
<!-- <ngx-spinner bdColor = "rgba(0, 0, 0, 0.8)" size = "medium" color = "#fff" type = "ball-scale-multiple" [fullScreen] = "true"><p style="color: white" > Loading... </p></ngx-spinner> --> | ||
<p class="mt-8 mb-8">Loading...</p> | ||
</div> | ||
</div> |
Empty file.
23 changes: 23 additions & 0 deletions
23
...iews/school-education/pages/implementation-status/implementation-status.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { ImplementationStatusComponent } from './implementation-status.component'; | ||
|
||
describe('ImplementationStatusComponent', () => { | ||
let component: ImplementationStatusComponent; | ||
let fixture: ComponentFixture<ImplementationStatusComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ ImplementationStatusComponent ] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(ImplementationStatusComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
45 changes: 45 additions & 0 deletions
45
...app/views/school-education/pages/implementation-status/implementation-status.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { NgxSpinnerService } from 'ngx-spinner'; | ||
import { IReportDataPayload } from 'src/app/core/models/IReportDataPayload'; | ||
import { CommonService } from 'src/app/core/services/common/common.service'; | ||
import { ConfigService } from 'src/app/core/services/config/config.service'; | ||
import { environment } from 'src/environments/environment'; | ||
|
||
@Component({ | ||
selector: 'app-implementation-status', | ||
templateUrl: './implementation-status.component.html', | ||
styleUrls: ['./implementation-status.component.scss'] | ||
}) | ||
export class ImplementationStatusComponent implements OnInit { | ||
isMapReport1Loading = true; | ||
filters: any; | ||
pgiStateData: any; | ||
|
||
constructor(private readonly _commonService: CommonService, private readonly _spinner:NgxSpinnerService) { | ||
this.getImplementationStatus(this.filters) | ||
} | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
getImplementationStatus(filters: any): void { | ||
let data: IReportDataPayload = { | ||
appName: environment.config.toLowerCase(), | ||
dataSourceName: 'pgi', | ||
reportName: 'implementationStatus', | ||
reportType: 'map', | ||
stateCode: environment.stateCode, | ||
filters | ||
}; | ||
|
||
this._commonService.getReportData(data).subscribe(res => { | ||
this._spinner.hide() | ||
this.isMapReport1Loading = false; | ||
this.pgiStateData = res.result; | ||
this.filters = res.result.filters; | ||
}, err => { | ||
this.isMapReport1Loading = false; | ||
}); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
.../app/views/school-registry/pages/implementationstatus/implementationstatus.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<div class="grid grid-cols-12"> | ||
<div class="col-span-full" *ngIf="pgiStateData" appFullScreen> | ||
<app-leaflet-map [mapData]="pgiStateData"></app-leaflet-map> | ||
<ngx-spinner bdColor = "rgba(0, 0, 0, 0.8)" size = "medium" color = "#fff" type = "ball-scale-multiple" [fullScreen] = "true"><p style="color: white" > Loading... </p></ngx-spinner> | ||
</div> | ||
<div class="col" *ngIf="isMapReport1Loading"> | ||
<!-- <ngx-spinner bdColor = "rgba(0, 0, 0, 0.8)" size = "medium" color = "#fff" type = "ball-scale-multiple" [fullScreen] = "true"><p style="color: white" > Loading... </p></ngx-spinner> --> | ||
<p class="mt-8 mb-8">Loading...</p> | ||
</div> | ||
</div> |
Empty file.
23 changes: 23 additions & 0 deletions
23
...p/views/school-registry/pages/implementationstatus/implementationstatus.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { ImplementationstatusComponent } from './implementationstatus.component'; | ||
|
||
describe('ImplementationstatusComponent', () => { | ||
let component: ImplementationstatusComponent; | ||
let fixture: ComponentFixture<ImplementationstatusComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ ImplementationstatusComponent ] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(ImplementationstatusComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
45 changes: 45 additions & 0 deletions
45
...rc/app/views/school-registry/pages/implementationstatus/implementationstatus.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { NgxSpinnerService } from 'ngx-spinner'; | ||
import { IReportDataPayload } from 'src/app/core/models/IReportDataPayload'; | ||
import { CommonService } from 'src/app/core/services/common/common.service'; | ||
import { ConfigService } from 'src/app/core/services/config/config.service'; | ||
import { environment } from 'src/environments/environment'; | ||
|
||
@Component({ | ||
selector: 'app-implementationstatus', | ||
templateUrl: './implementationstatus.component.html', | ||
styleUrls: ['./implementationstatus.component.scss'] | ||
}) | ||
export class ImplementationstatusComponent implements OnInit { | ||
isMapReport1Loading = true; | ||
filters: any; | ||
pgiStateData: any; | ||
|
||
constructor(private readonly _commonService: CommonService, private readonly _spinner:NgxSpinnerService) { | ||
this.getImplementationStatus(this.filters) | ||
} | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
getImplementationStatus(filters: any): void { | ||
let data: IReportDataPayload = { | ||
appName: environment.config.toLowerCase(), | ||
dataSourceName: 'udise', | ||
reportName: 'implementationStatus', | ||
reportType: 'map', | ||
stateCode: environment.stateCode, | ||
filters | ||
}; | ||
|
||
this._commonService.getReportData(data).subscribe(res => { | ||
this._spinner.hide() | ||
this.isMapReport1Loading = false; | ||
this.pgiStateData = res.result; | ||
this.filters = res.result.filters; | ||
}, err => { | ||
this.isMapReport1Loading = false; | ||
}); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters