diff --git a/angular.json b/angular.json
index df92f100..62712699 100644
--- a/angular.json
+++ b/angular.json
@@ -183,5 +183,8 @@
"@schematics/angular:directive": {
"prefix": "ngx"
}
+ },
+ "cli": {
+ "analytics": false
}
-}
+}
\ No newline at end of file
diff --git a/backup.txt b/backup.txt
new file mode 100644
index 00000000..4b7b5bce
--- /dev/null
+++ b/backup.txt
@@ -0,0 +1,236 @@
+pages-menu.ts
+--------------------------
+,
+ {
+ title: 'FEATURES',
+ group: true,
+ },
+ {
+ title: 'Layout',
+ icon: 'layout-outline',
+ children: [
+ {
+ title: 'Stepper',
+ link: '/pages/layout/stepper',
+ },
+ {
+ title: 'List',
+ link: '/pages/layout/list',
+ },
+ {
+ title: 'Infinite List',
+ link: '/pages/layout/infinite-list',
+ },
+ {
+ title: 'Accordion',
+ link: '/pages/layout/accordion',
+ },
+ {
+ title: 'Tabs',
+ pathMatch: 'prefix',
+ link: '/pages/layout/tabs',
+ },
+ ],
+ },
+ {
+ title: 'Forms',
+ icon: 'edit-2-outline',
+ children: [
+ {
+ title: 'Form Inputs',
+ link: '/pages/forms/inputs',
+ },
+ {
+ title: 'Form Layouts',
+ link: '/pages/forms/layouts',
+ },
+ {
+ title: 'Buttons',
+ link: '/pages/forms/buttons',
+ },
+ {
+ title: 'Datepicker',
+ link: '/pages/forms/datepicker',
+ },
+ ],
+ },
+ {
+ title: 'UI Features',
+ icon: 'keypad-outline',
+ link: '/pages/ui-features',
+ children: [
+ {
+ title: 'Grid',
+ link: '/pages/ui-features/grid',
+ },
+ {
+ title: 'Icons',
+ link: '/pages/ui-features/icons',
+ },
+ {
+ title: 'Typography',
+ link: '/pages/ui-features/typography',
+ },
+ {
+ title: 'Animated Searches',
+ link: '/pages/ui-features/search-fields',
+ },
+ ],
+ },
+ {
+ title: 'Modal & Overlays',
+ icon: 'browser-outline',
+ children: [
+ {
+ title: 'Dialog',
+ link: '/pages/modal-overlays/dialog',
+ },
+ {
+ title: 'Window',
+ link: '/pages/modal-overlays/window',
+ },
+ {
+ title: 'Popover',
+ link: '/pages/modal-overlays/popover',
+ },
+ {
+ title: 'Toastr',
+ link: '/pages/modal-overlays/toastr',
+ },
+ {
+ title: 'Tooltip',
+ link: '/pages/modal-overlays/tooltip',
+ },
+ ],
+ },
+ {
+ title: 'Extra Components',
+ icon: 'message-circle-outline',
+ children: [
+ {
+ title: 'Calendar',
+ link: '/pages/extra-components/calendar',
+ },
+ {
+ title: 'Progress Bar',
+ link: '/pages/extra-components/progress-bar',
+ },
+ {
+ title: 'Spinner',
+ link: '/pages/extra-components/spinner',
+ },
+ {
+ title: 'Alert',
+ link: '/pages/extra-components/alert',
+ },
+ {
+ title: 'Calendar Kit',
+ link: '/pages/extra-components/calendar-kit',
+ },
+ {
+ title: 'Chat',
+ link: '/pages/extra-components/chat',
+ },
+ ],
+ },
+ {
+ title: 'Maps',
+ icon: 'map-outline',
+ children: [
+ {
+ title: 'Google Maps',
+ link: '/pages/maps/gmaps',
+ },
+ {
+ title: 'Leaflet Maps',
+ link: '/pages/maps/leaflet',
+ },
+ {
+ title: 'Bubble Maps',
+ link: '/pages/maps/bubble',
+ },
+ {
+ title: 'Search Maps',
+ link: '/pages/maps/searchmap',
+ },
+ ],
+ },
+ {
+ title: 'Charts',
+ icon: 'pie-chart-outline',
+ children: [
+ {
+ title: 'Echarts',
+ link: '/pages/charts/echarts',
+ },
+ {
+ title: 'Charts.js',
+ link: '/pages/charts/chartjs',
+ },
+ {
+ title: 'D3',
+ link: '/pages/charts/d3',
+ },
+ ],
+ },
+ {
+ title: 'Editors',
+ icon: 'text-outline',
+ children: [
+ {
+ title: 'TinyMCE',
+ link: '/pages/editors/tinymce',
+ },
+ {
+ title: 'CKEditor',
+ link: '/pages/editors/ckeditor',
+ },
+ ],
+ },
+ {
+ title: 'Tables & Data',
+ icon: 'grid-outline',
+ children: [
+ {
+ title: 'Smart Table',
+ link: '/pages/tables/smart-table',
+ },
+ {
+ title: 'Tree Grid',
+ link: '/pages/tables/tree-grid',
+ },
+ ],
+ },
+ {
+ title: 'Miscellaneous',
+ icon: 'shuffle-2-outline',
+ children: [
+ {
+ title: '404',
+ link: '/pages/miscellaneous/404',
+ },
+ ],
+ },
+ {
+ title: 'Auth',
+ icon: 'lock-outline',
+ children: [
+ {
+ title: 'Login',
+ link: '/auth/login',
+ },
+ {
+ title: 'Register',
+ link: '/auth/register',
+ },
+ {
+ title: 'Request Password',
+ link: '/auth/request-password',
+ },
+ {
+ title: 'Reset Password',
+ link: '/auth/reset-password',
+ },
+ ],
+ },
+----------------------------------------------------
diff --git a/src/app/@theme/components/header/header.component.html b/src/app/@theme/components/header/header.component.html
index 6fdc5d35..e579edba 100644
--- a/src/app/@theme/components/header/header.component.html
+++ b/src/app/@theme/components/header/header.component.html
@@ -3,7 +3,7 @@
- ngx-admin
+ symfonia
{{ theme.name }}
diff --git a/src/app/pages/pages-menu.ts b/src/app/pages/pages-menu.ts
index 6134b318..6288e7f0 100644
--- a/src/app/pages/pages-menu.ts
+++ b/src/app/pages/pages-menu.ts
@@ -1,6 +1,36 @@
import { NbMenuItem } from '@nebular/theme';
export const MENU_ITEMS: NbMenuItem[] = [
+ {
+ title: 'Service Agreement',
+ icon: 'shopping-cart-outline',
+ link: '/pages/dashboard',
+ home: true,
+ },
+ {
+ title: 'Partner Price',
+ icon: 'shopping-cart-outline',
+ link: '/pages/dashboard',
+ home: true,
+ },
+ {
+ title: 'Billing',
+ icon: 'shopping-cart-outline',
+ link: '/pages/dashboard',
+ home: true,
+ },
+ {
+ title: 'Promotion',
+ icon: 'shopping-cart-outline',
+ link: '/pages/promotion',
+ home: true,
+ },
+ {
+ title: 'Partner Branch',
+ icon: 'shopping-cart-outline',
+ link: '/pages/dashboard',
+ home: true,
+ },
{
title: 'E-commerce',
icon: 'shopping-cart-outline',
@@ -12,236 +42,4 @@ export const MENU_ITEMS: NbMenuItem[] = [
icon: 'home-outline',
link: '/pages/iot-dashboard',
},
- {
- title: 'FEATURES',
- group: true,
- },
- {
- title: 'Layout',
- icon: 'layout-outline',
- children: [
- {
- title: 'Stepper',
- link: '/pages/layout/stepper',
- },
- {
- title: 'List',
- link: '/pages/layout/list',
- },
- {
- title: 'Infinite List',
- link: '/pages/layout/infinite-list',
- },
- {
- title: 'Accordion',
- link: '/pages/layout/accordion',
- },
- {
- title: 'Tabs',
- pathMatch: 'prefix',
- link: '/pages/layout/tabs',
- },
- ],
- },
- {
- title: 'Forms',
- icon: 'edit-2-outline',
- children: [
- {
- title: 'Form Inputs',
- link: '/pages/forms/inputs',
- },
- {
- title: 'Form Layouts',
- link: '/pages/forms/layouts',
- },
- {
- title: 'Buttons',
- link: '/pages/forms/buttons',
- },
- {
- title: 'Datepicker',
- link: '/pages/forms/datepicker',
- },
- ],
- },
- {
- title: 'UI Features',
- icon: 'keypad-outline',
- link: '/pages/ui-features',
- children: [
- {
- title: 'Grid',
- link: '/pages/ui-features/grid',
- },
- {
- title: 'Icons',
- link: '/pages/ui-features/icons',
- },
- {
- title: 'Typography',
- link: '/pages/ui-features/typography',
- },
- {
- title: 'Animated Searches',
- link: '/pages/ui-features/search-fields',
- },
- ],
- },
- {
- title: 'Modal & Overlays',
- icon: 'browser-outline',
- children: [
- {
- title: 'Dialog',
- link: '/pages/modal-overlays/dialog',
- },
- {
- title: 'Window',
- link: '/pages/modal-overlays/window',
- },
- {
- title: 'Popover',
- link: '/pages/modal-overlays/popover',
- },
- {
- title: 'Toastr',
- link: '/pages/modal-overlays/toastr',
- },
- {
- title: 'Tooltip',
- link: '/pages/modal-overlays/tooltip',
- },
- ],
- },
- {
- title: 'Extra Components',
- icon: 'message-circle-outline',
- children: [
- {
- title: 'Calendar',
- link: '/pages/extra-components/calendar',
- },
- {
- title: 'Progress Bar',
- link: '/pages/extra-components/progress-bar',
- },
- {
- title: 'Spinner',
- link: '/pages/extra-components/spinner',
- },
- {
- title: 'Alert',
- link: '/pages/extra-components/alert',
- },
- {
- title: 'Calendar Kit',
- link: '/pages/extra-components/calendar-kit',
- },
- {
- title: 'Chat',
- link: '/pages/extra-components/chat',
- },
- ],
- },
- {
- title: 'Maps',
- icon: 'map-outline',
- children: [
- {
- title: 'Google Maps',
- link: '/pages/maps/gmaps',
- },
- {
- title: 'Leaflet Maps',
- link: '/pages/maps/leaflet',
- },
- {
- title: 'Bubble Maps',
- link: '/pages/maps/bubble',
- },
- {
- title: 'Search Maps',
- link: '/pages/maps/searchmap',
- },
- ],
- },
- {
- title: 'Charts',
- icon: 'pie-chart-outline',
- children: [
- {
- title: 'Echarts',
- link: '/pages/charts/echarts',
- },
- {
- title: 'Charts.js',
- link: '/pages/charts/chartjs',
- },
- {
- title: 'D3',
- link: '/pages/charts/d3',
- },
- ],
- },
- {
- title: 'Editors',
- icon: 'text-outline',
- children: [
- {
- title: 'TinyMCE',
- link: '/pages/editors/tinymce',
- },
- {
- title: 'CKEditor',
- link: '/pages/editors/ckeditor',
- },
- ],
- },
- {
- title: 'Tables & Data',
- icon: 'grid-outline',
- children: [
- {
- title: 'Smart Table',
- link: '/pages/tables/smart-table',
- },
- {
- title: 'Tree Grid',
- link: '/pages/tables/tree-grid',
- },
- ],
- },
- {
- title: 'Miscellaneous',
- icon: 'shuffle-2-outline',
- children: [
- {
- title: '404',
- link: '/pages/miscellaneous/404',
- },
- ],
- },
- {
- title: 'Auth',
- icon: 'lock-outline',
- children: [
- {
- title: 'Login',
- link: '/auth/login',
- },
- {
- title: 'Register',
- link: '/auth/register',
- },
- {
- title: 'Request Password',
- link: '/auth/request-password',
- },
- {
- title: 'Reset Password',
- link: '/auth/reset-password',
- },
- ],
- },
];
diff --git a/src/app/pages/pages-routing.module.ts b/src/app/pages/pages-routing.module.ts
index 376cc4fa..55a94d65 100644
--- a/src/app/pages/pages-routing.module.ts
+++ b/src/app/pages/pages-routing.module.ts
@@ -5,6 +5,7 @@ import { PagesComponent } from './pages.component';
import { DashboardComponent } from './dashboard/dashboard.component';
import { ECommerceComponent } from './e-commerce/e-commerce.component';
import { NotFoundComponent } from './miscellaneous/not-found/not-found.component';
+import {PromotionComponent} from './promotion/promotion.component';
const routes: Routes = [{
path: '',
@@ -14,6 +15,10 @@ const routes: Routes = [{
path: 'dashboard',
component: ECommerceComponent,
},
+ {
+ path: 'promotion',
+ component: PromotionComponent,
+ },
{
path: 'iot-dashboard',
component: DashboardComponent,
diff --git a/src/app/pages/promotion/promotion.component.html b/src/app/pages/promotion/promotion.component.html
new file mode 100644
index 00000000..2e563cb9
--- /dev/null
+++ b/src/app/pages/promotion/promotion.component.html
@@ -0,0 +1,10 @@
+
+
+ Promotion
+
+
+
+
+
+
+
diff --git a/src/app/pages/promotion/promotion.component.scss b/src/app/pages/promotion/promotion.component.scss
new file mode 100644
index 00000000..f3bc4462
--- /dev/null
+++ b/src/app/pages/promotion/promotion.component.scss
@@ -0,0 +1,7 @@
+@import '../../@theme/styles/themes';
+
+@include nb-install-component() {
+ nb-card {
+ transform: translate3d(0, 0, 0);
+ }
+}
diff --git a/src/app/pages/promotion/promotion.component.ts b/src/app/pages/promotion/promotion.component.ts
new file mode 100644
index 00000000..4d3dd9fb
--- /dev/null
+++ b/src/app/pages/promotion/promotion.component.ts
@@ -0,0 +1,66 @@
+import { Component } from '@angular/core';
+import { LocalDataSource } from 'ng2-smart-table';
+
+import { SmartTableData } from '../../@core/data/smart-table';
+
+@Component({
+ selector: 'ngx-promotion',
+ templateUrl: './promotion.component.html',
+ styleUrls: ['./promotion.component.scss'],
+})
+export class PromotionComponent {
+
+ settings = {
+ add: {
+ addButtonContent: '',
+ createButtonContent: '',
+ cancelButtonContent: '',
+ },
+ edit: {
+ editButtonContent: '',
+ saveButtonContent: '',
+ cancelButtonContent: '',
+ },
+ delete: {
+ deleteButtonContent: '',
+ confirmDelete: true,
+ },
+ columns: {
+ couponCode: {
+ title: 'Coupon Code',
+ type: 'string',
+ },
+ period: {
+ title: 'Period',
+ type: 'string',
+ },
+ validStart: {
+ title: 'Valid Start',
+ type: 'string',
+ },
+ validEnd: {
+ title: 'Valid End',
+ type: 'string',
+ },
+ action: {
+ title: 'Action',
+ type: 'string',
+ },
+ },
+ };
+
+ source: LocalDataSource = new LocalDataSource();
+
+ constructor(private service: SmartTableData) {
+ const data = this.service.getData();
+ this.source.load(data);
+ }
+
+ onDeleteConfirm(event): void {
+ if (window.confirm('Are you sure you want to delete?')) {
+ event.confirm.resolve();
+ } else {
+ event.confirm.reject();
+ }
+ }
+}
diff --git a/src/app/pages/promotion/promotion.module.ts b/src/app/pages/promotion/promotion.module.ts
new file mode 100644
index 00000000..7de4689b
--- /dev/null
+++ b/src/app/pages/promotion/promotion.module.ts
@@ -0,0 +1,21 @@
+import { NgModule } from '@angular/core';
+import { NbCardModule, NbIconModule, NbInputModule, NbTreeGridModule } from '@nebular/theme';
+import { Ng2SmartTableModule } from 'ng2-smart-table';
+
+import { ThemeModule } from '../../@theme/theme.module';
+import { PromotionComponent } from './promotion.component';
+
+@NgModule({
+ imports: [
+ NbCardModule,
+ NbTreeGridModule,
+ NbIconModule,
+ NbInputModule,
+ ThemeModule,
+ Ng2SmartTableModule,
+ ],
+ declarations: [
+ PromotionComponent,
+ ],
+})
+export class PromotionModule { }
diff --git a/src/index.html b/src/index.html
index 5192560c..6ab87eb4 100644
--- a/src/index.html
+++ b/src/index.html
@@ -2,7 +2,7 @@
- ngx-admin Demo Application
+ symfonia