Skip to content

Commit cc8307a

Browse files
author
Mohamed Sabry
committed
puplish
1 parent 992b48c commit cc8307a

File tree

66 files changed

+1512
-486
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1512
-486
lines changed

angular.json

+11-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
"src/assets"
3131
],
3232
"styles": [
33+
"node_modules/primeng/resources/themes/lara-light-blue/theme.css",
34+
"node_modules/primeng/resources/primeng.min.css",
3335
"src/styles.scss"
3436
],
3537
"scripts": []
@@ -56,7 +58,13 @@
5658
"vendorChunk": true,
5759
"extractLicenses": false,
5860
"sourceMap": true,
59-
"namedChunks": true
61+
"namedChunks": true,
62+
"fileReplacements": [
63+
{
64+
"replace": "src/environments/environment.ts",
65+
"with": "src/environments/environment.development.ts"
66+
}
67+
]
6068
}
6169
},
6270
"defaultConfiguration": "production"
@@ -93,6 +101,8 @@
93101
"src/assets"
94102
],
95103
"styles": [
104+
"node_modules/primeng/resources/themes/lara-light-blue/theme.css",
105+
"node_modules/primeng/resources/primeng.min.css",
96106
"src/styles.scss"
97107
],
98108
"scripts": []

package-lock.json

+31
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
"@angular/platform-browser": "^16.2.0",
1919
"@angular/platform-browser-dynamic": "^16.2.0",
2020
"@angular/router": "^16.2.0",
21+
"primeflex": "^3.3.1",
22+
"primeicons": "^7.0.0",
23+
"primeng": "^16.4.4",
2124
"rxjs": "~7.8.0",
2225
"tslib": "^2.3.0",
2326
"zone.js": "~0.13.0"

src/app/app-routing.module.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
import { NgModule } from '@angular/core';
22
import { RouterModule, Routes } from '@angular/router';
3+
import { authGuard } from './core/guards/auth.guard';
34

4-
const routes: Routes = [];
5+
const routes: Routes = [
6+
{ path: '', loadChildren: () => import('./layout/layout.module').then(m => m.LayoutModule),canActivate:[authGuard] },
7+
{ path: 'login', loadChildren: () => import('./auth/auth.module').then(m => m.AuthModule) },
8+
9+
];
510

611
@NgModule({
712
imports: [RouterModule.forRoot(routes)],

0 commit comments

Comments
 (0)