Browse Source

24th January commit

devBranch
barhen 3 years ago
parent
commit
b60c5008a5
  1. 22
      src/app/app.module.ts
  2. 6
      src/app/app.routing.ts
  3. 20
      src/app/layout/navigation/data.ts
  4. 1
      src/app/pages/admin/Adverts/adverts.component.html
  5. 0
      src/app/pages/admin/Adverts/adverts.component.scss
  6. 25
      src/app/pages/admin/Adverts/adverts.component.spec.ts
  7. 15
      src/app/pages/admin/Adverts/adverts.component.ts
  8. 12
      src/app/pages/admin/Adverts/adverts.module.ts
  9. 1
      src/app/pages/admin/Campaigns/campaigns.component.html
  10. 0
      src/app/pages/admin/Campaigns/campaigns.component.scss
  11. 25
      src/app/pages/admin/Campaigns/campaigns.component.spec.ts
  12. 15
      src/app/pages/admin/Campaigns/campaigns.component.ts
  13. 12
      src/app/pages/admin/Campaigns/campaigns.module.ts
  14. 1
      src/app/pages/admin/Coupons/coupons.component.html
  15. 0
      src/app/pages/admin/Coupons/coupons.component.scss
  16. 25
      src/app/pages/admin/Coupons/coupons.component.spec.ts
  17. 15
      src/app/pages/admin/Coupons/coupons.component.ts
  18. 12
      src/app/pages/admin/Coupons/coupons.module.ts
  19. 1
      src/app/pages/admin/Followers/followers.component.html
  20. 0
      src/app/pages/admin/Followers/followers.component.scss
  21. 25
      src/app/pages/admin/Followers/followers.component.spec.ts
  22. 15
      src/app/pages/admin/Followers/followers.component.ts
  23. 12
      src/app/pages/admin/Followers/followers.module.ts
  24. 1
      src/app/pages/admin/Monthly_Desires/desires.component.html
  25. 0
      src/app/pages/admin/Monthly_Desires/desires.component.scss
  26. 25
      src/app/pages/admin/Monthly_Desires/desires.component.spec.ts
  27. 15
      src/app/pages/admin/Monthly_Desires/desires.component.ts
  28. 12
      src/app/pages/admin/Monthly_Desires/desires.module.ts
  29. 1
      src/app/pages/admin/Products/products.component.html
  30. 0
      src/app/pages/admin/Products/products.component.scss
  31. 25
      src/app/pages/admin/Products/products.component.spec.ts
  32. 15
      src/app/pages/admin/Products/products.component.ts
  33. 12
      src/app/pages/admin/Products/products.module.ts
  34. 1
      src/app/pages/admin/Profile/profile.component.html
  35. 0
      src/app/pages/admin/Profile/profile.component.scss
  36. 25
      src/app/pages/admin/Profile/profile.component.spec.ts
  37. 15
      src/app/pages/admin/Profile/profile.component.ts
  38. 12
      src/app/pages/admin/Profile/profile.module.ts
  39. 1
      src/app/pages/admin/Settings/settings.component.html
  40. 0
      src/app/pages/admin/Settings/settings.component.scss
  41. 25
      src/app/pages/admin/Settings/settings.component.spec.ts
  42. 15
      src/app/pages/admin/Settings/settings.component.ts
  43. 12
      src/app/pages/admin/Settings/settings.module.ts

22
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
]

6
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)},
]
}
];

20
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'
},
];

1
src/app/pages/admin/Adverts/adverts.component.html

@ -0,0 +1 @@
<p>adverts works!</p>

0
src/app/pages/admin/Adverts/adverts.component.scss

25
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: ComponentFixture<AdvertsComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ AdvertsComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(AdvertsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

15
src/app/pages/admin/Adverts/adverts.component.ts

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-adverts',
templateUrl: './adverts.component.html',
styleUrls: ['./adverts.component.scss']
})
export class AdvertsComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

12
src/app/pages/admin/Adverts/adverts.module.ts

@ -0,0 +1,12 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
@NgModule({
declarations: [],
imports: [
CommonModule
]
})
export class AdvertsModule { }

1
src/app/pages/admin/Campaigns/campaigns.component.html

@ -0,0 +1 @@
<p>campaigns works!</p>

0
src/app/pages/admin/Campaigns/campaigns.component.scss

