Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
Empty file modified src/app/_helper/Requests.model.ts
100644 → 100755
Empty file.
Empty file modified src/app/_helper/Users.model.ts
100644 → 100755
Empty file.
Empty file modified src/app/_helper/constants.ts
100644 → 100755
Empty file.
Empty file modified src/app/_helper/names.ts
100644 → 100755
Empty file.
Empty file modified src/app/auth.guard.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/auth.guard.ts
100644 → 100755
Empty file.
Empty file modified src/app/auth.service.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/auth.service.ts
100644 → 100755
Empty file.
92 changes: 48 additions & 44 deletions src/app/http.service.ts
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -23,121 +23,125 @@ export class HttpService {

//Donor Apis

getUsers(){
getUsers() {
return this.http.get(environment.NODE_HOST + '/getUsers', this.httpOptions);
}

getTransactions(ngoid){
getTransactions(ngoid) {
const payload = ngoid
return this.http.post(environment.NODE_HOST + '/getTransactions',{ NGOId: payload }, this.httpOptions);
return this.http.post(environment.NODE_HOST + '/getTransactions', { NGOId: payload }, this.httpOptions);
}

updateTransaction(tId, status,key){
updateTransaction(tId, status, key) {
const payload = tId
const statusPayload = status
const payloadkey = key
return this.http.post(environment.NODE_HOST + '/updateTransaction',{ tId: payload, status: statusPayload,key:payloadkey}, this.httpOptions);
return this.http.post(environment.NODE_HOST + '/updateTransaction', { tId: payload, status: statusPayload, key: payloadkey }, this.httpOptions);
}

getDonorLogin(userdata){
getDonorLogin(userdata) {
const regno = userdata.regno;
const password = userdata.password;
return this.http.post(environment.NODE_HOST + '/getDonorLogin',{ regno: Number(regno),pass: Number(password) }, this.httpOptions);
return this.http.post(environment.NODE_HOST + '/getDonorLogin', { regno: Number(regno), pass: Number(password) }, this.httpOptions);
}

getUserRequest(ngoId){
getUserRequest(ngoId) {
const payload = JSON.stringify(ngoId)
return this.http.post(environment.NODE_HOST + '/getUserRequest',{ NGOId: payload }, this.httpOptions);
return this.http.post(environment.NODE_HOST + '/getUserRequest', { NGOId: payload }, this.httpOptions);
}

getFamilyLatLng(id){
getFamilyLatLng(id) {
const idPayload = id;
return this.http.post(environment.NODE_HOST + '/getFamilyLatLng',{NGOId: idPayload}, this.httpOptions);
return this.http.post(environment.NODE_HOST + '/getFamilyLatLng', { NGOId: idPayload }, this.httpOptions);
}
getFamilyLatLngForGovernment(){
getFamilyLatLngForGovernment() {
return this.http.get(environment.NODE_HOST + '/getFamilyLatLngForGovernment', this.httpOptions);
}

getNGOLatLng(){
getNGOLatLng() {
return this.http.get(environment.NODE_HOST + '/getNGOLatLng', this.httpOptions);
}

getNGOCapacity(name){
getNGOs() {
return this.http.get(environment.NODE_HOST + '/getNGOs', this.httpOptions);
}

getNGOCapacity(name) {
const payload = name
return this.http.post(environment.NODE_HOST + '/getNGOCapacity',{ NGOId: payload }, this.httpOptions);
return this.http.post(environment.NODE_HOST + '/getNGOCapacity', { NGOId: payload }, this.httpOptions);
}

getNGOBeneficiaries(id){
getNGOBeneficiaries(id) {
const payload = id
return this.http.post(environment.NODE_HOST + '/getNGOBeneficiaries',{ NGOId: payload }, this.httpOptions);
return this.http.post(environment.NODE_HOST + '/getNGOBeneficiaries', { NGOId: payload }, this.httpOptions);
}
getNGOUnprocessedRequests(){
getNGOUnprocessedRequests() {
return this.http.get(environment.NODE_HOST + '/getNGOUnprocessedRequests', this.httpOptions);

}

getRequestStatusCountForNGO(regno){
getRequestStatusCountForNGO(regno) {
const payload = regno
return this.http.post(environment.NODE_HOST + '/getRequestStatusCountForNGO',{ regno: payload }, this.httpOptions);
return this.http.post(environment.NODE_HOST + '/getRequestStatusCountForNGO', { regno: payload }, this.httpOptions);

}

getRequestDateChart(regno){
getRequestDateChart(regno) {
const payload = regno
return this.http.post(environment.NODE_HOST + '/getRequestDateChart',{ NGOId: payload }, this.httpOptions);
return this.http.post(environment.NODE_HOST + '/getRequestDateChart', { NGOId: payload }, this.httpOptions);
}

getMonthlyRequest(regno){
getMonthlyRequest(regno) {
const payload = regno
return this.http.post(environment.NODE_HOST + '/getMonthlyRequest',{ NGOId: payload }, this.httpOptions);
return this.http.post(environment.NODE_HOST + '/getMonthlyRequest', { NGOId: payload }, this.httpOptions);

}

closeConnectionFromDB(){
closeConnectionFromDB() {
return this.http.post(environment.NODE_HOST + '/closeConnection', this.httpOptions);
}



//Government APIS
getTransactionsForGovernment(){
getTransactionsForGovernment() {
return this.http.get(environment.NODE_HOST + '/getTransactionsForGovernment', this.httpOptions);
}

getUserRequestForGovernment(){
getUserRequestForGovernment() {
return this.http.get(environment.NODE_HOST + '/getUserRequestForGovernment', this.httpOptions);
}
getNGOCapacityForGovernment(){
getNGOCapacityForGovernment() {

return this.http.get(environment.NODE_HOST + '/getNGOCapacityForGovernment', this.httpOptions);
}

getNGOBeneficiariesForGovernment(){
getNGOBeneficiariesForGovernment() {

return this.http.get(environment.NODE_HOST + '/getNGOBeneficiariesForGovernment', this.httpOptions);
}
getNGOUnprocessedRequestsForGovernment(){
getNGOUnprocessedRequestsForGovernment() {

return this.http.get(environment.NODE_HOST + '/getNGOUnprocessedRequestsForGovernment', this.httpOptions);

}

getRequestStatusCountForNGOForGovernment(){
getRequestStatusCountForNGOForGovernment() {

return this.http.get(environment.NODE_HOST + '/getRequestStatusCountForGovernment', this.httpOptions);

}

getRequestDateChartForGovernment(){
getRequestDateChartForGovernment() {

return this.http.get(environment.NODE_HOST + '/getRequestDateChartForGovernment', this.httpOptions);
}

getProvinceDataForGovernment(){
getProvinceDataForGovernment() {
return this.http.get(environment.NODE_HOST + '/getProvinceDataForGovernment', this.httpOptions);
}

getMonthlyRequestForGovernment(){
getMonthlyRequestForGovernment() {
return this.http.get(environment.NODE_HOST + '/getMonthlyRequestForGovernment', this.httpOptions);
}
}
24 changes: 12 additions & 12 deletions src/app/layouts/admin-layout/admin-layout.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ import { HttpClientModule, HttpClient } from '@angular/common/http'

import { ToastrModule } from "ngx-toastr";
import { AdminLayoutRoutes } from './admin-layout.routing';
import {NgxLoadingModule} from "ngx-loading"
import { NgxLoadingModule } from "ngx-loading"

import { GovernDashboardComponent } from '../../pages/goverdashboard/dashboard.component';
import { DashboardComponent } from '../../pages/dashboard/dashboard.component';
import { UserComponent } from '../../pages/user/user.component';
import { TableComponent } from '../../pages/table/table.component';
import { ContactComponent } from '../../pages/contact/contact.component';
import { IconsComponent } from '../../pages/icons/icons.component';
import { MapsComponent } from '../../pages/maps/maps.component';
import { NotificationsComponent } from '../../pages/notifications/notifications.component';
import { UpgradeComponent } from '../../pages/upgrade/upgrade.component';
import { GovernDashboardComponent } from '../../pages/goverdashboard/dashboard.component';
import { DashboardComponent } from '../../pages/dashboard/dashboard.component';
import { UserComponent } from '../../pages/user/user.component';
import { TableComponent } from '../../pages/table/table.component';
import { ContactComponent } from '../../pages/contact/contact.component';
import { InventoryComponent } from '../../pages/inventory/inventory.component';
import { MapsComponent } from '../../pages/maps/maps.component';
import { NotificationsComponent } from '../../pages/notifications/notifications.component';
import { UpgradeComponent } from '../../pages/upgrade/upgrade.component';
import { NgbdSortableHeader } from '../../pages/dashboard/dashboard.component';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';

Expand All @@ -39,12 +39,12 @@ import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
TableComponent,
UpgradeComponent,
ContactComponent,
IconsComponent,
InventoryComponent,
MapsComponent,
NotificationsComponent,
NgbdSortableHeader
],
providers: [HttpService]
})

export class AdminLayoutModule {}
export class AdminLayoutModule { }
22 changes: 11 additions & 11 deletions src/app/layouts/admin-layout/admin-layout.routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ import { DashboardComponent } from '../../pages/dashboard/dashboard.component';
import { UserComponent } from '../../pages/user/user.component';
import { TableComponent } from '../../pages/table/table.component';
import { ContactComponent } from '../../pages/contact/contact.component';
import { IconsComponent } from '../../pages/icons/icons.component';
import { InventoryComponent } from '../../pages/inventory/inventory.component';
import { MapsComponent } from '../../pages/maps/maps.component';
import { NotificationsComponent } from '../../pages/notifications/notifications.component';
import { UpgradeComponent } from '../../pages/upgrade/upgrade.component';


export const AdminLayoutRoutes: Routes = [
{ path: 'dashboard', component: DashboardComponent },
{ path: 'government', component: GovernDashboardComponent },
{ path: 'user', component: UserComponent },
{ path: 'table', component: TableComponent },
{ path: 'typography', component: ContactComponent },
{ path: 'icons', component: IconsComponent },
{ path: 'maps', component: MapsComponent },
{ path: 'notifications', component: NotificationsComponent },
{ path: 'upgrade', component: UpgradeComponent }
{ path: 'dashboard', component: DashboardComponent },
{ path: 'government', component: GovernDashboardComponent },
{ path: 'user', component: UserComponent },
{ path: 'table', component: TableComponent },
{ path: 'typography', component: ContactComponent },
{ path: 'inventory', component: InventoryComponent },
{ path: 'maps', component: MapsComponent },
{ path: 'notifications', component: NotificationsComponent },
{ path: 'upgrade', component: UpgradeComponent }

];
Empty file modified src/app/login/login.component.css
100644 → 100755
Empty file.
Empty file modified src/app/login/login.component.html
100644 → 100755
Empty file.
Empty file modified src/app/login/login.component.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/login/login.component.ts
100644 → 100755
Empty file.
Empty file modified src/app/login/login.module.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/contact/contact.css
100644 → 100755
Empty file.
Empty file modified src/app/pages/donor/donor.component.css
100644 → 100755
Empty file.
Empty file modified src/app/pages/donor/donor.component.html
100644 → 100755
Empty file.
Empty file modified src/app/pages/donor/donor.component.spec.ts
100644 → 100755
Empty file.
Empty file modified src/app/pages/donor/donor.component.ts
100644 → 100755
Empty file.
Loading