diff --git a/src/app/modules/auth/auth.route.ts b/src/app/modules/auth/auth.route.ts
index a2c1db0..7a97f24 100644
--- a/src/app/modules/auth/auth.route.ts
+++ b/src/app/modules/auth/auth.route.ts
@@ -1,10 +1,5 @@
import { Routes } from '@angular/router'
import { SignIn } from '@/app/modules/auth/sign-in'
-import { SignUp } from '@/app/modules/auth/sign-up'
-import { ResetPassword } from '@/app/modules/auth/reset-password'
-import { NewPassword } from '@/app/modules/auth/new-password'
-import { TwoFactor } from '@/app/modules/auth/two-factor'
-import { LockScreen } from '@/app/modules/auth/lock-screen'
export const Auth_ROUTES: Routes = [
{
@@ -12,29 +7,4 @@ export const Auth_ROUTES: Routes = [
component: SignIn,
data: { title: 'Sign In' },
},
- {
- path: 'auth/sign-up',
- component: SignUp,
- data: { title: 'Sign Up' },
- },
- {
- path: 'auth/reset-password',
- component: ResetPassword,
- data: { title: 'Reset Password' },
- },
- {
- path: 'auth/new-password',
- component: NewPassword,
- data: { title: 'New Password' },
- },
- {
- path: 'auth/two-factor',
- component: TwoFactor,
- data: { title: 'Two Factor' },
- },
- {
- path: 'auth/lock-screen',
- component: LockScreen,
- data: { title: 'Lock Screen' },
- },
]
diff --git a/src/app/modules/auth/lock-screen.ts b/src/app/modules/auth/lock-screen.ts
deleted file mode 100644
index b3a151c..0000000
--- a/src/app/modules/auth/lock-screen.ts
+++ /dev/null
@@ -1,88 +0,0 @@
-import { Component } from '@angular/core'
-import { appName, credits, currentYear } from '@/app/constants'
-import { RouterLink } from '@angular/router'
-import { AppLogo } from '@app/components/app-logo'
-
-@Component({
- selector: 'app-lock-screen',
- imports: [RouterLink, AppLogo],
- template: `
-
-
-
-
-
-
-
-
-
- This screen is locked. Enter your password to continue
-
-
-
-
-

-
- Maxine Kennedy
- Admin Head
-
-
-
-
-
-
- Not you? Return to
- Sign in
-
-
-
-
-
- © {{ currentYear }} {{ appName }}. Tous droits réservés. — Développé par
- {{ credits.name }}
-
-
-
-
-
-
- `,
- styles: ``,
-})
-export class LockScreen {
- protected readonly appName = appName
- protected readonly currentYear = currentYear
- protected readonly credits = credits
-}
diff --git a/src/app/modules/auth/new-password.ts b/src/app/modules/auth/new-password.ts
deleted file mode 100644
index d463145..0000000
--- a/src/app/modules/auth/new-password.ts
+++ /dev/null
@@ -1,163 +0,0 @@
-import { Component } from '@angular/core'
-import { appName, credits, currentYear } from '@/app/constants'
-import { RouterLink } from '@angular/router'
-import { PasswordStrengthBar } from '@app/components/password-strength-bar'
-import { FormsModule } from '@angular/forms'
-import { AppLogo } from '@app/components/app-logo'
-import { NgOtpInputModule } from 'ng-otp-input'
-
-@Component({
- selector: 'app-new-password',
- imports: [
- RouterLink,
- PasswordStrengthBar,
- FormsModule,
- AppLogo,
- NgOtpInputModule,
- ],
- template: `
-
-
-
-
-
-
-
-
-
- We've emailed you a 6-digit verification code. Please enter
- it below to confirm your email address
-
-
-
-
-
-
- Don’t have a code?
- Resend
- or
- Call Us
-
-
- Return to
- Sign in
-
-
-
-
-
- © {{ currentYear }} {{ appName }}. Tous droits réservés. — Développé par
- {{ credits.name }}
-
-
-
-
-
- `,
- styles: ``,
-})
-export class NewPassword {
- password: string = ''
- protected readonly appName = appName
- protected readonly currentYear = currentYear
- protected readonly credits = credits
-}
diff --git a/src/app/modules/auth/reset-password.ts b/src/app/modules/auth/reset-password.ts
deleted file mode 100644
index 100ed04..0000000
--- a/src/app/modules/auth/reset-password.ts
+++ /dev/null
@@ -1,190 +0,0 @@
-import { Component, inject } from '@angular/core'
-import { RouterLink } from '@angular/router'
-import { FormsModule } from '@angular/forms'
-import { AppLogo } from '@app/components/app-logo'
-import { UsersService } from '../users/services/users.service'
-import { credits, currentYear } from '@/app/constants'
-
-@Component({
- selector: 'app-reset-password',
- imports: [RouterLink, AppLogo, FormsModule],
- template: `
-
-
-
-
-
-
-
-
-
- Entrez votre adresse email et nous vous enverrons un lien pour réinitialiser votre mot de passe.
-
-
-
-
-
- {{ successMessage }}
-
-
-
-
- {{ errorMessage }}
-
-
-
-
-
- Retour à
-
- Connexion
-
-
-
-
-
-
- © {{ currentYear }} Simple — par
- {{ credits.name }}
-
-
-
-
-
- `,
- styles: [`
- .auth-box {
- min-height: 100vh;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- }
- .card {
- border: none;
- border-radius: 12px;
- box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
- }
- `]
-})
-export class ResetPassword {
- private usersService = inject(UsersService)
-
- email = ''
- termsAccepted = false
- loading = false
- successMessage = ''
- errorMessage = ''
-
- protected readonly currentYear = currentYear
- protected readonly credits = credits
-
- onSubmit() {
- if (!this.email || !this.termsAccepted) {
- this.errorMessage = 'Veuillez remplir tous les champs obligatoires et accepter les conditions.';
- return;
- }
-
- this.loading = true;
- this.successMessage = '';
- this.errorMessage = '';
-
- // Simulation d'envoi d'email de réinitialisation
- // Note: Cette fonctionnalité nécessite un backend configuré pour envoyer des emails
- this.usersService.findUserByEmail(this.email).subscribe({
- next: (users) => {
- this.loading = false;
-
- if (users && users.length > 0) {
- // Si l'utilisateur existe, afficher un message de succès
- this.successMessage = 'Un lien de réinitialisation a été envoyé à votre adresse email.';
- this.errorMessage = '';
-
- // Ici, vous devriez normalement appeler un service backend
- // qui envoie un email de réinitialisation
- console.log('Email de réinitialisation envoyé à:', this.email);
- } else {
- this.errorMessage = 'Aucun utilisateur trouvé avec cette adresse email.';
- this.successMessage = '';
- }
- },
- error: (error) => {
- this.loading = false;
- this.errorMessage = 'Une erreur est survenue lors de la recherche de l\'utilisateur.';
- this.successMessage = '';
- console.error('Error finding user:', error);
- }
- });
- }
-
- // Alternative: Réinitialisation directe du mot de passe
- resetPasswordDirectly(userId: string) {
- const newPassword = prompt('Nouveau mot de passe:');
- if (newPassword && newPassword.length >= 8) {
- const resetDto = {
- userId: userId,
- newPassword: newPassword,
- temporary: false
- };
-
- this.usersService.resetPassword(resetDto).subscribe({
- next: () => {
- alert('Mot de passe réinitialisé avec succès');
- },
- error: (error) => {
- console.error('Error resetting password:', error);
- alert('Erreur lors de la réinitialisation du mot de passe');
- }
- });
- } else if (newPassword) {
- alert('Le mot de passe doit contenir au moins 8 caractères');
- }
- }
-}
\ No newline at end of file
diff --git a/src/app/modules/auth/sign-in.ts b/src/app/modules/auth/sign-in.ts
index fd90b87..bf23b05 100644
--- a/src/app/modules/auth/sign-in.ts
+++ b/src/app/modules/auth/sign-in.ts
@@ -112,15 +112,6 @@ import { appName, credits, currentYear } from '@/app/constants';
-
- New here?
-
- Create an account
-
-
diff --git a/src/app/modules/auth/sign-up.ts b/src/app/modules/auth/sign-up.ts
deleted file mode 100644
index b53262d..0000000
--- a/src/app/modules/auth/sign-up.ts
+++ /dev/null
@@ -1,124 +0,0 @@
-import { Component } from '@angular/core'
-import { appName, credits, currentYear } from '@/app/constants'
-import { RouterLink } from '@angular/router'
-import { AppLogo } from '@app/components/app-logo'
-import { PasswordStrengthBar } from '@app/components/password-strength-bar'
-import { FormsModule } from '@angular/forms'
-
-@Component({
- selector: 'app-sign-up',
- imports: [RouterLink, AppLogo, FormsModule, PasswordStrengthBar],
- template: `
-
-
-
-
-
-
-
-
-
- Let’s get you started. Create your account by entering your
- details below.
-
-
-
-
-
-
- Already have an account?
- Login
-
-
-
-
- © {{ currentYear }} {{ appName }}. Tous droits réservés. — Développé par
- {{ credits.name }}
-
-
-
-
-
- `,
- styles: ``,
-})
-export class SignUp {
- password: string = ''
- protected readonly appName = appName
- protected readonly currentYear = currentYear
- protected readonly credits = credits
-}
diff --git a/src/app/modules/auth/two-factor.ts b/src/app/modules/auth/two-factor.ts
deleted file mode 100644
index 4e13aa5..0000000
--- a/src/app/modules/auth/two-factor.ts
+++ /dev/null
@@ -1,92 +0,0 @@
-import { Component } from '@angular/core'
-import { AppLogo } from '@app/components/app-logo'
-import { NgOtpInputComponent } from 'ng-otp-input'
-import { RouterLink } from '@angular/router'
-import { appName, credits, currentYear } from '@/app/constants'
-
-@Component({
- selector: 'app-two-factor',
- imports: [AppLogo, NgOtpInputComponent, RouterLink],
- template: `
-
-
-
-
-
-
-
-
-
- We've emailed you a 6-digit verification code we sent to
-
-
-
-
-
-
-
-
- Don’t have a code?
- Resend
- or
- Call Us
-
-
- Return to
- Sign in
-
-
-
-
-
- © {{ currentYear }} {{ appName }}. Tous droits réservés. — Développé par
- {{ credits.name }}
-
-
-
-
-
- `,
- styles: ``,
-})
-export class TwoFactor {
- protected readonly appName = appName
- protected readonly currentYear = currentYear
- protected readonly credits = credits
-}
diff --git a/src/app/modules/merchants/merchants.ts b/src/app/modules/merchants/merchants.ts
index 15e19bd..4ca022a 100644
--- a/src/app/modules/merchants/merchants.ts
+++ b/src/app/modules/merchants/merchants.ts
@@ -6,7 +6,11 @@ import { MerchantsHistory } from './history/history';
@Component({
selector: 'app-merchants',
- imports: [PageTitle, MerchantsList, MerchantsConfig, MerchantsHistory],
+ imports: [PageTitle,
+ //MerchantsList,
+ //MerchantsConfig,
+ //MerchantsHistory
+ ],
templateUrl: './merchants.html',
})
export class Merchants {
diff --git a/src/app/modules/operators/config/config.ts b/src/app/modules/operators/config/config.ts
index 8340573..a750efd 100644
--- a/src/app/modules/operators/config/config.ts
+++ b/src/app/modules/operators/config/config.ts
@@ -7,7 +7,7 @@ import { InputTouchspin } from '@/app/modules/components/input-touchspin';
@Component({
selector: 'app-config',
- imports: [FormsModule, UiCard, InputFields, CheckboxesAndRadios, InputTouchspin],
+ //imports: [FormsModule, UiCard, InputFields, CheckboxesAndRadios, InputTouchspin],
templateUrl: './config.html',
})
export class OperatorsConfig {
diff --git a/src/app/modules/transactions/list/list.html b/src/app/modules/transactions/list/list.html
index acb2b2e..a674cde 100644
--- a/src/app/modules/transactions/list/list.html
+++ b/src/app/modules/transactions/list/list.html
@@ -278,8 +278,8 @@
Affichage de {{ (filters.page! - 1) * filters.limit! + 1 }} à
- {{ (filters.page! * filters.limit!) > (paginatedData?.total || 0) ? (paginatedData?.total || 0) : (filters.page! * filters.limit!) }}
- sur {{ paginatedData?.total || 0 }} transactions
+ {{ (filters.page! * filters.limit!) > (paginatedData.total || 0) ? (paginatedData.total || 0) : (filters.page! * filters.limit!) }}
+ sur {{ paginatedData.total || 0 }} transactions