diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml new file mode 100644 index 000000000..72393e026 --- /dev/null +++ b/bitbucket-pipelines.yml @@ -0,0 +1,30 @@ +# This is a sample build configuration for JavaScript. +# Check our guides at https://confluence.atlassian.com/x/14UWN for more examples. +# Only use spaces to indent your .yml configuration. +# ----- +# You can specify a custom docker image from Docker Hub as your build environment. +image: node:10.15.3 + +pipelines: + branches: + master: + - step: + caches: + - node + size: 2x # Double resources available for this step. + script: # Modify the commands below to build your repository. + - cd ng6-seed + - npm install + - npm install -g @angular/cli + - node --max_old_space_size=2046 node_modules/@angular/cli/bin/ng build --configuration=staging + - ls -ltr + - cd dist + - pipe: atlassian/aws-s3-deploy:0.3.8 + variables: + AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID + AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY + AWS_DEFAULT_REGION: 'ap-south-1' + S3_BUCKET: 'autodeploy001' + LOCAL_PATH: $(pwd) + DELETE_FLAG: 'true' + \ No newline at end of file diff --git a/ng6-seed/package.json b/ng6-seed/package.json index de62716fa..d5bf40831 100755 --- a/ng6-seed/package.json +++ b/ng6-seed/package.json @@ -4,7 +4,7 @@ "license": "MIT", "scripts": { "production": "node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng build --prod ", - "staging": "node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng build --prod --configuration=staging", + "staging": "node --max_old_space_size=6144 node_modules/@angular/cli/bin/ng build --configuration=staging", "ng": "ng", "start": "ng serve", "build": "ng build", diff --git a/ng6-seed/src/app/dashboard/dashboard.component.ts b/ng6-seed/src/app/dashboard/dashboard.component.ts index 39a41f6c2..65ea7a4b2 100755 --- a/ng6-seed/src/app/dashboard/dashboard.component.ts +++ b/ng6-seed/src/app/dashboard/dashboard.component.ts @@ -16,7 +16,7 @@ import { BaseChartDirective } from 'ng2-charts/ng2-charts'; export class DashboardComponent { dashboardTitle : any = 'PD Status'; - access : boolean; + access : boolean = true; /** Declaration Part Of Doughnut Chart */ doughnutChartLabels: string[] = ['Triggered','Allocated','Scheduled','InProgress','Completed','QC Completed']; @@ -46,7 +46,7 @@ export class DashboardComponent { ngOnInit(){ // console.clear(); // this.access = this.userRoleID == 3 || this.userRoleID == 4 || this.userRoleID == 6 ? false : true; - this.access = this.userRoleID == 4 || this.userRoleID == 6 ? false : true; + // this.access = this.userRoleID == 4 || this.userRoleID == 6 ? false : true; this.getDoughnutChartData(); } diff --git a/ng6-seed/src/app/layouts/admin/admin-layout.component.ts b/ng6-seed/src/app/layouts/admin/admin-layout.component.ts index 05883422f..b2c6f805c 100755 --- a/ng6-seed/src/app/layouts/admin/admin-layout.component.ts +++ b/ng6-seed/src/app/layouts/admin/admin-layout.component.ts @@ -55,7 +55,7 @@ export class AdminLayoutComponent implements OnInit, OnDestroy { alertMsgAllocateType : any[]; alertCount: any; userRoleType: String; - permissionDeined : boolean; + permissionDeined : boolean = true; alertTAT: any; countTAT: number; @@ -115,7 +115,7 @@ export class AdminLayoutComponent implements OnInit, OnDestroy { ngOnInit(): void { this.userRoleType=localStorage.getItem('user_role'); - this.permissionDeined = this.userRoleType == '4' || this.userRoleType == '6' ? false : true; + // this.permissionDeined = this.userRoleType == '4' || this.userRoleType == '6' ? false : true; // console.clear(); const elemSidebar = document.querySelector('.sidebar-container '); diff --git a/ng6-seed/src/app/layouts/role-menu-items.pipe.ts b/ng6-seed/src/app/layouts/role-menu-items.pipe.ts index 28d68c4a0..c3de8c320 100644 --- a/ng6-seed/src/app/layouts/role-menu-items.pipe.ts +++ b/ng6-seed/src/app/layouts/role-menu-items.pipe.ts @@ -12,9 +12,9 @@ export class RoleMenuItemsPipe implements PipeTransform { case '1': return value.filter(val=>val.state!="settings" && val.state!="quality_check_discussion"); case '2': return value.filter(val=>val.state!="settings" && val.state!="quality_check_discussion"); case '3': return value.filter(val=>val.state!="settings"); - case '4': return; + case '4': return value.filter(val=>val.state!="settings" && val.state!="quality_check_discussion" && val.state!="reports"); case '5': return value.filter(val=>val.state!="settings" && val.state!="quality_check_discussion" && val.state!="reports"); - case '6': return; + case '6': return value.filter(val=>val.state!="settings" && val.state!="personal_discussion" && val.state!="reports"); case '7': return value.filter(val=>val.state!="settings" && val.state!="personal_discussion" && val.state!="reports"); case '8': return value.filter(val=>val.state!="settings" && val.state!="quality_check_discussion"); case '9': return value.filter(val=>val.state!="settings" && val.state!="quality_check_discussion"); diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html index c7bfec3d0..96f03bcc5 100755 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/all-pd/all-pd.component.html @@ -56,6 +56,11 @@ +
+
+ Include Archived +
+