forked from Sunbird-Ed/SunbirdEd-portal
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 157628 - changes for delete user * 157628 - added language files
- Loading branch information
1 parent
00d7d0e
commit 79f8237
Showing
63 changed files
with
2,938 additions
and
70 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
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
9 changes: 9 additions & 0 deletions
9
...ic/module/guest-profile/components/delete-account/anonymous-delete-account.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,9 @@ | ||
<div class="sb-mat__modal"> | ||
<div mat-dialog-title class="mb-0"> | ||
</div> | ||
<mat-dialog-content> | ||
<app-otp-popup [otpData]="otpData" [redirectToLogin]="false" (verificationSuccess)="verificationSuccess($event)" | ||
(closeContactForm)="closeModal()" [delete]="true"> | ||
</app-otp-popup> | ||
</mat-dialog-content> | ||
<router-outlet></router-outlet> |
45 changes: 45 additions & 0 deletions
45
...ic/module/guest-profile/components/delete-account/anonymous-delete-account.component.scss
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 @@ | ||
@use "@project-sunbird/sb-styles/assets/mixins/mixins" as *; | ||
@use "@project-sunbird/sb-styles/assets/varSass" as *; | ||
@use 'components/form' as *; | ||
|
||
.ui.grey.button { | ||
font-size: 1rem; | ||
} | ||
|
||
.ui.dodger-blue.button { | ||
background: var(--primary-color); | ||
color: var(--white); | ||
font-size: 1rem; | ||
height: calculateRem(38px) !important; | ||
} | ||
|
||
.ui.left.icon.input .icon { | ||
font-size: 1rem; | ||
} | ||
|
||
.height-200 { | ||
height: calculateRem(200px) !important; | ||
} | ||
|
||
.sb-field.ui.input { | ||
display: block; | ||
|
||
.icon { | ||
left: 0; | ||
top: 0.625rem; | ||
} | ||
|
||
.sb-form-control { | ||
border: $sb-input-border-normal; | ||
line-height: 1.5; | ||
padding: 0.5714rem; | ||
|
||
&:hover { | ||
border: $sb-input-border-hover; | ||
} | ||
} | ||
} | ||
.delete__title{ | ||
margin: auto; | ||
color: #dd4841 !important; | ||
} |
184 changes: 184 additions & 0 deletions
184
...e/guest-profile/components/delete-account/anonymous-delete-account.component.spec.data.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,184 @@ | ||
export const mockResponse = { | ||
userMockData: { | ||
'userRoles': [ | ||
'PUBLIC', | ||
'BOOK_CREATOR', | ||
'COURSE_MENTOR', | ||
'FLAG_REVIEWER', | ||
'CONTENT_CREATOR', | ||
'TEACHER_BADGE_ISSUER' | ||
], | ||
'rootOrg': { | ||
'dateTime': null, | ||
'preferredLanguage': 'English', | ||
'approvedBy': null, | ||
'channel': 'ROOT_ORG', | ||
'description': 'Sunbird', | ||
'updatedDate': '2017-08-24 06:02:10:846+0000', | ||
'addressId': null, | ||
'orgType': null, | ||
'provider': null, | ||
'orgCode': 'sunbird', | ||
'theme': null, | ||
'id': 'ORG_001', | ||
'communityId': null, | ||
'isApproved': null, | ||
'slug': 'sunbird', | ||
'identifier': 'ORG_001', | ||
'thumbnail': null, | ||
'orgName': 'Sunbird', | ||
'updatedBy': 'user1', | ||
'externalId': null, | ||
'isRootOrg': true, | ||
'rootOrgId': null, | ||
'approvedDate': null, | ||
'imgUrl': null, | ||
'homeUrl': null, | ||
'isDefault': null, | ||
'contactDetail': | ||
'[{\'phone\':\'213124234234\',\'email\':\'[email protected]\'},{\'phone\':\'+91213124234234\',\'email\':\'[email protected]\'}]', | ||
'createdDate': null, | ||
'createdBy': null, | ||
'parentOrgId': null, | ||
'hashTagId': 'b00bc992ef25f1a9a8d63291e20efc8d', | ||
'noOfMembers': 1, | ||
'status': null | ||
}, | ||
'identifier': '874ed8a5-782e-4f6c-8f36-e0288455901e', | ||
'profileSummary': 'asdd', | ||
'tcUpdatedDate': null, | ||
'avatar': 'https://sunbirddev.blob.core.windows.net/user/874ed8a5-782e-4f6c-8f36-e0288455901e/File-01242833565242982418.png', | ||
'userName': 'ntptest102', | ||
'rootOrgId': 'ORG_001', | ||
'userId': '874ed8a5-782e-4f6c-8f36-e0288455901e', | ||
'emailVerified': null, | ||
'firstName': 'Cretation', | ||
'lastLoginTime': 1519809987692, | ||
'createdDate': '2017-10-31 10:47:04:723+0000', | ||
'createdBy': '5d7eb482-c2b8-4432-bf38-cc58f3c23b45', | ||
'email': '[email protected]' | ||
}, | ||
userMockData1: { | ||
'userRoles': [ | ||
'PUBLIC', | ||
'BOOK_CREATOR', | ||
'COURSE_MENTOR', | ||
'FLAG_REVIEWER', | ||
'CONTENT_CREATOR', | ||
'TEACHER_BADGE_ISSUER' | ||
], | ||
'rootOrg': { | ||
'dateTime': null, | ||
'preferredLanguage': 'English', | ||
'approvedBy': null, | ||
'channel': 'ROOT_ORG', | ||
'description': 'Sunbird', | ||
'updatedDate': '2017-08-24 06:02:10:846+0000', | ||
'addressId': null, | ||
'orgType': null, | ||
'provider': null, | ||
'orgCode': 'sunbird', | ||
'theme': null, | ||
'id': 'ORG_001', | ||
'communityId': null, | ||
'isApproved': null, | ||
'slug': 'sunbird', | ||
'identifier': 'ORG_001', | ||
'thumbnail': null, | ||
'orgName': 'Sunbird', | ||
'updatedBy': 'user1', | ||
'externalId': null, | ||
'isRootOrg': true, | ||
'rootOrgId': null, | ||
'approvedDate': null, | ||
'imgUrl': null, | ||
'homeUrl': null, | ||
'isDefault': null, | ||
'contactDetail': | ||
'[{\'phone\':\'213124234234\',\'email\':\'[email protected]\'},{\'phone\':\'+91213124234234\',\'email\':\'[email protected]\'}]', | ||
'createdDate': null, | ||
'createdBy': null, | ||
'parentOrgId': null, | ||
'hashTagId': 'b00bc992ef25f1a9a8d63291e20efc8d', | ||
'noOfMembers': 1, | ||
'status': null | ||
}, | ||
'identifier': '874ed8a5-782e-4f6c-8f36-e0288455901e', | ||
'profileSummary': 'asdd', | ||
'tcUpdatedDate': null, | ||
'avatar': 'https://sunbirddev.blob.core.windows.net/user/874ed8a5-782e-4f6c-8f36-e0288455901e/File-01242833565242982418.png', | ||
'userName': 'ntptest102', | ||
'rootOrgId': 'ORG_001', | ||
'userId': '874ed8a5-782e-4f6c-8f36-e0288455901e', | ||
'emailVerified': null, | ||
'firstName': 'Cretation', | ||
'lastLoginTime': 1519809987692, | ||
'createdDate': '2017-10-31 10:47:04:723+0000', | ||
'createdBy': '5d7eb482-c2b8-4432-bf38-cc58f3c23b45', | ||
'phone': '1234567890' | ||
}, | ||
resendOtpSuccess: { | ||
'id': 'api.otp.generate', | ||
'ver': 'v1', | ||
'ts': '2019-01-09 06:59:19:838+0000', | ||
'params': { | ||
'resmsgid': null, | ||
'msgid': null, | ||
'err': null, | ||
'status': 'success', | ||
'errmsg': null | ||
}, | ||
'responseCode': 'OK', | ||
'result': { | ||
'response': 'SUCCESS' | ||
} | ||
}, | ||
resendPhoneOtpError: { | ||
'id': 'api.otp.generate', | ||
'ver': 'v1', | ||
'ts': '2019-01-09 07:22:37:193+0000', | ||
'error': { | ||
'params': { | ||
'resmsgid': null, | ||
'msgid': 'afb0eefe-a484-4a07-89e0-a1d87ce5904d', | ||
'err': 'ERROR_INVALID_REQUEST', | ||
'status': 'PHONE_ALREADY_IN_USE', | ||
'errmsg': 'Invalid emailAddress or phone number.' | ||
}, | ||
}, | ||
'responseCode': 'CLIENT_ERROR', | ||
'result': {} | ||
}, | ||
resendEmailOtpError: { | ||
'id': 'api.otp.generate', | ||
'ver': 'v1', | ||
'ts': '2019-01-09 07:22:37:193+0000', | ||
'error': { | ||
'params': { | ||
'resmsgid': null, | ||
'msgid': 'afb0eefe-a484-4a07-89e0-a1d87ce5904d', | ||
'err': 'ERROR_INVALID_REQUEST', | ||
'status': 'EMAIL_IN_USE', | ||
'errmsg': 'Invalid emailAddress or phone number.' | ||
}, | ||
}, | ||
'responseCode': 'CLIENT_ERROR', | ||
'result': {} | ||
}, | ||
resendOtpError: { | ||
'id': 'api.otp.generate', | ||
'ver': 'v1', | ||
'ts': '2019-01-09 07:22:37:193+0000', | ||
'error': { | ||
'params': { | ||
'resmsgid': null, | ||
'msgid': 'afb0eefe-a484-4a07-89e0-a1d87ce5904d', | ||
'err': 'ERROR_INVALID_REQUEST', | ||
'status': 'ERROR', | ||
'errmsg': 'Invalid emailAddress or phone number.' | ||
}, | ||
}, | ||
'responseCode': 'CLIENT_ERROR', | ||
'result': {} | ||
}, | ||
} |
Oops, something went wrong.