diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index 0e949ad..bd29bf1 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -11,12 +11,9 @@ import { SharedModule } from './shared/shared.module';
import { ProductsModule } from './components/products/products.module';
import { SalesModule } from './components/sales/sales.module';
import { CouponsModule } from './components/coupons/coupons.module';
-import { PagesModule } from './components/pages/pages.module';
-import { MediaModule } from './components/media/media.module';
import { MenusModule } from './components/menus/menus.module';
import { VendorsModule } from './components/vendors/vendors.module';
import { UsersModule } from './components/users/users.module';
-import { LocalizationModule } from './components/localization/localization.module';
import { AccountModule } from './components/account/account.module';
import { SettingModule } from './components/setting/setting.module';
import { ReportsModule } from './components/reports/reports.module';
@@ -43,14 +40,10 @@ import { AuthInterceptor } from "./shared/inceptor/auth-interceptor";
ReportsModule,
AuthModule,
SharedModule,
- LocalizationModule,
ProductsModule,
SalesModule,
- // NgImageSliderModule,
VendorsModule,
CouponsModule,
- PagesModule,
- MediaModule,
MenusModule,
UsersModule,
AgGridModule,
diff --git a/src/app/components/localization/localization-routing.module.ts b/src/app/components/localization/localization-routing.module.ts
deleted file mode 100644
index 1383b69..0000000
--- a/src/app/components/localization/localization-routing.module.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-import { NgModule } from '@angular/core';
-import { Routes, RouterModule } from '@angular/router';
-import { RatesComponent } from './rates/rates.component';
-import { TranslationsComponent } from './translations/translations.component';
-import { TaxesComponent } from './taxes/taxes.component';
-
-
-const routes: Routes = [
- {
- path: 'translations',
- component: TranslationsComponent,
- data: {
- title: "Translations",
- breadcrumb: "Translations"
- }
- },
- {
- path: 'currency-rates',
- component: RatesComponent,
- data: {
- title: "Currency Rates",
- breadcrumb: "Currency Rates"
- }
- },
- {
- path: 'taxes',
- component: TaxesComponent,
- data: {
- title: 'Taxes',
- breadcrumb: 'Taxes'
- }
- }
-];
-
-@NgModule({
- imports: [RouterModule.forChild(routes)],
- exports: [RouterModule]
-})
-export class LocalizationRoutingModule { }
diff --git a/src/app/components/localization/localization.module.ts b/src/app/components/localization/localization.module.ts
deleted file mode 100644
index b6f25fc..0000000
--- a/src/app/components/localization/localization.module.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-import { NgModule } from '@angular/core';
-import { CommonModule } from '@angular/common';
-
-import { LocalizationRoutingModule } from './localization-routing.module';
-import { TranslationsComponent } from './translations/translations.component';
-import { RatesComponent } from './rates/rates.component';
-import { TaxesComponent } from './taxes/taxes.component';
-import { SharedModule } from 'src/app/shared/shared.module';
-import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
-
-
-@NgModule({
- declarations: [TranslationsComponent, RatesComponent, TaxesComponent],
- imports: [
- CommonModule,
- LocalizationRoutingModule,
- SharedModule,
- NgbModule
- ]
-})
-export class LocalizationModule { }
diff --git a/src/app/components/localization/rates/rates.component.html b/src/app/components/localization/rates/rates.component.html
deleted file mode 100644
index ea56bf5..0000000
--- a/src/app/components/localization/rates/rates.component.html
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- | Currency Title |
- USD |
- Code |
- Exchange Rate |
- Actions |
-
-
-
-
- |
- {{item.title}}
- |
-
- {{item.usd}}
- |
- {{item.code}} |
- {{item.rate}} |
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/app/components/localization/rates/rates.component.scss b/src/app/components/localization/rates/rates.component.scss
deleted file mode 100644
index e69de29..0000000
diff --git a/src/app/components/localization/rates/rates.component.ts b/src/app/components/localization/rates/rates.component.ts
deleted file mode 100644
index 106a9c6..0000000
--- a/src/app/components/localization/rates/rates.component.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-import { DecimalPipe } from '@angular/common';
-import { Component, OnInit, QueryList, ViewChildren } from '@angular/core';
-import { Observable } from 'rxjs';
-import { NgbdSortableHeader, SortEvent } from 'src/app/shared/directives/NgbdSortableHeader';
-import { TableService } from 'src/app/shared/service/table.service';
-import { RateDB, RATEDB } from '../../../shared/tables/rate';
-
-@Component({
- selector: 'app-rates',
- templateUrl: './rates.component.html',
- styleUrls: ['./rates.component.scss'],
- providers: [TableService, DecimalPipe]
-})
-export class RatesComponent implements OnInit {
-
- public tableItem$: Observable;
- public searchText;
- total$: Observable;
-
- constructor(public service: TableService) {
- this.tableItem$ = service.tableItem$;
- this.total$ = service.total$;
- this.service.setUserData(RATEDB)
- }
-
- @ViewChildren(NgbdSortableHeader) headers: QueryList;
-
- onSort({ column, direction }: SortEvent) {
- // resetting other headers
- this.headers.forEach((header) => {
- if (header.sortable !== column) {
- header.direction = '';
- }
- });
-
- this.service.sortColumn = column;
- this.service.sortDirection = direction;
-
- }
-
-
-
- ngOnInit() {
- }
-
-}
diff --git a/src/app/components/localization/taxes/taxes.component.html b/src/app/components/localization/taxes/taxes.component.html
deleted file mode 100644
index 8a843f5..0000000
--- a/src/app/components/localization/taxes/taxes.component.html
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- | Currency Title |
- USD |
- Code |
- Exchange Rate |
- Actions |
-
-
-
-
- |
- {{item.detail}}
- |
-
- {{item.tax_schedule}}
- |
- {{item.rate}} |
- {{item.total_amount}} |
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/app/components/localization/taxes/taxes.component.scss b/src/app/components/localization/taxes/taxes.component.scss
deleted file mode 100644
index e69de29..0000000
diff --git a/src/app/components/localization/taxes/taxes.component.ts b/src/app/components/localization/taxes/taxes.component.ts
deleted file mode 100644
index 1eabc1a..0000000
--- a/src/app/components/localization/taxes/taxes.component.ts
+++ /dev/null
@@ -1,43 +0,0 @@
-import { DecimalPipe } from '@angular/common';
-import { Component, OnInit, QueryList, ViewChildren } from '@angular/core';
-import { Observable } from 'rxjs';
-import { NgbdSortableHeader, SortEvent } from 'src/app/shared/directives/NgbdSortableHeader';
-import { TableService } from 'src/app/shared/service/table.service';
-import { TaxesDB, TAXESDB } from '../../../shared/tables/taxes';
-
-@Component({
- selector: 'app-taxes',
- templateUrl: './taxes.component.html',
- styleUrls: ['./taxes.component.scss'],
- providers: [TableService, DecimalPipe]
-})
-export class TaxesComponent implements OnInit {
- public tableItem$: Observable;
- public searchText;
- total$: Observable;
-
- constructor(public service: TableService) {
- this.tableItem$ = service.tableItem$;
- this.total$ = service.total$;
- this.service.setUserData(TAXESDB)
- }
-
- @ViewChildren(NgbdSortableHeader) headers: QueryList;
-
- onSort({ column, direction }: SortEvent) {
- // resetting other headers
- this.headers.forEach((header) => {
- if (header.sortable !== column) {
- header.direction = '';
- }
- });
-
- this.service.sortColumn = column;
- this.service.sortDirection = direction;
-
- }
-
- ngOnInit() {
- }
-
-}
diff --git a/src/app/components/localization/translations/translations.component.html b/src/app/components/localization/translations/translations.component.html
deleted file mode 100644
index a9af77d..0000000
--- a/src/app/components/localization/translations/translations.component.html
+++ /dev/null
@@ -1,51 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- | User Key |
- Russian |
- Arbic |
- English |
- Actions |
-
-
-
-
- |
- {{item.user_key}}
- |
-
- {{item.russian}}
- |
- {{item.arabic}} |
- {{item.english}} |
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/app/components/localization/translations/translations.component.scss b/src/app/components/localization/translations/translations.component.scss
deleted file mode 100644
index e69de29..0000000
diff --git a/src/app/components/localization/translations/translations.component.ts b/src/app/components/localization/translations/translations.component.ts
deleted file mode 100644
index bbf8687..0000000
--- a/src/app/components/localization/translations/translations.component.ts
+++ /dev/null
@@ -1,45 +0,0 @@
-import { DecimalPipe } from '@angular/common';
-import { Component, OnInit, QueryList, ViewChildren } from '@angular/core';
-import { Observable } from 'rxjs';
-import { NgbdSortableHeader, SortEvent } from 'src/app/shared/directives/NgbdSortableHeader';
-import { TableService } from 'src/app/shared/service/table.service';
-import { TRANSLATIONDB, TranslationsDB } from '../../../shared/tables/translations';
-
-@Component({
- selector: 'app-translations',
- templateUrl: './translations.component.html',
- styleUrls: ['./translations.component.scss'],
- providers: [TableService, DecimalPipe]
-})
-export class TranslationsComponent implements OnInit {
-
- public tableItem$: Observable;
- public searchText;
- total$: Observable;
-
- constructor(public service: TableService) {
- this.tableItem$ = service.tableItem$;
- this.total$ = service.total$;
- this.service.setUserData(TRANSLATIONDB)
- }
-
- @ViewChildren(NgbdSortableHeader) headers: QueryList;
-
- onSort({ column, direction }: SortEvent) {
- // resetting other headers
- this.headers.forEach((header) => {
- if (header.sortable !== column) {
- header.direction = '';
- }
- });
-
- this.service.sortColumn = column;
- this.service.sortDirection = direction;
-
- }
-
-
- ngOnInit() {
- }
-
-}
diff --git a/src/app/components/media/media-routing.module.ts b/src/app/components/media/media-routing.module.ts
deleted file mode 100644
index 6a9cad8..0000000
--- a/src/app/components/media/media-routing.module.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import { NgModule } from '@angular/core';
-import { Routes, RouterModule } from '@angular/router';
-import { MediaComponent } from './media/media.component';
-
-const routes: Routes = [
- {
- path: '',
- children: [
- {
- path: '',
- component: MediaComponent,
- data: {
- title: "Media",
- breadcrumb: "Media"
- }
- }
- ]
- }
-];
-
-@NgModule({
- imports: [RouterModule.forChild(routes)],
- exports: [RouterModule]
-})
-export class MediaRoutingModule { }
diff --git a/src/app/components/media/media.module.ts b/src/app/components/media/media.module.ts
deleted file mode 100644
index 97c27e2..0000000
--- a/src/app/components/media/media.module.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-import { NgModule } from '@angular/core';
-import { CommonModule } from '@angular/common';
-
-import { MediaRoutingModule } from './media-routing.module';
-import { MediaComponent } from './media/media.component';
-import { NgxDropzoneModule } from 'ngx-dropzone';
-import { SharedModule } from 'src/app/shared/shared.module';
-import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
-
-
-@NgModule({
- declarations: [MediaComponent],
- imports: [
- CommonModule,
- MediaRoutingModule,
- NgxDropzoneModule,
- SharedModule,
- NgbModule
- ]
-})
-export class MediaModule { }
diff --git a/src/app/components/media/media/media.component.html b/src/app/components/media/media/media.component.html
deleted file mode 100644
index 9504b21..0000000
--- a/src/app/components/media/media/media.component.html
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
Drop files here or click to upload.
-
-
-
- {{ f.name }} ({{ f.type }})
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/app/components/media/media/media.component.scss b/src/app/components/media/media/media.component.scss
deleted file mode 100644
index e69de29..0000000
diff --git a/src/app/components/media/media/media.component.ts b/src/app/components/media/media/media.component.ts
deleted file mode 100644
index 675e489..0000000
--- a/src/app/components/media/media/media.component.ts
+++ /dev/null
@@ -1,55 +0,0 @@
-import { DecimalPipe } from '@angular/common';
-import { Component, OnInit, QueryList, ViewChildren } from '@angular/core';
-import { DropzoneConfigInterface } from 'ngx-dropzone-wrapper';
-import { Observable } from 'rxjs';
-import { NgbdSortableHeader, SortEvent } from 'src/app/shared/directives/NgbdSortableHeader';
-import { TableService } from 'src/app/shared/service/table.service';
-import { MediaDB, MEDIADB } from 'src/app/shared/tables/media';
-
-@Component({
- selector: 'app-media',
- templateUrl: './media.component.html',
- styleUrls: ['./media.component.scss'],
- providers: [TableService, DecimalPipe]
-})
-export class MediaComponent implements OnInit {
-
- public tableItem$: Observable;
- public searchText;
- total$: Observable;
-
- constructor(public service: TableService) {
- this.tableItem$ = service.tableItem$;
- this.total$ = service.total$;
- this.service.setUserData(MEDIADB)
- }
-
- @ViewChildren(NgbdSortableHeader) headers: QueryList;
-
- onSort({ column, direction }: SortEvent) {
- // resetting other headers
- this.headers.forEach((header) => {
- if (header.sortable !== column) {
- header.direction = '';
- }
- });
-
- this.service.sortColumn = column;
- this.service.sortDirection = direction;
-
- }
-
- files: File[] = [];
-
- onSelect(event) {
- this.files.push(...event.addedFiles);
- }
-
- onRemove(event) {
- this.files.splice(this.files.indexOf(event), 1);
- }
-
- ngOnInit() {
- }
-
-}
diff --git a/src/app/components/pages/create-page/create-page.component.html b/src/app/components/pages/create-page/create-page.component.html
deleted file mode 100644
index a650f4d..0000000
--- a/src/app/components/pages/create-page/create-page.component.html
+++ /dev/null
@@ -1,79 +0,0 @@
-
-
-
-
-
-
- -
- General
-
-
-
-
- -
- SEO
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/app/components/pages/create-page/create-page.component.scss b/src/app/components/pages/create-page/create-page.component.scss
deleted file mode 100644
index e69de29..0000000
diff --git a/src/app/components/pages/create-page/create-page.component.ts b/src/app/components/pages/create-page/create-page.component.ts
deleted file mode 100644
index 90776c0..0000000
--- a/src/app/components/pages/create-page/create-page.component.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-import { Component, OnInit } from '@angular/core';
-import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
-
-@Component({
- selector: 'app-create-page',
- templateUrl: './create-page.component.html',
- styleUrls: ['./create-page.component.scss']
-})
-export class CreatePageComponent implements OnInit {
- public generalForm: UntypedFormGroup;
- public seoForm: UntypedFormGroup;
- public active = 1;
-
- constructor(private formBuilder: UntypedFormBuilder) {
- this.createGeneralForm();
- this.createSeoForm();
- }
-
- createGeneralForm() {
- this.generalForm = this.formBuilder.group({
- name: [''],
- desc: [''],
- status: ['']
- })
- }
- createSeoForm() {
- this.seoForm = this.formBuilder.group({
- title: [''],
- keyword: [''],
- meta_desc: ['']
- })
- }
-
- ngOnInit() {
- }
-
-}
diff --git a/src/app/components/pages/list-page/list-page.component.html b/src/app/components/pages/list-page/list-page.component.html
deleted file mode 100644
index 3c4315c..0000000
--- a/src/app/components/pages/list-page/list-page.component.html
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/src/app/components/pages/list-page/list-page.component.scss b/src/app/components/pages/list-page/list-page.component.scss
deleted file mode 100644
index e69de29..0000000
diff --git a/src/app/components/pages/list-page/list-page.component.ts b/src/app/components/pages/list-page/list-page.component.ts
deleted file mode 100644
index bbbacf8..0000000
--- a/src/app/components/pages/list-page/list-page.component.ts
+++ /dev/null
@@ -1,49 +0,0 @@
-import { DecimalPipe } from '@angular/common';
-import { Component, OnInit, QueryList, ViewChildren } from '@angular/core';
-import { Observable } from 'rxjs';
-import { NgbdSortableHeader, SortEvent } from 'src/app/shared/directives/NgbdSortableHeader';
-import { TableService } from 'src/app/shared/service/table.service';
-import { LISTPAGEDB, ListPagesDB } from 'src/app/shared/tables/list-pages';
-
-@Component({
- selector: 'app-list-page',
- templateUrl: './list-page.component.html',
- styleUrls: ['./list-page.component.scss'],
- providers: [TableService, DecimalPipe]
-})
-export class ListPageComponent implements OnInit {
- public selected = [];
- public tableItem$: Observable;
- public searchText;
- total$: Observable;
-
- constructor(public service: TableService) {
- this.tableItem$ = service.tableItem$;
- this.total$ = service.total$;
- this.service.setUserData(LISTPAGEDB)
- }
-
- @ViewChildren(NgbdSortableHeader) headers: QueryList;
-
- onSort({ column, direction }: SortEvent) {
- // resetting other headers
- this.headers.forEach((header) => {
- if (header.sortable !== column) {
- header.direction = '';
- }
- });
-
- this.service.sortColumn = column;
- this.service.sortDirection = direction;
-
- }
-
- onSelect({ selected }) {
- this.selected.splice(0, this.selected.length);
- this.selected.push(...selected);
- }
-
- ngOnInit() {
- }
-
-}
diff --git a/src/app/components/pages/pages-routing.module.ts b/src/app/components/pages/pages-routing.module.ts
deleted file mode 100644
index ba8772a..0000000
--- a/src/app/components/pages/pages-routing.module.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-import { NgModule, Component } from '@angular/core';
-import { Routes, RouterModule } from '@angular/router';
-import { ListPageComponent } from './list-page/list-page.component';
-import { CreatePageComponent } from './create-page/create-page.component';
-
-const routes: Routes = [
- {
- path: '',
- children: [
- {
- path: 'list-page',
- component: ListPageComponent,
- data: {
- title: "List Page",
- breadcrumb: "List Page"
- }
- },
- {
- path: 'create-page',
- component: CreatePageComponent,
- data: {
- title: "Create Page",
- breadcrumb: "Create Page"
- }
- }
- ]
- }
-];
-
-@NgModule({
- imports: [RouterModule.forChild(routes)],
- exports: [RouterModule]
-})
-export class PagesRoutingModule { }
diff --git a/src/app/components/pages/pages.module.ts b/src/app/components/pages/pages.module.ts
deleted file mode 100644
index a799a54..0000000
--- a/src/app/components/pages/pages.module.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-import { NgModule } from '@angular/core';
-import { CommonModule } from '@angular/common';
-
-import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
-import { ReactiveFormsModule } from '@angular/forms';
-import { PagesRoutingModule } from './pages-routing.module';
-import { ListPageComponent } from './list-page/list-page.component';
-import { CreatePageComponent } from './create-page/create-page.component';
-import { SharedModule } from 'src/app/shared/shared.module';
-
-@NgModule({
- declarations: [ListPageComponent, CreatePageComponent],
- imports: [
- CommonModule,
- PagesRoutingModule,
- NgbModule,
- ReactiveFormsModule,
- SharedModule
- ]
-})
-export class PagesModule { }
diff --git a/src/app/components/utility/list-address/list-address.component.html b/src/app/components/utility/list-address/list-address.component.html
index e6a19f9..4905ab9 100644
--- a/src/app/components/utility/list-address/list-address.component.html
+++ b/src/app/components/utility/list-address/list-address.component.html
@@ -11,7 +11,7 @@
(change)="searchAddress()" />
- 0">
+
0">
diff --git a/src/app/shared/routes/content-routes.ts b/src/app/shared/routes/content-routes.ts
index 9d3fccd..cf7305c 100644
--- a/src/app/shared/routes/content-routes.ts
+++ b/src/app/shared/routes/content-routes.ts
@@ -33,17 +33,17 @@ export const content: Routes = [
breadcrumb: "Coupons"
}
},
- {
- path: 'pages',
- loadChildren: () => import('../../components/pages/pages.module').then(m => m.PagesModule),
- data: {
- breadcrumb: "Pages"
- }
- },
- {
- path: 'media',
- loadChildren: () => import('../../components/media/media.module').then(m => m.MediaModule),
- },
+ // {
+ // path: 'pages',
+ // loadChildren: () => import('../../components/pages/pages.module').then(m => m.PagesModule),
+ // data: {
+ // breadcrumb: "Pages"
+ // }
+ // },
+ // {
+ // path: 'media',
+ // loadChildren: () => import('../../components/media/media.module').then(m => m.MediaModule),
+ // },
{
path: 'menus',
loadChildren: () => import('../../components/menus/menus.module').then(m => m.MenusModule),
@@ -65,13 +65,13 @@ export const content: Routes = [
breadcrumb: "Shop"
}
},
- {
- path: 'localization',
- loadChildren: () => import('../../components/localization/localization.module').then(m => m.LocalizationModule),
- data: {
- breadcrumb: "Localization"
- }
- },
+ // {
+ // path: 'localization',
+ // loadChildren: () => import('../../components/localization/localization.module').then(m => m.LocalizationModule),
+ // data: {
+ // breadcrumb: "Localization"
+ // }
+ // },
{
path: 'reports',
loadChildren: () => import('../../components/reports/reports.module').then(m => m.ReportsModule),