Merge branch 'master' of bitbucket.org:venbainformationtechnology/appointments_frontend
This commit is contained in:
commit
723c8519a7
BIN
ng-seed/Appointment_Frontend_Build.zip
Normal file
BIN
ng-seed/Appointment_Frontend_Build.zip
Normal file
Binary file not shown.
@ -200,7 +200,11 @@ export class AppoinmentsListComponent implements OnInit {
|
||||
});
|
||||
dialogRef.afterClosed().subscribe(result => {
|
||||
console.log(result)
|
||||
this.formAddUpdateAndDelete(result,result.data)
|
||||
if(result == 0){
|
||||
this.getAppoinmentsList()
|
||||
}
|
||||
|
||||
// this.formAddUpdateAndDelete(result,result.data)
|
||||
// if(result.event == 'Add'){
|
||||
// this.addRowData(result.data);
|
||||
// }else if(result.event == 'Update'){
|
||||
|
||||
@ -220,7 +220,7 @@ export class DialogBoxComponent implements OnInit {
|
||||
this._app.addFormDetails(paramsData).subscribe(res => {
|
||||
if (res.status == 200) {
|
||||
this.notifierService.notify('success', 'Appointment Added Successfully');
|
||||
this.dialogRef.close();
|
||||
this.dialogRef.close(0);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@ -72,6 +72,7 @@ export class BusinessListComponent implements OnInit {
|
||||
this.recordStatus=false;
|
||||
}
|
||||
else{
|
||||
this.isLoading = false
|
||||
this.businessList=[];
|
||||
this.businessListLength= null;
|
||||
this.recordStatus=true;
|
||||
|
||||
@ -35,11 +35,11 @@
|
||||
<div class="main-content" fxLayout="row" fxLayoutAlign="center start">
|
||||
<div fxFlex.gt-sm="90" fxFlex.gt-xs="95" fxFlex="100">
|
||||
<div class="messages-list material fullscreen">
|
||||
<mat-accordion>
|
||||
<mat-accordion >
|
||||
<!-- <mat-expansion-panel>
|
||||
<mat-expansion-panel-header > -->
|
||||
<!-- <div class="example-container mat-elevation-z8 "> -->
|
||||
<table mat-table [dataSource]="usersList" #mytable class="my-table mat-elevation-z8 len-table">
|
||||
<table mat-table [dataSource]="usersList" #mytable class="my-table mat-elevation-z8 len-table">
|
||||
|
||||
<ng-container matColumnDef="id">
|
||||
<th mat-header-cell *matHeaderCellDef class="font-color"> S.No</th>
|
||||
|
||||
@ -118,7 +118,7 @@ export class UserListComponent implements OnInit {
|
||||
})
|
||||
}
|
||||
hashPassword(password: string){
|
||||
return "*".repeat(password.length)
|
||||
return "*".repeat(6)
|
||||
}
|
||||
ngAfterViewInit() {
|
||||
console.log(this.usersList,this.paginator)
|
||||
|
||||
@ -1,9 +1,10 @@
|
||||
<ng-scrollbar class="scrollHV">
|
||||
<div fxLayout="row wrap">
|
||||
<div fxFlex.sm="100" fxFlex.xs="100" fxFlex.md="33.33" fxFlex.lg="33.33" fxFlex.xl="33.33" fxFlex="100" class="m-gap p-gap">
|
||||
<mat-card>
|
||||
<div class="card-wheather grad-blue">
|
||||
<div class="city">New Orders</div>
|
||||
<div class="date">This Week</div>
|
||||
<div class="city">Practitioner</div>
|
||||
<!-- <div class="date">This Week</div> -->
|
||||
<div class="weather">
|
||||
<div class="sun d-flex justify-content-between">
|
||||
<i class="fa fa-shopping-bag fa-3x align-self-center"></i>
|
||||
@ -16,8 +17,8 @@
|
||||
<div fxFlex.sm="100" fxFlex.xs="100" fxFlex.md="33.33" fxFlex.lg="33.33" fxFlex.xl="33.33" fxFlex="100" class="m-gap p-gap">
|
||||
<mat-card>
|
||||
<div class="card-wheather grad-green">
|
||||
<div class="city">Total Profit</div>
|
||||
<div class="date">This Week</div>
|
||||
<div class="city">Appointment</div>
|
||||
<!-- <div class="date">This Week</div> -->
|
||||
<div class="weather">
|
||||
<div class="sun d-flex justify-content-between">
|
||||
<i class="fa fa fa-users fa-3x align-self-center"></i>
|
||||
@ -30,8 +31,8 @@
|
||||
<div fxFlex.sm="100" fxFlex.xs="100" fxFlex.md="33.33" fxFlex.lg="33.33" fxFlex.xl="33.33" fxFlex="100" class="m-gap p-gap">
|
||||
<mat-card>
|
||||
<div class="card-wheather grad-red">
|
||||
<div class="city">Email</div>
|
||||
<div class="date">This Week</div>
|
||||
<div class="city">Users</div>
|
||||
<!-- <div class="date">This Week</div> -->
|
||||
<div class="weather">
|
||||
<div class="sun d-flex justify-content-between">
|
||||
<i class="fa fa-inbox fa-3x align-self-center"></i>
|
||||
@ -61,4 +62,5 @@
|
||||
</mat-card-content>
|
||||
</mat-card>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ng-scrollbar>
|
||||
@ -2,6 +2,9 @@ $red: #f5515f;
|
||||
$blue: #05abe0;
|
||||
$grey: #343434;
|
||||
$p: 12px;
|
||||
.scrollHV {
|
||||
height: calc(100vh - 162px);
|
||||
}
|
||||
.profile {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
@ -83,7 +86,7 @@ $p: 12px;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
background: url('/assets/images/1.jpg') no-repeat center center / cover;
|
||||
background: url('assets/images/1.jpg') no-repeat center center / cover;
|
||||
clip-path: polygon(0 0, 100% 0, 100% 75%, 0% 100%);
|
||||
}
|
||||
|
||||
@ -496,7 +499,7 @@ a.link {
|
||||
|
||||
//wheather
|
||||
.card-wheather {
|
||||
height: 220px;
|
||||
height: 150px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
|
||||
@ -15,6 +15,7 @@ import { NgxDatatableModule } from '@swimlane/ngx-datatable';
|
||||
|
||||
import { DashboardComponent } from './dashboard.component';
|
||||
import { DashboardRoutes } from './dashboard.routing';
|
||||
import { NgScrollbarModule } from 'ngx-scrollbar';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
@ -29,7 +30,8 @@ import { DashboardRoutes } from './dashboard.routing';
|
||||
ChartsModule,
|
||||
NgxChartsModule,
|
||||
NgxDatatableModule,
|
||||
FlexLayoutModule
|
||||
FlexLayoutModule,
|
||||
NgScrollbarModule
|
||||
],
|
||||
declarations: [ DashboardComponent ]
|
||||
})
|
||||
|
||||
@ -113,6 +113,7 @@ export class ConsultantsListComponent implements OnInit {
|
||||
}
|
||||
|
||||
goToSlotBooking(param){
|
||||
localStorage.setItem('user_id',param.id)
|
||||
let URL = this.router.url;
|
||||
console.log(URL,param)
|
||||
let URL_AS_LIST = URL.split('/');
|
||||
|
||||
@ -37,7 +37,8 @@ export class DoctorProfileComponent implements OnInit {
|
||||
this.profileDetails = this.bookedAppointment.practitionerInfos[0]
|
||||
console.log(this.profileDetails)
|
||||
this.skillsDetails = JSON.parse(this.profileDetails.skills)
|
||||
console.log(this.skillsDetails)
|
||||
this.skillsDetails = JSON.parse(this.skillsDetails)
|
||||
|
||||
}else{
|
||||
|
||||
let URL = this.router.url;
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { FormControl, FormGroup, Validators } from '@angular/forms';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { local } from 'd3';
|
||||
import { EndUserService } from '../end-user.service';
|
||||
|
||||
@Component({
|
||||
@ -23,7 +24,8 @@ export class PaymentComponent implements OnInit {
|
||||
console.log(URL)
|
||||
let URL_AS_LIST = URL.split('/');
|
||||
console.log(URL_AS_LIST);
|
||||
this.router.navigate(['customer/business/'+URL_AS_LIST[3]])
|
||||
//this.router.navigate(['customer/business/'+URL_AS_LIST[3]])
|
||||
this.router.navigate(['customer/'+URL_AS_LIST[2]+'/'+URL_AS_LIST[3]])
|
||||
}
|
||||
|
||||
})
|
||||
@ -47,6 +49,7 @@ export class PaymentComponent implements OnInit {
|
||||
submit(){
|
||||
console.log(this.form.value)
|
||||
let slot_array = JSON.parse(localStorage.getItem("slotData"))
|
||||
|
||||
|
||||
let service = localStorage.getItem("servicedetails")
|
||||
let serviceDetails = JSON.parse(service)
|
||||
@ -56,11 +59,15 @@ export class PaymentComponent implements OnInit {
|
||||
console.log(URL,slot_array)
|
||||
let URL_AS_LIST = URL.split('/');
|
||||
console.log(URL_AS_LIST);
|
||||
// if(serviceDetails.hasOwnProperty('userId')){
|
||||
serviceDetails.userId = localStorage.getItem('user_id')
|
||||
// }
|
||||
let paramsmap= {
|
||||
"serviceId": ""+serviceDetails.serviceId+"",
|
||||
"serviceId": ""+serviceDetails.serviceId+"",
|
||||
"userId": serviceDetails.userId,
|
||||
"busId": serviceDetails.busId
|
||||
"busId": serviceDetails.busId
|
||||
}
|
||||
console.log(paramsmap)
|
||||
this.enduser.CreatecusServicesMapDetails(paramsmap).subscribe(res => {
|
||||
if (res.status == 200) {
|
||||
console.log(res)
|
||||
|
||||
@ -69,7 +69,7 @@ export class SlotBookingDetailsComponent implements OnInit {
|
||||
console.log(URL)
|
||||
let URL_AS_LIST = URL.split('/');
|
||||
console.log(URL_AS_LIST);
|
||||
this.router.navigate(['customer/business/'+URL_AS_LIST[3]])
|
||||
this.router.navigate(['customer/'+URL_AS_LIST[2]+'/'+URL_AS_LIST[3]])
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
<div class="branding text-center">
|
||||
<!-- <h2><i class="fa fa-superpowers" aria-hidden="true"></i> <span> Appointment</span>
|
||||
</h2> -->
|
||||
<h2><i class="fa fa-calendar" aria-hidden="true"></i> <span> {{getUserData.BusinessDetails[0].busName}}</span>
|
||||
<h2><i class="fa fa-calendar" aria-hidden="true"></i> <span> {{getUserData.role == 'SADMIN' ? 'Appointment' : getUserData.BusinessDetails[0].busName}}</span>
|
||||
</h2>
|
||||
|
||||
</div>
|
||||
@ -18,7 +18,8 @@
|
||||
<div class="user-pro-wrap">
|
||||
<div class="user-profile-thumb text-center">
|
||||
<div class="user-i">
|
||||
<img [src]="getUserData.logo != '' ? image_view(getUserData.logo) : 'assets/images/userpic.png'" class="rad-full mb-1" width="100" height="100" alt="">
|
||||
<img *ngIf="getUserData.role == 'SADMIN'" src="assets/images/userpic.png" class="rad-full mb-1" width="100" height="100" alt="">
|
||||
<img *ngIf="getUserData.role != 'SADMIN'" [src]="getUserData.logo != '' ? image_view(getUserData.logo) : 'assets/images/userpic.png'" class="rad-full mb-1" width="100" height="100" alt="">
|
||||
<div> <span>{{getUserData.userName}}</span></div>
|
||||
<div> <span>({{getUserData.role}})</span></div>
|
||||
</div>
|
||||
|
||||
@ -51,13 +51,13 @@ export class AdminLayoutComponent implements OnInit, OnDestroy {
|
||||
getUser: any;
|
||||
// usersLogo: any;
|
||||
private apiUrl = environment.apiEndpoint;
|
||||
getUserData: any;
|
||||
getUserData: any = [];
|
||||
userLength: any = [];
|
||||
constructor(public _con:ConsultantService,private router: Router, public menuItems: MenuItems, public horizontalMenuItems : HorizontalMenuItems, public translate: TranslateService ) {
|
||||
const browserLang: string = translate.getBrowserLang();
|
||||
translate.use(browserLang.match(/en|fr/) ? browserLang : 'en');
|
||||
this.getUser = localStorage.getItem('user_role')
|
||||
this.getUserDetails()
|
||||
|
||||
}
|
||||
|
||||
//08/02/2023
|
||||
@ -69,7 +69,7 @@ users() {
|
||||
//
|
||||
|
||||
ngOnInit(): void {
|
||||
|
||||
this.getUserDetails()
|
||||
const elemSidebar = <HTMLElement>document.querySelector('.sidebar-container ');
|
||||
|
||||
if (window.matchMedia(`(min-width: 960px)`).matches && !this.isMac() && !this.compactSidebar && this.layoutDir != 'rtl') {
|
||||
|
||||
@ -11,7 +11,7 @@ export class RoleMenuItemsPipe implements PipeTransform {
|
||||
// if(type=="1"){
|
||||
switch(localStorage.getItem('user_role')){
|
||||
case 'SADMIN': return value.filter(val=>val.state!="appoinments" && val.state!="customers" && val.state != "consultant-setting" && val.state!="consultants" && val.state!="services");
|
||||
case 'BADMIN': return value.filter(val=>val.state !="business" && val.state!="users" && val.state!="consultants");
|
||||
case 'BADMIN': return value.filter(val=>val.state !="business" && val.state!="users" && val.state!="consultants" && val.state!="appoinments");
|
||||
case 'PRACTITIONER': return value.filter(val=>val.state !="business" && val.state!="consultants" && val.state!="users" && val.state!="services");
|
||||
// case 'PRACTITIONER':
|
||||
// case '3': return value.filter(val=>val.state!="settings");
|
||||
|
||||
@ -417,7 +417,7 @@ $hover-font-color:#fff;
|
||||
text-align: center;
|
||||
background-color: rgba(214, 224, 226, 0.2);
|
||||
.cardheader {
|
||||
background: url("/assets/images/night.jpg");
|
||||
background: url("assets/images/night.jpg");
|
||||
background-size: cover;
|
||||
height: 135px;
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -5,7 +5,7 @@
|
||||
|
||||
|
||||
.about-w {
|
||||
background-image: url("/assets/images/about.jpg");
|
||||
background-image: url("assets/images/about.jpg");
|
||||
}
|
||||
|
||||
.form-bg {
|
||||
|
||||
@ -2,14 +2,19 @@ export const environment = {
|
||||
production: true,
|
||||
environmentName: 'Production Environment',//Localhost Environment.
|
||||
// apiEndpoint:'http://venbainfotech.com:5000/',
|
||||
apiEndpoint:'https://192.168.159.24:8080/api/',
|
||||
firebase : {
|
||||
apiKey: "AIzaSyBVPQ6C7cg5l8I-o7WSmmXdioMa4C0ZKNM",
|
||||
authDomain: "phone-otp-5d22e.firebaseapp.com",
|
||||
projectId: "phone-otp-5d22e",
|
||||
storageBucket: "phone-otp-5d22e.appspot.com",
|
||||
messagingSenderId: "207025211598",
|
||||
appId: "1:207025211598:web:f2e4ebfb2e4ca5d5d8a89f",
|
||||
measurementId: "G-LJFTVZSP38"
|
||||
}
|
||||
// apiEndpoint:'https://192.168.159.24:8080/api/',
|
||||
apiEndpoint:'https://api.venbait.in/api/',
|
||||
|
||||
//EndUser URL
|
||||
endUserUrl:'https://venbainfotech.com/appointment/#/customer/',
|
||||
|
||||
firebase: {
|
||||
apiKey: "AIzaSyCKbfDJ5Qf0rDP3WKppa94u9xuVaVabaDw",
|
||||
authDomain: "venba-appointment.firebaseapp.com",
|
||||
projectId: "venba-appointment",
|
||||
storageBucket: "venba-appointment.appspot.com",
|
||||
messagingSenderId: "513912226817",
|
||||
appId: "1:513912226817:web:eebcec6f7c6407a1dd2c00",
|
||||
measurementId: "G-48RM8BFRFK"
|
||||
},
|
||||
};
|
||||
|
||||
@ -10,8 +10,8 @@ export const environment = {
|
||||
// apiEndpoint:'http://192.168.1.20:8080/api/',
|
||||
// apiEndpoint:'https://api.venbait.in/api/',
|
||||
// apiEndpoint:'http://venbainfotech.com:5000/api/',
|
||||
apiEndpoint:'http://192.168.1.8:8080/api/',
|
||||
// apiEndpoint:'https://api.venbait.in/api/',
|
||||
apiEndpoint:'http://192.168.1.12:8080/api/',
|
||||
// apiEndpoint:'https://api.venbait.in/api/',
|
||||
|
||||
//EndUser URL
|
||||
endUserUrl:'https://venbainfotech.com/appointment/#/customer/',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user