# Generate UI lib
-nx g @nrwl/angular:lib ui
-
-# Add a component
-nx g @nrwl/angular:component button --project ui
-
-
-
-
- View interactive project graph
-
-
nx graph
-
-
-
-
- Run affected commands
-
-
# see what's been affected by changes
-nx affected:graph
-
-# run tests for current changes
-nx affected:test
-
-# run e2e tests for current changes
-nx affected:e2e
-
-
-
-
- Carefully crafted with
-
-
-
-
- `,
- styles: [],
- encapsulation: ViewEncapsulation.None,
-})
-export class NxWelcomeComponent implements OnInit {
- constructor() {}
-
- ngOnInit(): void {}
-}
diff --git a/apps/proxy-auth-element/src/assets/.gitkeep b/apps/proxy-auth-element/src/assets/.gitkeep
deleted file mode 100644
index e69de29b..00000000
diff --git a/apps/proxy-auth-element/src/environments/environment.prod.ts b/apps/proxy-auth-element/src/environments/environment.prod.ts
deleted file mode 100644
index da7c84f6..00000000
--- a/apps/proxy-auth-element/src/environments/environment.prod.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export const environment = {
- production: true,
-};
diff --git a/apps/proxy-auth-element/src/environments/environment.ts b/apps/proxy-auth-element/src/environments/environment.ts
deleted file mode 100644
index d1685736..00000000
--- a/apps/proxy-auth-element/src/environments/environment.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-// This file can be replaced during build by using the `fileReplacements` array.
-// `ng build` replaces `environment.ts` with `environment.prod.ts`.
-// The list of file replacements can be found in `angular.json`.
-
-export const environment = {
- production: false,
-};
-
-/*
- * For easier debugging in development mode, you can import the following file
- * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
- *
- * This import should be commented out in production mode because it will have a negative impact
- * on performance if an error is thrown.
- */
-// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.
diff --git a/apps/proxy-auth-element/src/favicon.ico b/apps/proxy-auth-element/src/favicon.ico
deleted file mode 100644
index 317ebcb2..00000000
Binary files a/apps/proxy-auth-element/src/favicon.ico and /dev/null differ
diff --git a/apps/proxy-auth-element/src/index.html b/apps/proxy-auth-element/src/index.html
deleted file mode 100644
index 1fff16d3..00000000
--- a/apps/proxy-auth-element/src/index.html
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
- ProxyAuthElement
-
-
-
-
-
-
-
-
diff --git a/apps/proxy-auth-element/src/main.ts b/apps/proxy-auth-element/src/main.ts
deleted file mode 100644
index 207c6dde..00000000
--- a/apps/proxy-auth-element/src/main.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import { enableProdMode } from '@angular/core';
-import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
-
-import { AppModule } from './app/app.module';
-import { environment } from './environments/environment';
-
-if (environment.production) {
- enableProdMode();
-}
-
-platformBrowserDynamic()
- .bootstrapModule(AppModule)
- .catch((err) => console.error(err));
diff --git a/apps/proxy-auth-element/src/polyfills.ts b/apps/proxy-auth-element/src/polyfills.ts
deleted file mode 100644
index e4555ed1..00000000
--- a/apps/proxy-auth-element/src/polyfills.ts
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
- * This file includes polyfills needed by Angular and is loaded before the app.
- * You can add your own extra polyfills to this file.
- *
- * This file is divided into 2 sections:
- * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
- * 2. Application imports. Files imported after ZoneJS that should be loaded before your main
- * file.
- *
- * The current setup is for so-called "evergreen" browsers; the last versions of browsers that
- * automatically update themselves. This includes recent versions of Safari, Chrome (including
- * Opera), Edge on the desktop, and iOS and Chrome on mobile.
- *
- * Learn more in https://angular.io/guide/browser-support
- */
-
-/***************************************************************************************************
- * BROWSER POLYFILLS
- */
-
-/**
- * By default, zone.js will patch all possible macroTask and DomEvents
- * user can disable parts of macroTask/DomEvents patch by setting following flags
- * because those flags need to be set before `zone.js` being loaded, and webpack
- * will put import in the top of bundle, so user need to create a separate file
- * in this directory (for example: zone-flags.ts), and put the following flags
- * into that file, and then add the following code before importing zone.js.
- * import './zone-flags';
- *
- * The flags allowed in zone-flags.ts are listed here.
- *
- * The following flags will work for all browsers.
- *
- * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
- * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
- * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
- *
- * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
- * with the following flag, it will bypass `zone.js` patch for IE/Edge
- *
- * (window as any).__Zone_enable_cross_context_check = true;
- *
- */
-
-/***************************************************************************************************
- * Zone JS is required by default for Angular itself.
- */
-import 'zone.js'; // Included with Angular CLI.
-
-/***************************************************************************************************
- * APPLICATION IMPORTS
- */
diff --git a/apps/proxy-auth-element/src/styles.scss b/apps/proxy-auth-element/src/styles.scss
deleted file mode 100644
index 90d4ee00..00000000
--- a/apps/proxy-auth-element/src/styles.scss
+++ /dev/null
@@ -1 +0,0 @@
-/* You can add global styles to this file, and also import other style files */
diff --git a/apps/proxy-auth-element/tsconfig.app.json b/apps/proxy-auth-element/tsconfig.app.json
deleted file mode 100644
index 18bf7d57..00000000
--- a/apps/proxy-auth-element/tsconfig.app.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "extends": "./tsconfig.json",
- "compilerOptions": {
- "outDir": "../../dist/out-tsc",
- "types": []
- },
- "files": ["src/main.ts", "src/polyfills.ts"],
- "include": ["src/**/*.d.ts"],
- "exclude": ["jest.config.ts", "**/*.test.ts", "**/*.spec.ts"]
-}
diff --git a/apps/proxy-auth-element/tsconfig.editor.json b/apps/proxy-auth-element/tsconfig.editor.json
deleted file mode 100644
index 636651f8..00000000
--- a/apps/proxy-auth-element/tsconfig.editor.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "extends": "./tsconfig.json",
- "include": ["**/*.ts"],
- "compilerOptions": {
- "types": []
- }
-}
diff --git a/apps/proxy-auth-element/tsconfig.json b/apps/proxy-auth-element/tsconfig.json
deleted file mode 100644
index b4a92135..00000000
--- a/apps/proxy-auth-element/tsconfig.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "extends": "../../tsconfig.base.json",
- "files": [],
- "include": [],
- "references": [
- {
- "path": "./tsconfig.app.json"
- },
- {
- "path": "./tsconfig.editor.json"
- }
- ],
- "compilerOptions": {
- "target": "es2020",
- "forceConsistentCasingInFileNames": true,
- "strict": true,
- "noImplicitOverride": true,
- "noPropertyAccessFromIndexSignature": true,
- "noImplicitReturns": true,
- "noFallthroughCasesInSwitch": true
- },
- "angularCompilerOptions": {
- "enableI18nLegacyMessageIdFormat": false,
- "strictInjectionParameters": true,
- "strictInputAccessModifiers": true,
- "strictTemplates": true
- }
-}
diff --git a/apps/proxy-auth/.browserslistrc b/apps/proxy-auth/.browserslistrc
deleted file mode 100644
index 4f9ac269..00000000
--- a/apps/proxy-auth/.browserslistrc
+++ /dev/null
@@ -1,16 +0,0 @@
-# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
-# For additional information regarding the format and rule options, please see:
-# https://github.com/browserslist/browserslist#queries
-
-# For the full list of supported browsers by the Angular framework, please see:
-# https://angular.io/guide/browser-support
-
-# You can see what browsers were selected by your queries by running:
-# npx browserslist
-
-last 1 Chrome version
-last 1 Firefox version
-last 2 Edge major versions
-last 2 Safari major versions
-last 2 iOS major versions
-Firefox ESR
diff --git a/apps/proxy-auth/build-elements.js b/apps/proxy-auth/build-elements.js
index 2e3b3bdc..fba7514a 100755
--- a/apps/proxy-auth/build-elements.js
+++ b/apps/proxy-auth/build-elements.js
@@ -1,13 +1,28 @@
const fs = require('fs-extra');
const concat = require('concat');
+const path = require('path');
(async function build() {
console.info(`Building elements for ${process.cwd()}...`);
- let files = [
- './dist/apps/proxy-auth/main.js',
+ const distDir = './dist/apps/proxy-auth';
+ const allFiles = await fs.readdir(distDir);
+
+ // Find each chunk by prefix — order matters: runtime → polyfills → main
+ const findChunk = (prefix) => {
+ const match = allFiles.find((f) => f.startsWith(prefix) && f.endsWith('.js'));
+ if (!match) throw new Error(`Could not find ${prefix}*.js in ${distDir}`);
+ return path.join(distDir, match);
+ };
+
+ const files = [
+ findChunk('runtime'),
+ findChunk('polyfills'),
+ findChunk('main'),
];
+ console.info('Concatenating:', files);
+
await fs.ensureDir('./dist/apps/proxy/assets/proxy-auth');
await concat(files, './dist/apps/proxy/assets/proxy-auth/proxy-auth.js');
diff --git a/apps/proxy-auth/project.json b/apps/proxy-auth/project.json
index aff7db84..a31085a0 100644
--- a/apps/proxy-auth/project.json
+++ b/apps/proxy-auth/project.json
@@ -6,7 +6,7 @@
"prefix": "proxy",
"targets": {
"build": {
- "executor": "@angular-builders/custom-webpack:browser",
+ "executor": "@angular-devkit/build-angular:browser",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/apps/proxy-auth",
@@ -18,18 +18,15 @@
"assets": ["apps/proxy-auth/src/favicon.ico", "apps/proxy-auth/src/assets"],
"styles": ["apps/proxy-auth/src/styles.scss"],
"aot": true,
- "scripts": [],
- "customWebpackConfig": {
- "path": "/webpack.config.js"
- }
+ "scripts": []
},
"configurations": {
"production": {
"budgets": [
{
"type": "initial",
- "maximumWarning": "500kb",
- "maximumError": "1mb"
+ "maximumWarning": "1mb",
+ "maximumError": "3mb"
}
],
"fileReplacements": [
@@ -45,6 +42,50 @@
"sourceMap": false,
"namedChunks": false
},
+ "test": {
+ "budgets": [
+ {
+ "type": "initial",
+ "maximumWarning": "1mb",
+ "maximumError": "3mb"
+ }
+ ],
+ "fileReplacements": [
+ {
+ "replace": "apps/proxy-auth/src/environments/environment.ts",
+ "with": "apps/proxy-auth/src/environments/environment.test.ts"
+ }
+ ],
+ "buildOptimizer": true,
+ "optimization": true,
+ "vendorChunk": false,
+ "extractLicenses": false,
+ "sourceMap": false,
+ "namedChunks": false,
+ "outputHashing": "all"
+ },
+ "stage": {
+ "budgets": [
+ {
+ "type": "initial",
+ "maximumWarning": "1mb",
+ "maximumError": "3mb"
+ }
+ ],
+ "fileReplacements": [
+ {
+ "replace": "apps/proxy-auth/src/environments/environment.ts",
+ "with": "apps/proxy-auth/src/environments/environment.stage.ts"
+ }
+ ],
+ "buildOptimizer": true,
+ "optimization": true,
+ "vendorChunk": false,
+ "extractLicenses": false,
+ "sourceMap": false,
+ "namedChunks": false,
+ "outputHashing": "all"
+ },
"development": {
"buildOptimizer": false,
"optimization": false,
@@ -57,16 +98,16 @@
"defaultConfiguration": "production"
},
"serve": {
- "executor": "@angular-builders/custom-webpack:dev-server",
+ "executor": "@angular-devkit/build-angular:dev-server",
"options": {
- "browserTarget": "proxy-auth:build"
+ "buildTarget": "proxy-auth:build"
},
"configurations": {
"production": {
- "browserTarget": "proxy-auth:build:production"
+ "buildTarget": "proxy-auth:build:production"
},
"development": {
- "browserTarget": "proxy-auth:build:development"
+ "buildTarget": "proxy-auth:build:development"
}
},
"defaultConfiguration": "development"
@@ -74,11 +115,11 @@
"extract-i18n": {
"executor": "@angular-devkit/build-angular:extract-i18n",
"options": {
- "browserTarget": "proxy-auth:build"
+ "buildTarget": "proxy-auth:build"
}
},
"lint": {
- "executor": "@nrwl/linter:eslint",
+ "executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["apps/proxy-auth/**/*.ts", "apps/proxy-auth/**/*.html"]
}
diff --git a/apps/proxy-auth/src/app/app.component.html b/apps/proxy-auth/src/app/app.component.html
index 8141f0f7..39f04809 100644
--- a/apps/proxy-auth/src/app/app.component.html
+++ b/apps/proxy-auth/src/app/app.component.html
@@ -1,4 +1,4 @@
-
-
+
diff --git a/apps/proxy-auth/src/app/app.component.ts b/apps/proxy-auth/src/app/app.component.ts
index 1b1385a6..fa109aad 100644
--- a/apps/proxy-auth/src/app/app.component.ts
+++ b/apps/proxy-auth/src/app/app.component.ts
@@ -3,6 +3,7 @@ import { environment } from '../environments/environment';
import { BaseComponent } from '@proxy/ui/base-component';
@Component({
+ standalone: false,
selector: 'proxy-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
@@ -24,14 +25,17 @@ export class AppComponent extends BaseComponent implements OnInit, OnDestroy {
}
public initOtpProvider() {
+ if (customElements.get('h-captcha')) {
+ return;
+ }
if (!environment.production) {
const sendOTPConfig = {
- // referenceId: '4512365m176216342869087ae458e09',
- // type: 'organization-details',
+ referenceId: '4512365e1772083784699fda48abd90',
+ type: 'user-management', // 'user-management', 'organization-details'
// loginRedirectUrl: 'https://www.google.com',
// showCompanyDetails: false,
authToken:
- 'ZGlYV0Z4ekRleUQwZEhXR2JvRllKaWh6cmhhb2hhTnhTMGdDdHlpa2ZaOU9LcGh5M3puLzZ6QTVRb3pGdGNPU0xlSC9SQjI3ckNweWk5cWg1aytpOVRTVmtUWXFRQW5rWEZ0c21KeEN6c0FmK1d5bWQxUk9lZHM4anlHSDI5Q3dxL0o3V0h6Yk9kMDBSVE5pc1FPekJkQVg3QXZ4K2xFbUViUGdhQ0Z6d3hGNXQreEN2dytUQW9GOEdseFFBU3FaNXYzbFVUalJDRitqc0EvQVduQUkrUT09',
+ 'VWVJOXVmR0NEcXlmbUJpcjd6M0dnN1YvbEJxcTNSSWp1cFd0U01mQmpZMHdzRW82N0w3QzZid3Y0eFpDNkx6UU1OWEsxNDdMQ0JLb1JSZzV0Y2dBc0ExbWxHaFVGa3FmQnpXcEpRT2ZndGczditFL1hpWXZKdEJha25DcVhxR1hWSFQvQVlZZE1LNThxWk9sTERhMnVwUkVyNWxDdkhUdWF1TDFKc0JiMG91eXhRUndxQjRLclpWL21OVXNxL0RYK0ZiZ005MU1RUlByQmo3aGxGdFpDZz09',
// type: 'user-management',
// isHidden: true,
// theme: 'dark',
diff --git a/apps/proxy-auth/src/app/app.module.ts b/apps/proxy-auth/src/app/app.module.ts
index 0775549d..064593d7 100644
--- a/apps/proxy-auth/src/app/app.module.ts
+++ b/apps/proxy-auth/src/app/app.module.ts
@@ -1,4 +1,4 @@
-import { NgModule } from '@angular/core';
+import { ApplicationRef, DoBootstrap, NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { environment } from '../environments/environment';
@@ -29,6 +29,11 @@ if (environment.production) {
}),
...conditional_imports,
],
- bootstrap: [AppComponent],
})
-export class AppModule {}
+export class AppModule implements DoBootstrap {
+ ngDoBootstrap(appRef: ApplicationRef) {
+ if (document.querySelector('proxy-root')) {
+ appRef.bootstrap(AppComponent);
+ }
+ }
+}
diff --git a/apps/proxy-auth/src/app/element.module.ts b/apps/proxy-auth/src/app/element.module.ts
index da1a3280..41fdec9a 100644
--- a/apps/proxy-auth/src/app/element.module.ts
+++ b/apps/proxy-auth/src/app/element.module.ts
@@ -144,28 +144,6 @@ window['initVerification'] = (config: any) => {
}
window['libLoaded'] = true;
-
- // } else if (config?.authToken) {
- // const findOtpProvider = document.querySelector('user-profile');
- // if (findOtpProvider) {
- // document.body.removeChild(findOtpProvider);
- // }
- // const sendOtpElement = document.createElement('user-profile') as NgElement &
- // WithProperties;
- // sendOtpElement.authToken = config.authToken;
- // sendOtpElement.target = config?.target ?? '_self';
- // sendOtpElement.css = config.style;
- // if (!config.success || typeof config.success !== 'function') {
- // throw Error('success callback function missing !');
- // }
- // sendOtpElement.successReturn = config.success;
- // sendOtpElement.failureReturn = config.failure;
-
- // // omitting keys which are not required in API payload
- // // sendOtpElement.otherData = omit(config, RESERVED_KEYS);
-
- // document.getElementsByTagName('body')[0].append(sendOtpElement);
- // window['libLoaded'] = true;
} else {
if (!config?.referenceId) {
throw Error('Reference Id is missing!');
@@ -188,27 +166,7 @@ export class ElementModule implements DoBootstrap {
});
customElements.define('proxy-auth', sendOtpComponent);
}
-
- // if (!customElements.get('user-profile')) {
- // const userProfileComponent = createCustomElement(UserProfileComponent, {
- // injector: this.injector,
- // });
- // customElements.define('user-profile', userProfileComponent);
- // }
}
- ngDoBootstrap(appRef: ApplicationRef) {
- if (!customElements.get('proxy-auth')) {
- const sendOtpComponent = createCustomElement(SendOtpComponent, {
- injector: this.injector,
- });
- customElements.define('proxy-auth', sendOtpComponent);
- }
- // if (!customElements.get('user-details')) {
- // const userProfileComponent = createCustomElement(UserProfileComponent, {
- // injector: this.injector,
- // });
- // customElements.define('user-details', userProfileComponent);
- // }
- }
+ ngDoBootstrap(appRef: ApplicationRef) {}
}
diff --git a/apps/proxy-auth/src/app/otp/component/login/login.component.ts b/apps/proxy-auth/src/app/otp/component/login/login.component.ts
index 3ad8a054..d075eee7 100644
--- a/apps/proxy-auth/src/app/otp/component/login/login.component.ts
+++ b/apps/proxy-auth/src/app/otp/component/login/login.component.ts
@@ -16,6 +16,7 @@ import { OtpUtilityService } from '../../service/otp-utility.service';
import { NgHcaptchaComponent } from 'ng-hcaptcha';
@Component({
+ standalone: false,
selector: 'proxy-login',
templateUrl: './login.component.html',
styleUrls: ['./login.component.scss'],
diff --git a/apps/proxy-auth/src/app/otp/component/login/login.store.ts b/apps/proxy-auth/src/app/otp/component/login/login.store.ts
index c923df2e..c0aa21c1 100644
--- a/apps/proxy-auth/src/app/otp/component/login/login.store.ts
+++ b/apps/proxy-auth/src/app/otp/component/login/login.store.ts
@@ -1,5 +1,6 @@
import { Injectable } from '@angular/core';
-import { ComponentStore, tapResponse } from '@ngrx/component-store';
+import { ComponentStore } from '@ngrx/component-store';
+import { tapResponse } from '@ngrx/operators';
import { Observable, switchMap } from 'rxjs';
import { OtpService } from '../../service/otp.service';
import { PrimeNgToastService } from '@proxy/ui/prime-ng-toast';
diff --git a/apps/proxy-auth/src/app/otp/component/register/register.component.ts b/apps/proxy-auth/src/app/otp/component/register/register.component.ts
index 61064c23..6f12d078 100644
--- a/apps/proxy-auth/src/app/otp/component/register/register.component.ts
+++ b/apps/proxy-auth/src/app/otp/component/register/register.component.ts
@@ -20,7 +20,7 @@ import { select, Store } from '@ngrx/store';
import { IAppState } from '../../store/app.state';
import { IntlPhoneLib, removeEmptyKeys } from '@proxy/utils';
import { FormControl, FormGroup, Validators } from '@angular/forms';
-import * as _ from 'lodash';
+import { isEqual } from 'lodash-es';
import { EMAIL_REGEX, NAME_REGEX, PASSWORD_REGEX } from '@proxy/regex';
import { CustomValidators } from '@proxy/custom-validator';
import { OtpUtilityService } from '../../service/otp-utility.service';
@@ -39,6 +39,7 @@ import {
import { IGetOtpRes } from '../../model/otp';
@Component({
+ standalone: false,
selector: 'proxy-register',
templateUrl: './register.component.html',
styleUrls: ['./register.component.scss'],
@@ -147,42 +148,42 @@ export class RegisterComponent extends BaseComponent implements AfterViewInit, O
super();
this.selectGetOtpRes$ = this.store.pipe(
select(selectGetOtpRes),
- distinctUntilChanged(_.isEqual),
+ distinctUntilChanged(isEqual),
takeUntil(this.destroy$)
);
this.selectGetOtpInProcess$ = this.store.pipe(
select(selectGetOtpInProcess),
- distinctUntilChanged(_.isEqual),
+ distinctUntilChanged(isEqual),
takeUntil(this.destroy$)
);
this.selectGetOtpSuccess$ = this.store.pipe(
select(selectGetOtpSuccess),
- distinctUntilChanged(_.isEqual),
+ distinctUntilChanged(isEqual),
takeUntil(this.destroy$)
);
this.selectVerifyOtpV2Data$ = this.store.pipe(
select(selectVerifyOtpV2Data),
- distinctUntilChanged(_.isEqual),
+ distinctUntilChanged(isEqual),
takeUntil(this.destroy$)
);
this.selectVerifyOtpV2InProcess$ = this.store.pipe(
select(selectVerifyOtpV2InProcess),
- distinctUntilChanged(_.isEqual),
+ distinctUntilChanged(isEqual),
takeUntil(this.destroy$)
);
this.selectVerifyOtpV2Success$ = this.store.pipe(
select(selectVerifyOtpV2Success),
- distinctUntilChanged(_.isEqual),
+ distinctUntilChanged(isEqual),
takeUntil(this.destroy$)
);
this.selectApiErrorResponse$ = this.store.pipe(
select(selectApiErrorResponse),
- distinctUntilChanged(_.isEqual),
+ distinctUntilChanged(isEqual),
takeUntil(this.destroy$)
);
this.selectWidgetTheme$ = this.store.pipe(
select(selectWidgetTheme),
- distinctUntilChanged(_.isEqual),
+ distinctUntilChanged(isEqual),
takeUntil(this.destroy$)
);
}
diff --git a/apps/proxy-auth/src/app/otp/component/send-otp-center/send-otp-center.component.ts b/apps/proxy-auth/src/app/otp/component/send-otp-center/send-otp-center.component.ts
index a255acbd..b6811afa 100644
--- a/apps/proxy-auth/src/app/otp/component/send-otp-center/send-otp-center.component.ts
+++ b/apps/proxy-auth/src/app/otp/component/send-otp-center/send-otp-center.component.ts
@@ -67,6 +67,7 @@ export enum InputFields {
BOTTOM = 'bottom',
}
@Component({
+ standalone: false,
selector: 'proxy-send-otp-center',
templateUrl: './send-otp-center.component.html',
styleUrls: ['./send-otp-center.component.scss'],
diff --git a/apps/proxy-auth/src/app/otp/component/subscription-center/subscription-center.component.ts b/apps/proxy-auth/src/app/otp/component/subscription-center/subscription-center.component.ts
index 6562f76f..af37e1da 100644
--- a/apps/proxy-auth/src/app/otp/component/subscription-center/subscription-center.component.ts
+++ b/apps/proxy-auth/src/app/otp/component/subscription-center/subscription-center.component.ts
@@ -3,7 +3,7 @@ import { select, Store } from '@ngrx/store';
import { IAppState } from '../../store/app.state';
import { BaseComponent } from '@proxy/ui/base-component';
import { distinctUntilChanged, Observable, takeUntil } from 'rxjs';
-import { isEqual } from 'lodash';
+import { isEqual } from 'lodash-es';
import { subscriptionPlansData } from '../../store/selectors';
import { getSubscriptionPlans } from '../../store/actions/otp.action';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
@@ -29,6 +29,7 @@ export interface SubscriptionPlan {
}
@Component({
+ standalone: false,
selector: 'proxy-subscription-center',
templateUrl: './subscription-center.component.html',
styleUrls: ['./subscription-center.component.scss'],
diff --git a/apps/proxy-auth/src/app/otp/organization-details/organization-details.component.ts b/apps/proxy-auth/src/app/otp/organization-details/organization-details.component.ts
index c6bbee37..ca2906f5 100644
--- a/apps/proxy-auth/src/app/otp/organization-details/organization-details.component.ts
+++ b/apps/proxy-auth/src/app/otp/organization-details/organization-details.component.ts
@@ -9,6 +9,7 @@ import { MatSnackBar } from '@angular/material/snack-bar';
import { EMAIL_REGEX } from '@proxy/regex';
@Component({
+ standalone: false,
selector: 'organization-details',
templateUrl: './organization-details.component.html',
encapsulation: ViewEncapsulation.ShadowDom,
diff --git a/apps/proxy-auth/src/app/otp/send-otp/send-otp.component.scss b/apps/proxy-auth/src/app/otp/send-otp/send-otp.component.scss
index 54eb5e5b..7dff7e03 100644
--- a/apps/proxy-auth/src/app/otp/send-otp/send-otp.component.scss
+++ b/apps/proxy-auth/src/app/otp/send-otp/send-otp.component.scss
@@ -1,6 +1,6 @@
-@import '~intl-tel-input/build/css/intlTelInput.css';
-@import '../../../intl.scss';
-@import '../../../otp-global.scss';
+@use 'intl-tel-input/build/css/intlTelInput.css';
+@use '../../../intl' as *;
+@use '../../../otp-global' as *;
.container {
width: 100%;
diff --git a/apps/proxy-auth/src/app/otp/send-otp/send-otp.component.ts b/apps/proxy-auth/src/app/otp/send-otp/send-otp.component.ts
index 46f9709d..5d4e4773 100644
--- a/apps/proxy-auth/src/app/otp/send-otp/send-otp.component.ts
+++ b/apps/proxy-auth/src/app/otp/send-otp/send-otp.component.ts
@@ -42,6 +42,7 @@ export enum InputFields {
}
@Component({
+ standalone: false,
selector: 'proxy-send-otp',
templateUrl: './send-otp.component.html',
encapsulation: ViewEncapsulation.ShadowDom,
diff --git a/apps/proxy-auth/src/app/otp/store/effects/otp.effects.ts b/apps/proxy-auth/src/app/otp/store/effects/otp.effects.ts
index aedb91f2..4328e843 100644
--- a/apps/proxy-auth/src/app/otp/store/effects/otp.effects.ts
+++ b/apps/proxy-auth/src/app/otp/store/effects/otp.effects.ts
@@ -95,7 +95,6 @@ export class OtpEffects {
});
}),
catchError((err) => {
- console.log('err', err);
return of(
otpActions.verifyOtpActionError({
errors: errorResolver(err.errors),
diff --git a/apps/proxy-auth/src/app/otp/user-management/user-management.component.html b/apps/proxy-auth/src/app/otp/user-management/user-management.component.html
index 161baabe..bbf5fc0b 100644
--- a/apps/proxy-auth/src/app/otp/user-management/user-management.component.html
+++ b/apps/proxy-auth/src/app/otp/user-management/user-management.component.html
@@ -511,7 +511,6 @@