diff --git a/src/app/app.module.ts b/src/app/app.module.ts index ce9754d..0e949ad 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -17,7 +17,7 @@ import { MenusModule } from './components/menus/menus.module'; import { VendorsModule } from './components/vendors/vendors.module'; import { UsersModule } from './components/users/users.module'; import { LocalizationModule } from './components/localization/localization.module'; -import { InvoiceModule } from './components/invoice/invoice.module'; +import { AccountModule } from './components/account/account.module'; import { SettingModule } from './components/setting/setting.module'; import { ReportsModule } from './components/reports/reports.module'; import { AuthModule } from './components/auth/auth.module'; @@ -28,7 +28,6 @@ import { AngularFireModule } from "@angular/fire/compat"; import { environment } from "../environments/environment"; import { FirebaseService } from "./shared/service/firebase.service"; import { AuthInterceptor } from "./shared/inceptor/auth-interceptor"; -import { NgImageSliderModule } from 'ng-image-slider' @NgModule({ declarations: [ @@ -39,7 +38,7 @@ import { NgImageSliderModule } from 'ng-image-slider' BrowserModule.withServerTransition({ appId: 'serverApp' }), AppRoutingModule, DashboardModule, - InvoiceModule, + AccountModule, SettingModule, ReportsModule, AuthModule, diff --git a/src/app/components/invoice/invoice-routing.module.ts b/src/app/components/account/account-routing.module.ts similarity index 53% rename from src/app/components/invoice/invoice-routing.module.ts rename to src/app/components/account/account-routing.module.ts index 826ae72..7830a79 100644 --- a/src/app/components/invoice/invoice-routing.module.ts +++ b/src/app/components/account/account-routing.module.ts @@ -1,15 +1,17 @@ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; -import { InvoiceComponent } from './invoice.component'; +import { AccountComponent } from './account.component'; +import { AdminGuard } from 'src/app/shared/guard/admin-guard.service'; const routes: Routes = [ { path: '', - component: InvoiceComponent, + canActivate: [AdminGuard], + component: AccountComponent, data: { - title: "Invoice", - breadcrumb: "Invoice" + title: "Tài khoản", + breadcrumb: "Danh sách" } }, ]; diff --git a/src/app/components/account/account.component.html b/src/app/components/account/account.component.html new file mode 100644 index 0000000..c65e0c9 --- /dev/null +++ b/src/app/components/account/account.component.html @@ -0,0 +1,105 @@ + +
| # | +Ảnh đại diện | +Họ và tên | +Số điện thoại | +Vai trò | ++ | |
|---|---|---|---|---|---|---|
| {{i + 1}} | +
+ |
+ + {{user.fullName}} + | +{{user.email}} | +{{user.phoneNumber}} | ++ Quản trị viên + Người dùng + Người bán hàng + Shipper + | ++ + + | +
+ Đã gửi đường dẫn thay đổi mật khẩu đến email của bạn
-Vui lòng kiểm tra hòm thư
- - +Vui lòng kiểm tra hòm thư của bạn
+ + +Tài khoản này không tồn tại trong hệ thống. Vui lòng kiểm tra lại địa chỉ email
+| # | +STT | - Ảnh | + Ảnh +Tên loại |
- |
{{ category.name }} | @@ -48,8 +35,7 @@ -
|---|