From b60c5008a555ea85aae0ad72e780377f23caeba5 Mon Sep 17 00:00:00 2001 From: barhen <43050223+barhen@users.noreply.github.com> Date: Mon, 24 Jan 2022 09:00:25 +0000 Subject: [PATCH] 24th January commit --- src/app/app.module.ts | 22 +++++++++++++++- src/app/app.routing.ts | 6 +++++ src/app/layout/navigation/data.ts | 20 +++++++-------- .../admin/Adverts/adverts.component.html | 1 + .../admin/Adverts/adverts.component.scss | 0 .../admin/Adverts/adverts.component.spec.ts | 25 +++++++++++++++++++ .../pages/admin/Adverts/adverts.component.ts | 15 +++++++++++ src/app/pages/admin/Adverts/adverts.module.ts | 12 +++++++++ .../admin/Campaigns/campaigns.component.html | 1 + .../admin/Campaigns/campaigns.component.scss | 0 .../Campaigns/campaigns.component.spec.ts | 25 +++++++++++++++++++ .../admin/Campaigns/campaigns.component.ts | 15 +++++++++++ .../pages/admin/Campaigns/campaigns.module.ts | 12 +++++++++ .../admin/Coupons/coupons.component.html | 1 + .../admin/Coupons/coupons.component.scss | 0 .../admin/Coupons/coupons.component.spec.ts | 25 +++++++++++++++++++ .../pages/admin/Coupons/coupons.component.ts | 15 +++++++++++ src/app/pages/admin/Coupons/coupons.module.ts | 12 +++++++++ .../admin/Followers/followers.component.html | 1 + .../admin/Followers/followers.component.scss | 0 .../Followers/followers.component.spec.ts | 25 +++++++++++++++++++ .../admin/Followers/followers.component.ts | 15 +++++++++++ .../pages/admin/Followers/followers.module.ts | 12 +++++++++ .../Monthly_Desires/desires.component.html | 1 + .../Monthly_Desires/desires.component.scss | 0 .../Monthly_Desires/desires.component.spec.ts | 25 +++++++++++++++++++ .../Monthly_Desires/desires.component.ts | 15 +++++++++++ .../admin/Monthly_Desires/desires.module.ts | 12 +++++++++ .../admin/Products/products.component.html | 1 + .../admin/Products/products.component.scss | 0 .../admin/Products/products.component.spec.ts | 25 +++++++++++++++++++ .../admin/Products/products.component.ts | 15 +++++++++++ .../pages/admin/Products/products.module.ts | 12 +++++++++ .../admin/Profile/profile.component.html | 1 + .../admin/Profile/profile.component.scss | 0 .../admin/Profile/profile.component.spec.ts | 25 +++++++++++++++++++ .../pages/admin/Profile/profile.component.ts | 15 +++++++++++ src/app/pages/admin/Profile/profile.module.ts | 12 +++++++++ .../admin/Settings/settings.component.html | 1 + .../admin/Settings/settings.component.scss | 0 .../admin/Settings/settings.component.spec.ts | 25 +++++++++++++++++++ .../admin/Settings/settings.component.ts | 15 +++++++++++ .../pages/admin/Settings/settings.module.ts | 12 +++++++++ 43 files changed, 461 insertions(+), 11 deletions(-) create mode 100644 src/app/pages/admin/Adverts/adverts.component.html create mode 100644 src/app/pages/admin/Adverts/adverts.component.scss create mode 100644 src/app/pages/admin/Adverts/adverts.component.spec.ts create mode 100644 src/app/pages/admin/Adverts/adverts.component.ts create mode 100644 src/app/pages/admin/Adverts/adverts.module.ts create mode 100644 src/app/pages/admin/Campaigns/campaigns.component.html create mode 100644 src/app/pages/admin/Campaigns/campaigns.component.scss create mode 100644 src/app/pages/admin/Campaigns/campaigns.component.spec.ts create mode 100644 src/app/pages/admin/Campaigns/campaigns.component.ts create mode 100644 src/app/pages/admin/Campaigns/campaigns.module.ts create mode 100644 src/app/pages/admin/Coupons/coupons.component.html create mode 100644 src/app/pages/admin/Coupons/coupons.component.scss create mode 100644 src/app/pages/admin/Coupons/coupons.component.spec.ts create mode 100644 src/app/pages/admin/Coupons/coupons.component.ts create mode 100644 src/app/pages/admin/Coupons/coupons.module.ts create mode 100644 src/app/pages/admin/Followers/followers.component.html create mode 100644 src/app/pages/admin/Followers/followers.component.scss create mode 100644 src/app/pages/admin/Followers/followers.component.spec.ts create mode 100644 src/app/pages/admin/Followers/followers.component.ts create mode 100644 src/app/pages/admin/Followers/followers.module.ts create mode 100644 src/app/pages/admin/Monthly_Desires/desires.component.html create mode 100644 src/app/pages/admin/Monthly_Desires/desires.component.scss create mode 100644 src/app/pages/admin/Monthly_Desires/desires.component.spec.ts create mode 100644 src/app/pages/admin/Monthly_Desires/desires.component.ts create mode 100644 src/app/pages/admin/Monthly_Desires/desires.module.ts create mode 100644 src/app/pages/admin/Products/products.component.html create mode 100644 src/app/pages/admin/Products/products.component.scss create mode 100644 src/app/pages/admin/Products/products.component.spec.ts create mode 100644 src/app/pages/admin/Products/products.component.ts create mode 100644 src/app/pages/admin/Products/products.module.ts create mode 100644 src/app/pages/admin/Profile/profile.component.html create mode 100644 src/app/pages/admin/Profile/profile.component.scss create mode 100644 src/app/pages/admin/Profile/profile.component.spec.ts create mode 100644 src/app/pages/admin/Profile/profile.component.ts create mode 100644 src/app/pages/admin/Profile/profile.module.ts create mode 100644 src/app/pages/admin/Settings/settings.component.html create mode 100644 src/app/pages/admin/Settings/settings.component.scss create mode 100644 src/app/pages/admin/Settings/settings.component.spec.ts create mode 100644 src/app/pages/admin/Settings/settings.component.ts create mode 100644 src/app/pages/admin/Settings/settings.module.ts diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 96fb34a..753f035 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -12,6 +12,15 @@ import { mockApiServices } from 'app/mock-api'; import { LayoutModule } from 'app/layout/layout.module'; import { AppComponent } from 'app/app.component'; import { appRoutes } from 'app/app.routing'; +import { LocationStrategy, PathLocationStrategy } from '@angular/common'; +import { AdvertsComponent } from './pages/admin/Adverts/adverts.component'; +import { CampaignsComponent } from './pages/admin/Campaigns/campaigns.component'; +import { CouponsComponent } from './pages/admin/Coupons/coupons.component'; +import { FollowersComponent } from './pages/admin/Followers/followers.component'; +import { DesiresComponent } from './pages/admin/Monthly_Desires/desires.component'; +import { ProductsComponent } from './pages/admin/Products/products.component'; +import { ProfileComponent } from './pages/admin/Profile/profile.component'; +import { SettingsComponent } from './pages/admin/Settings/settings.component'; const routerConfig: ExtraOptions = { preloadingStrategy : PreloadAllModules, @@ -20,7 +29,15 @@ const routerConfig: ExtraOptions = { @NgModule({ declarations: [ - AppComponent + AppComponent, + AdvertsComponent, + CampaignsComponent, + CouponsComponent, + FollowersComponent, + DesiresComponent, + ProductsComponent, + ProfileComponent, + SettingsComponent ], imports : [ BrowserModule, @@ -41,6 +58,9 @@ const routerConfig: ExtraOptions = { // 3rd party modules that require global configuration via forRoot MarkdownModule.forRoot({}) ], + providers: [ + { provide: LocationStrategy, useClass: PathLocationStrategy }, + ], bootstrap : [ AppComponent ] diff --git a/src/app/app.routing.ts b/src/app/app.routing.ts index dddf913..387cafc 100644 --- a/src/app/app.routing.ts +++ b/src/app/app.routing.ts @@ -63,6 +63,12 @@ export const appRoutes: Route[] = [ }, children : [ {path: 'dashboard', loadChildren: () => import('app/pages/admin/Dashboard/dashboard.module').then(m => m.DashboardModule)}, + {path: 'adverts', loadChildren: () => import('app/pages/admin/Adverts/adverts.module').then(m => m.AdvertsModule)}, + {path: 'campaigns', loadChildren: () => import('app/pages/admin/Campaigns/campaigns.module').then(m => m.CampaignsModule)}, + {path: 'coupons', loadChildren: () => import('app/pages/admin/Coupons/coupons.module').then(m => m.CouponsModule)}, + {path: 'products', loadChildren: () => import('app/pages/admin/Products/products.module').then(m => m.ProductsModule)}, + {path: 'followers', loadChildren: () => import('app/pages/admin/Followers/followers.module').then(m => m.FollowersModule)}, + {path: 'desires', loadChildren: () => import('app/pages/admin/Monthly_Desires/desires.module').then(m => m.DesiresModule)}, ] } ]; diff --git a/src/app/layout/navigation/data.ts b/src/app/layout/navigation/data.ts index e5257e3..35e07a3 100644 --- a/src/app/layout/navigation/data.ts +++ b/src/app/layout/navigation/data.ts @@ -7,7 +7,7 @@ export const defaultNavigation: FuseNavigationItem[] = [ title: 'Example', type: 'basic', icon: 'heroicons_outline:chart-pie', - link: '/example' + link: '/dashboard' } ]; export const compactNavigation: FuseNavigationItem[] = [ @@ -16,50 +16,50 @@ export const compactNavigation: FuseNavigationItem[] = [ title: 'Dashboard', type: 'basic', icon: 'heroicons_outline:chart-pie', - link: '/example' + link: '/dashboard' }, { id: 'adverts', title: 'Ads', type: 'basic', - icon: 'mat_outline:ads_click', - link: '/example' + icon: 'heroicons_outline:play', + link: '/adverts' }, { id: 'campaigns', title: 'Campaigns', type: 'basic', - icon: 'heroicons_outline:play', - link: '/example' + icon: 'mat_outline:ads_click', + link: '/campaigns' }, { id: 'coupons', title: 'Coupons', type: 'basic', icon: 'heroicons_outline:credit-card', - link: '/example' + link: '/coupons' }, { id: 'products', title: 'Products', type: 'basic', icon: 'heroicons_outline:shopping-bag', - link: '/example' + link: '/products' }, { id: 'followers', title: 'Followers', type: 'basic', icon: 'heroicons_outline:users', - link: '/example' + link: '/followers' }, { id: 'desire', title: 'Monthly Desires', type: 'basic', icon: 'heroicons_outline:heart', - link: '/example' + link: '/desires' }, ]; diff --git a/src/app/pages/admin/Adverts/adverts.component.html b/src/app/pages/admin/Adverts/adverts.component.html new file mode 100644 index 0000000..819de1a --- /dev/null +++ b/src/app/pages/admin/Adverts/adverts.component.html @@ -0,0 +1 @@ +
adverts works!
diff --git a/src/app/pages/admin/Adverts/adverts.component.scss b/src/app/pages/admin/Adverts/adverts.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/pages/admin/Adverts/adverts.component.spec.ts b/src/app/pages/admin/Adverts/adverts.component.spec.ts new file mode 100644 index 0000000..bcbfb1d --- /dev/null +++ b/src/app/pages/admin/Adverts/adverts.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { AdvertsComponent } from './adverts.component'; + +describe('AdvertsComponent', () => { + let component: AdvertsComponent; + let fixture: ComponentFixturecampaigns works!
diff --git a/src/app/pages/admin/Campaigns/campaigns.component.scss b/src/app/pages/admin/Campaigns/campaigns.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/pages/admin/Campaigns/campaigns.component.spec.ts b/src/app/pages/admin/Campaigns/campaigns.component.spec.ts new file mode 100644 index 0000000..720c6b6 --- /dev/null +++ b/src/app/pages/admin/Campaigns/campaigns.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { CampaignsComponent } from './campaigns.component'; + +describe('CampaignsComponent', () => { + let component: CampaignsComponent; + let fixture: ComponentFixturecoupons works!
diff --git a/src/app/pages/admin/Coupons/coupons.component.scss b/src/app/pages/admin/Coupons/coupons.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/pages/admin/Coupons/coupons.component.spec.ts b/src/app/pages/admin/Coupons/coupons.component.spec.ts new file mode 100644 index 0000000..e45fd9d --- /dev/null +++ b/src/app/pages/admin/Coupons/coupons.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { CouponsComponent } from './coupons.component'; + +describe('CouponsComponent', () => { + let component: CouponsComponent; + let fixture: ComponentFixturefollowers works!
diff --git a/src/app/pages/admin/Followers/followers.component.scss b/src/app/pages/admin/Followers/followers.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/pages/admin/Followers/followers.component.spec.ts b/src/app/pages/admin/Followers/followers.component.spec.ts new file mode 100644 index 0000000..8d1c108 --- /dev/null +++ b/src/app/pages/admin/Followers/followers.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { FollowersComponent } from './followers.component'; + +describe('FollowersComponent', () => { + let component: FollowersComponent; + let fixture: ComponentFixturedesires works!
diff --git a/src/app/pages/admin/Monthly_Desires/desires.component.scss b/src/app/pages/admin/Monthly_Desires/desires.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/pages/admin/Monthly_Desires/desires.component.spec.ts b/src/app/pages/admin/Monthly_Desires/desires.component.spec.ts new file mode 100644 index 0000000..e9f31f1 --- /dev/null +++ b/src/app/pages/admin/Monthly_Desires/desires.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { DesiresComponent } from './desires.component'; + +describe('DesiresComponent', () => { + let component: DesiresComponent; + let fixture: ComponentFixtureproducts works!
diff --git a/src/app/pages/admin/Products/products.component.scss b/src/app/pages/admin/Products/products.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/pages/admin/Products/products.component.spec.ts b/src/app/pages/admin/Products/products.component.spec.ts new file mode 100644 index 0000000..f471086 --- /dev/null +++ b/src/app/pages/admin/Products/products.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ProductsComponent } from './products.component'; + +describe('ProductsComponent', () => { + let component: ProductsComponent; + let fixture: ComponentFixtureprofile works!
diff --git a/src/app/pages/admin/Profile/profile.component.scss b/src/app/pages/admin/Profile/profile.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/pages/admin/Profile/profile.component.spec.ts b/src/app/pages/admin/Profile/profile.component.spec.ts new file mode 100644 index 0000000..e88012e --- /dev/null +++ b/src/app/pages/admin/Profile/profile.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ProfileComponent } from './profile.component'; + +describe('ProfileComponent', () => { + let component: ProfileComponent; + let fixture: ComponentFixturesettings works!
diff --git a/src/app/pages/admin/Settings/settings.component.scss b/src/app/pages/admin/Settings/settings.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/pages/admin/Settings/settings.component.spec.ts b/src/app/pages/admin/Settings/settings.component.spec.ts new file mode 100644 index 0000000..a3a508b --- /dev/null +++ b/src/app/pages/admin/Settings/settings.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { SettingsComponent } from './settings.component'; + +describe('SettingsComponent', () => { + let component: SettingsComponent; + let fixture: ComponentFixture