Skip to content

Admin dashboard #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Cosna Admin Cpanel
# Angular Admin Cpanel

🚀 Admin panel boilerplate to quickly scaffold any large scale enterprise application for Angular. Built with the Tailwind, fully customizable and developer-first.
This project use ANgular 13+

> This project use Angular 13+

### ⏳ Installation

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div>
<logo-svg class="h-auto w-36"></logo-svg>
<h2 class="mt-6 text-3xl font-semibold text-slate-900">Mot de passe oublié?</h2>
<p class="mt-2 text-sm text-slate-600">
<logo-svg class="h-auto w-36 text-slate-900 dark:text-white"></logo-svg>
<h2 class="mt-6 text-3xl font-semibold text-slate-900 dark:text-white">Mot de passe oublié?</h2>
<p class="mt-2 text-sm text-slate-500 dark:text-slate-400">
Saisissez votre adresse e-mail et nous vous enverrons un lien pour réinitialiser votre mot de passe.
</p>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div>
<logo-svg class="h-auto w-36"></logo-svg>
<h2 class="mt-6 text-3xl font-semibold text-slate-900">Connectez-vous</h2>
<p class="mt-2 text-sm text-slate-600">
<logo-svg class="h-auto w-36 text-slate-900 dark:text-white"></logo-svg>
<h2 class="mt-6 text-3xl font-semibold text-slate-900 dark:text-white">Connectez-vous</h2>
<p class="mt-2 text-sm text-slate-500 dark:text-slate-400">
Admin Panel - Administration de la votre plateforme.
</p>
</div>
Expand Down Expand Up @@ -35,7 +35,7 @@ <h2 class="mt-6 text-3xl font-semibold text-slate-900">Connectez-vous</h2>
<div class="flex items-center justify-between">
<label for="remember-me" class="flex items-center cursor-pointer">
<input id="remember-me" name="remember-me" type="checkbox" class="w-4 h-4 rounded text-primary-600 border-slate-300 focus:ring-primary-500">
<span class="block ml-2 text-sm text-slate-900"> Se souvenir de moi </span>
<span class="block ml-2 text-sm text-slate-700 dark:text-slate-300"> Se souvenir de moi </span>
</label>

<div class="text-sm">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div>
<logo-svg class="h-auto w-36"></logo-svg>
<h2 class="mt-6 text-3xl font-semibold text-slate-900">Réinitialisation Mot de passe</h2>
<p class="mt-2 text-sm text-slate-600">
<logo-svg class="h-auto w-36 text-slate-900 dark:text-white"></logo-svg>
<h2 class="mt-6 text-3xl font-semibold text-slate-900 dark:text-white">Réinitialisation Mot de passe</h2>
<p class="mt-2 text-sm text-slate-500 dark:text-slate-400">
Veuillez renseignez votre nouveau mot de passe pour vous connectez.
</p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { LoginComponent } from '../pages/login/login.component';
import { ResetPasswordComponent } from '../pages/reset-password/reset-password.component';