25
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: ComponentFixture<CampaignsComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ CampaignsComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(CampaignsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

15
src/app/pages/admin/Campaigns/campaigns.component.ts

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-campaigns',
templateUrl: './campaigns.component.html',
styleUrls: ['./campaigns.component.scss']
})
export class CampaignsComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

12
src/app/pages/admin/Campaigns/campaigns.module.ts

@ -0,0 +1,12 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
@NgModule({
declarations: [],
imports: [
CommonModule
]
})
export class CampaignsModule { }

1
src/app/pages/admin/Coupons/coupons.component.html

@ -0,0 +1 @@
<p>coupons works!</p>

0
src/app/pages/admin/Coupons/coupons.component.scss

25
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: ComponentFixture<CouponsComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ CouponsComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(CouponsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

15
src/app/pages/admin/Coupons/coupons.component.ts

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-coupons',
templateUrl: './coupons.component.html',
styleUrls: ['./coupons.component.scss']
})
export class CouponsComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

12
src/app/pages/admin/Coupons/coupons.module.ts

@ -0,0 +1,12 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
@NgModule({
declarations: [],
imports: [
CommonModule
]
})
export class CouponsModule { }

1
src/app/pages/admin/Followers/followers.component.html

@ -0,0 +1 @@
<p>followers works!</p>

0
src/app/pages/admin/Followers/followers.component.scss

25
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: ComponentFixture<FollowersComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ FollowersComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(FollowersComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

15
src/app/pages/admin/Followers/followers.component.ts

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-followers',
templateUrl: './followers.component.html',
styleUrls: ['./followers.component.scss']
})
export class FollowersComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

12
src/app/pages/admin/Followers/followers.module.ts

@ -0,0 +1,12 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
@NgModule({
declarations: [],
imports: [
CommonModule
]
})
export class FollowersModule { }

1
src/app/pages/admin/Monthly_Desires/desires.component.html

@ -0,0 +1 @@
<p>desires works!</p>

0
src/app/pages/admin/Monthly_Desires/desires.component.scss

25
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: ComponentFixture<DesiresComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ DesiresComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(DesiresComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

15
src/app/pages/admin/Monthly_Desires/desires.component.ts

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-desires',
templateUrl: './desires.component.html',
styleUrls: ['./desires.component.scss']
})
export class DesiresComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

12
src/app/pages/admin/Monthly_Desires/desires.module.ts

@ -0,0 +1,12 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
@NgModule({
declarations: [],
imports: [
CommonModule
]
})
export class DesiresModule { }

1
src/app/pages/admin/Products/products.component.html

@ -0,0 +1 @@
<p>products works!</p>

0
src/app/pages/admin/Products/products.component.scss

25
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: ComponentFixture<ProductsComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ ProductsComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(ProductsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

15
src/app/pages/admin/Products/products.component.ts

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-products',
templateUrl: './products.component.html',
styleUrls: ['./products.component.scss']
})
export class ProductsComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

12
src/app/pages/admin/Products/products.module.ts

@ -0,0 +1,12 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
@NgModule({
declarations: [],
imports: [
CommonModule
]
})
export class ProductsModule { }

1
src/app/pages/admin/Profile/profile.component.html

@ -0,0 +1 @@
<p>profile works!</p>

0
src/app/pages/admin/Profile/profile.component.scss

25
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: ComponentFixture<ProfileComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ ProfileComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(ProfileComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

15
src/app/pages/admin/Profile/profile.component.ts

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-profile',
templateUrl: './profile.component.html',
styleUrls: ['./profile.component.scss']
})
export class ProfileComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

12
src/app/pages/admin/Profile/profile.module.ts

@ -0,0 +1,12 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
@NgModule({
declarations: [],
imports: [
CommonModule
]
})
export class ProfileModule { }

1
src/app/pages/admin/Settings/settings.component.html

@ -0,0 +1 @@
<p>settings works!</p>

0
src/app/pages/admin/Settings/settings.component.scss

25
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<SettingsComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ SettingsComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(SettingsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

15
src/app/pages/admin/Settings/settings.component.ts

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-settings',
templateUrl: './settings.component.html',
styleUrls: ['./settings.component.scss']
})
export class SettingsComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

12
src/app/pages/admin/Settings/settings.module.ts

@ -0,0 +1,12 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
@NgModule({
declarations: [],
imports: [
CommonModule
]
})
export class SettingsModule { }
Loading…
Cancel
Save