RajalashmiNagarajan commited on
Commit ·
b1efa3a
1
Parent(s): 36dc6fe
signin-update
Browse filesFiles changed (3)
221 unmodified lines22222322422522622734 unmodified lines262263264265221 unmodified lines...userData}));this.redirectBasedOnRole(userRole);}34 unmodified lines// ensure template updates under OnPushthis.cdr.markForCheck();}}221 unmodified lines22222322422522622722822923023123223323423523623723834 unmodified lines273274275276277278279280281282283284285221 unmodified lines...userData}));// Ensure any auth modal/backdrop is closed before navigatingtry {window.dispatchEvent(new CustomEvent('auth-close'));this.close.emit();document.body.classList.remove('modal-open');const modal = document.querySelector('.modal');if (modal && modal.parentElement) modal.parentElement.removeChild(modal);const backdrop = document.querySelector('.modal-backdrop');if (backdrop && backdrop.parentElement) backdrop.parentElement.removeChild(backdrop);} catch { /* ignore */ }this.redirectBasedOnRole(userRole);}34 unmodified lines// ensure template updates under OnPushthis.cdr.markForCheck();}ngOnDestroy() {// Defensive cleanup so returning to homepage never keeps a blurred overlaytry {document.body.classList.remove('modal-open');const backdrop = document.querySelector('.modal-backdrop');if (backdrop && backdrop.parentElement) backdrop.parentElement.removeChild(backdrop);} catch { /* ignore */ }}}
52 unmodified lines535455565758124 unmodified lines18318418518618718818919019152 unmodified lines<div class="form-field role-field-wrapper"><label for="roleGroup">Role Group <span class="required-star">*</span><span class="label-cross" *ngIf="submitted && controlHasError('roleGroup')" aria-hidden="true">✖</span></label><select id="roleGroup" formControlName="roleGroup" (change)="onRoleGroupChange($any($event.target).value)" aria-label="Role group" [class.input-invalid]="submitted && controlHasError('roleGroup')"><option value="">-- Select role group --</option>124 unmodified lines</div><!-- Floating Info Popup --><div *ngIf="showInfo" class="info-popup-bg"><div class="info-popup"><button class="info-close" type="button" (click)="showInfo = false">×</button><div class="info-title">Role Information</div><div class="info-text">52 unmodified lines53545556575859124 unmodified lines18418518618718818919019119252 unmodified lines<div class="form-field role-field-wrapper"><label for="roleGroup">Role Group <span class="required-star">*</span><span class="label-cross" *ngIf="submitted && controlHasError('roleGroup')" aria-hidden="true">✖</span><button type="button" class="info-btn" (click)="showInfo = true" aria-label="Role info">i</button></label><select id="roleGroup" formControlName="roleGroup" (change)="onRoleGroupChange($any($event.target).value)" aria-label="Role group" [class.input-invalid]="submitted && controlHasError('roleGroup')"><option value="">-- Select role group --</option>124 unmodified lines</div><!-- Floating Info Popup --><div *ngIf="showInfo" class="info-popup-bg" (click)="showInfo = false"><div class="info-popup" (click)="$event.stopPropagation()"><button class="info-close" type="button" (click)="showInfo = false" aria-label="Close">×</button><div class="info-title">Role Information</div><div class="info-text">
8 unmodified lines91011121314158 unmodified lines// Decide API URL based on where the app is runningconst pyDetectApiUrl = isLocal? 'http://127.0.0.1:5000' // your local Flask: 'https://pykara-Py-detect-backend.hf.space'; // Hugging Face backendexport const environment = {8 unmodified lines91011121314158 unmodified lines// Decide API URL based on where the app is runningconst pyDetectApiUrl = isLocal? 'http://127.0.0.1:5002' // your local Flask: 'https://pykara-Py-detect-backend.hf.space'; // Hugging Face backendexport const environment = {
src/app/homepage/sign-in/sign-in.component.ts+20
src/app/homepage/sign-up/sign-up.component.html+4-3
src/environments/environment.ts+1-1