export const AUTH_ROUTES: Routes = [
{ path: '', redirectTo: 'auth/login', pathMatch: 'full' },
{ path: '', redirectTo: '/auth/login', pathMatch: 'full' },
{
path: '',
canActivate: [GuestGuard],
Expand Down
27 changes: 10 additions & 17 deletions src/app/modules/dashboard/navigation/admin.menu.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ADMIN_ROLE, DEVELOPER_ROLE } from '@app/core/guards/user.roles';
import { ADMIN_ROLE } from '@app/core/guards/user.roles';
import { Menu } from '@app/shared/interfaces/menu';

export const adminMenu: Menu[] = [
Expand All @@ -11,15 +11,16 @@ export const adminMenu: Menu[] = [
'M12 16v5m6 0-3.951-3.293c-.73-.607-1.094-.91-1.5-1.027a2 2 0 0 0-1.098 0c-.406.116-.77.42-1.5 1.027L6 21m2-10v1m4-3v3m4-5v5m6-9H2m1 0h18v8.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 16 17.88 16 16.2 16H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 13.72 3 12.88 3 11.2V3Z',
],
link: '/dashboard',
roles: [ADMIN_ROLE, DEVELOPER_ROLE],
roles: [ADMIN_ROLE],
},
{
title: 'Transactions',
title: 'Statistiques',
svgPath: [
'm6 6 2-2m0 0L6 2m2 2H6a4 4 0 0 0-4 4m16 10-2 2m0 0 2 2m-2-2h2a4 4 0 0 0 4-4M10.189 6.5a6 6 0 1 1 7.311 7.311M14 16a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z',
'M10.5 6a7.5 7.5 0 107.5 7.5h-7.5V6z',
'M13.5 10.5H21A7.5 7.5 0 0013.5 3v7.5z',
],
link: '/transactions',
roles: [ADMIN_ROLE, DEVELOPER_ROLE],
link: '/stats',
roles: [ADMIN_ROLE],
},
],
},
Expand All @@ -35,9 +36,9 @@ export const adminMenu: Menu[] = [
roles: [ADMIN_ROLE],
},
{
title: 'Promotions',
title: 'Roles & Permissions',
svgPath: [
'M16.5 6v.75m0 3v.75m0 3v.75m0 3V18m-9-5.25h5.25M7.5 15h3M3.375 5.25c-.621 0-1.125.504-1.125 1.125v3.026a2.999 2.999 0 0 1 0 5.198v3.026c0 .621.504 1.125 1.125 1.125h17.25c.621 0 1.125-.504 1.125-1.125v-3.026a2.999 2.999 0 0 1 0-5.198V6.375c0-.621-.504-1.125-1.125-1.125H3.375Z',
'M15.75 5.25a3 3 0 013 3m3 0a6 6 0 01-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1121.75 8.25z',
],
link: '/promotions',
roles: [ADMIN_ROLE],
Expand All @@ -54,15 +55,7 @@ export const adminMenu: Menu[] = [
'M18.727 14.727a1.5 1.5 0 0 0 .3 1.655l.055.054a1.816 1.816 0 0 1 0 2.573 1.818 1.818 0 0 1-2.573 0l-.055-.055a1.5 1.5 0 0 0-1.654-.3 1.5 1.5 0 0 0-.91 1.373v.155a1.818 1.818 0 1 1-3.636 0V20.1a1.5 1.5 0 0 0-.981-1.373 1.5 1.5 0 0 0-1.655.3l-.054.055a1.818 1.818 0 0 1-3.106-1.287 1.818 1.818 0 0 1 .533-1.286l.054-.055a1.5 1.5 0 0 0 .3-1.654 1.5 1.5 0 0 0-1.372-.91h-.155a1.818 1.818 0 1 1 0-3.636H3.9a1.5 1.5 0 0 0 1.373-.981 1.5 1.5 0 0 0-.3-1.655l-.055-.054A1.818 1.818 0 1 1 7.491 4.99l.054.054a1.5 1.5 0 0 0 1.655.3h.073a1.5 1.5 0 0 0 .909-1.372v-.155a1.818 1.818 0 0 1 3.636 0V3.9a1.499 1.499 0 0 0 .91 1.373 1.5 1.5 0 0 0 1.654-.3l.054-.055a1.817 1.817 0 0 1 2.573 0 1.819 1.819 0 0 1 0 2.573l-.055.054a1.5 1.5 0 0 0-.3 1.655v.073a1.5 1.5 0 0 0 1.373.909h.155a1.818 1.818 0 0 1 0 3.636H20.1a1.499 1.499 0 0 0-1.373.91Z',
],
link: '/settings',
roles: [DEVELOPER_ROLE],
},
{
title: 'Rapports',
svgPath: [
'M14 2.27V6.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437c.214.11.494.11 1.054.11h4.13M16 13H8m8 4H8m2-8H8m6-7H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 4.28 4 5.12 4 6.8v10.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 22 7.12 22 8.8 22h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 19.72 20 18.88 20 17.2V8l-6-6Z',
],
link: '/reports',
roles: [ADMIN_ROLE, DEVELOPER_ROLE],
roles: [ADMIN_ROLE],
},
],
},
Expand Down
Loading