-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from Star-Academy/new-features
New features
- Loading branch information
Showing
48 changed files
with
1,164 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,18 @@ | ||
import { Routes } from '@angular/router'; | ||
import {DashboardComponent} from "./components/dashboard/dashboard.component"; | ||
import {LoginComponent} from "./components/login/login.component"; | ||
import {loggedInGuard} from "./guards/loggedIn/logged-in.guard"; | ||
import {ProfileComponent} from "./components/dashboard/profile/profile.component"; | ||
import {EditProfileComponent} from "./components/dashboard/profile/edit-profile/edit-profile.component"; | ||
import {ChangePasswordComponent} from "./components/dashboard/profile/change-password/change-password.component"; | ||
import {ManageUsersComponent} from "./components/dashboard/manage-users/manage-users.component"; | ||
import {ShowDataComponent} from "./components/dashboard/show-data/show-data.component"; | ||
import {isAdminGuard} from "./guards/admin/is-admin.guard"; | ||
import { DashboardhomeComponent } from './components/dashboard/dashboardhome/dashboardhome.component'; | ||
|
||
export const routes: Routes = [ | ||
{path: 'dashboard', component: DashboardComponent, children: [ | ||
{path: 'home', component: DashboardhomeComponent}, | ||
{path: 'profile', component: ProfileComponent , children: [ | ||
{path: 'edit-profile', component: EditProfileComponent}, | ||
{path: 'change-password', component: ChangePasswordComponent}, | ||
{path: 'dashboard', loadComponent: () => import('./components/dashboard/dashboard.component').then(m => m.DashboardComponent), children: [ | ||
{path: 'home', loadComponent: () => import('./components/dashboard/dashboardhome/dashboardhome.component').then(m => m.DashboardhomeComponent)}, | ||
{path: 'profile', loadComponent: () => import('./components/dashboard/profile/profile.component').then(m => m.ProfileComponent) , children: [ | ||
{path: 'main', loadComponent: () => import('./components/dashboard/profile-show/profile-show.component').then(m => m.ProfileShowComponent)}, | ||
{path: 'edit-profile', loadComponent: () => import('./components/dashboard/profile/edit-profile/edit-profile.component').then(m => m.EditProfileComponent)}, | ||
{path: 'change-password', loadComponent: () => import('./components/dashboard/profile/change-password/change-password.component').then(m => m.ChangePasswordComponent)}, | ||
]}, | ||
{path: 'manage-users', component: ManageUsersComponent, canActivate: [isAdminGuard]}, | ||
{path: 'show-data', component: ShowDataComponent}, | ||
{path: 'manage-users', loadComponent: () => import('./components/dashboard/manage-users/manage-users.component').then(m => m.ManageUsersComponent), canActivate: [isAdminGuard]}, | ||
{path: 'show-data', loadComponent: () => import('./components/dashboard/show-data/show-data.component').then(m => m.ShowDataComponent)}, | ||
], canActivate: [loggedInGuard], data: { requiresAuth: true } }, | ||
{path: 'login', component: LoginComponent, canActivate: [loggedInGuard], data: { requiresAuth: false }}, | ||
{path: 'login', loadComponent: () => import('./components/login/login.component').then(m => m.LoginComponent), canActivate: [loggedInGuard], data: { requiresAuth: false }}, | ||
{path: '**', redirectTo: 'dashboard'} | ||
]; |
28 changes: 28 additions & 0 deletions
28
project/src/app/components/dashboard/change-password/change-password.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@import "../../../../variables"; | ||
@layer components { | ||
.edit-label{ | ||
@apply text-[1.6rem] font-medium ; | ||
color: $bg-color; | ||
|
||
} | ||
.edit-input { | ||
@apply mb-5 mt-2 block w-full px-3 py-[0.7rem] rounded-2xl text-[2rem]; | ||
color: $text-color; | ||
} | ||
.edit-error{ | ||
@apply text-[1.6rem] ; | ||
color: $error-color; | ||
} | ||
|
||
.edit-btn{ | ||
@apply w-full text-white py-3 px-4 rounded-2xl text-[2rem] ; | ||
margin-top : 15px !important; | ||
color: $secondary-color; | ||
border: 3px solid $secondary-color; | ||
transition-duration: 0.3s; | ||
&:hover { | ||
color: $bg-color; | ||
background: $secondary-color; | ||
} | ||
} | ||
} |
14 changes: 3 additions & 11 deletions
14
project/src/app/components/dashboard/dashboard.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,8 @@ | ||
<div class="fullscreen flex w-screen h-screen "> | ||
<!-- <div #navbarIcon> | ||
<ng-icon (click)="handleShowNavbar()" name="heroBars3" class="dashboard-navbar-icon"></ng-icon> | ||
</div> | ||
<nav #navbar class="dashboard-navbar hidden"> | ||
<ng-icon (click)="handleCloseNavbar()" name="heroArrowUturnRight" class="dashboard-navbar-back-icon"></ng-icon> | ||
<app-navbar></app-navbar> | ||
</nav> | ||
--> | ||
<app-navbar class="w-[17vw] flex h-full"></app-navbar> | ||
<section #content class="dashboard-content w-[83vw]"> | ||
|
||
<section class="dashboard-content w-[83vw]"> | ||
<router-outlet></router-outlet> | ||
</section> | ||
</div> | ||
</div> | ||
|
Oops, something went wrong.