diff --git a/CHANGELOG.md b/CHANGELOG.md
index 77969ee6..48894ed4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,7 +5,6 @@
### Bug Fixes
* **forms:** add missing forms module import ([#5530](https://github.com/akveo/ngx-admin/issues/5530)) ([1ff2a0d](https://github.com/akveo/ngx-admin/commit/1ff2a0d))
-* **tinymce:** set absolute path for skin url ([#5491](https://github.com/akveo/ngx-admin/issues/5491)) ([90125ab](https://github.com/akveo/ngx-admin/commit/90125ab))
### Features
diff --git a/README.md b/README.md
index 9259f735..35a119bc 100644
--- a/README.md
+++ b/README.md
@@ -1,56 +1,35 @@
-# ngx-admin [
](https://hubs.ly/H0n4ZDy0) [](https://travis-ci.org/akveo/ngx-admin) [](https://david-dm.org/akveo/ng2-admin)
+# ngx-admin [
](https://eva.design) [](https://travis-ci.org/akveo/ngx-admin) [](https://david-dm.org/akveo/ng2-admin)
-[Who uses ngx-admin?](https://github.com/akveo/ngx-admin/issues/1645)| [Documentation](https://hubs.ly/H0n4Sfq0) | [Installation Guidelines](https://hubs.ly/H0n4Svc0)
-
-# New! Material theme for ngx-admin
-
-### Material admin theme is based on the most popular Angular dashboard template - [ngx-admin](https://hubs.ly/H0nJG1G0)
-### Included: Angular 9+, [Nebular](https://hubs.ly/H0nJG5g0) and [Eva design system](https://hubs.ly/H0nJGdC0). Free for personal and commercial usage.
-### Get material ngx-admin integrated with backend technology of your choice. [Check out our store](https://hubs.ly/H0n4Zvy0).
-
-
-
-## Key features
-
-- The most popular and trusted Angular open source dashboard template is out there. Used by hundreds of thousands developers worldwide and Fortune 500 companies*.
-- Over 40+ Angular Components and 60+ Usage Examples. Kick off your project and save money by using ngx-admin.
-- Already using ngx-admin and willing to switch to material theme? Material theme is backward-compatible. Check out the article describing how to do that.
-- ngx-admin material works perfectly with Angular Material and Nebular. Take the best from both!
-
-### To use material theme checkout `feat/material-theme` branch
+[Who uses ngx-admin?](https://github.com/akveo/ngx-admin/issues/1645)| [Documentation](https://akveo.github.io/ngx-admin/?utm_source=github&utm_medium=ngx_admin_readme&utm_campaign=themes) | [Installation Guidelines](https://akveo.github.io/ngx-admin/docs/getting-started/what-is-ngxadmin?utm_source=github&utm_medium=ngx_admin_readme&utm_campaign=themes)
# Admin template based on Angular 9+ and Nebular
-
+
### Backend Integration Bundles
Easy way to integrate ngx-admin with backend (.NET, Node.js, Java etc.).
-
+
-[Check out our Store](https://hubs.ly/H0n4Zvy0) for ready to use Backend Bundles.
-
-### With 6 stunning visual themes
+[Checkout our Store](https://hubs.ly/H0nF2Zn0) for ready to use Backend Bundles.
-#### Material Dark
-
+### With 3 stunning visual themes
+
-#### Material Light
-
#### Default
-
+
#### Dark
-
+
#### Cosmic
-
+
#### Corporate
-
+
### What's included:
@@ -66,10 +45,10 @@ Easy way to integrate ngx-admin with backend (.NET, Node.js, Java etc.).
### Demo
-Live Demo
+Live Demo
## Documentation
-This template is using [Nebular](https://github.com/akveo/nebular) modules set, [here you can find documentation and other useful articles](https://hubs.ly/H0n4ZPt0).
+This template is using [Nebular](https://github.com/akveo/nebular) modules set, [here you can find documentation and other useful articles](https://akveo.github.io/nebular/docs/guides/install-based-on-starter-kit).
### Empty starter kit
Don't need all the pages and modules and just looking for an empty starter kit for your next project? Check out our [starter-kit branch](https://github.com/akveo/ngx-admin/tree/starter-kit).
@@ -91,8 +70,8 @@ This project runs its tests on multiple desktop and mobile browsers using [Brows
- Like our page on [Facebook](https://www.facebook.com/akveo/) :thumbsup:
### Looking for engineering services?
-Visit [our homepage](https://hubs.ly/H0n4YJt0) or simply leave us a message to [contact@akveo.com](mailto:contact@akveo.com). We will be happy to work with you!
+Visit [our homepage](http://akveo.com/) or simply leave us a message to [contact@akveo.com](mailto:contact@akveo.com). We will be happy to work with you!
### From Developers
-Made with :heart: by [Akveo team](https://hubs.ly/H0n4YwQ0). Follow us on [Twitter](https://twitter.com/akveo_inc) to get the latest news first!
-We're always happy to receive your feedback!
+Made with :heart: by [Akveo team](http://akveo.com/). Follow us on [Twitter](https://twitter.com/akveo_inc) to get the latest news first!
+We're always happy to receive your feedback!
\ No newline at end of file
diff --git a/angular.json b/angular.json
index df92f100..fb844904 100644
--- a/angular.json
+++ b/angular.json
@@ -22,35 +22,20 @@
"assets": [
"src/assets",
"src/favicon.ico",
- "src/favicon.png",
- {
- "glob": "**/*",
- "input": "node_modules/leaflet/dist/images",
- "output": "/assets/img/markers"
- }
+ "src/favicon.png"
],
"styles": [
"node_modules/bootstrap/dist/css/bootstrap.css",
"node_modules/typeface-exo/index.css",
"node_modules/roboto-fontface/css/roboto/roboto-fontface.css",
"node_modules/ionicons/scss/ionicons.scss",
- "node_modules/@fortawesome/fontawesome-free/css/all.css",
"node_modules/socicon/css/socicon.css",
"node_modules/nebular-icons/scss/nebular-icons.scss",
"node_modules/pace-js/templates/pace-theme-flash.tmpl.css",
- "node_modules/leaflet/dist/leaflet.css",
"src/app/@theme/styles/styles.scss"
],
"scripts": [
- "node_modules/pace-js/pace.min.js",
- "node_modules/tinymce/tinymce.min.js",
- "node_modules/tinymce/themes/modern/theme.min.js",
- "node_modules/tinymce/plugins/link/plugin.min.js",
- "node_modules/tinymce/plugins/paste/plugin.min.js",
- "node_modules/tinymce/plugins/table/plugin.min.js",
- "node_modules/echarts/dist/echarts.min.js",
- "node_modules/echarts/dist/extension/bmap.min.js",
- "node_modules/chart.js/dist/Chart.min.js"
+ "node_modules/pace-js/pace.min.js"
]
},
"configurations": {
@@ -104,22 +89,13 @@
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"scripts": [
- "node_modules/pace-js/pace.min.js",
- "node_modules/tinymce/tinymce.min.js",
- "node_modules/tinymce/themes/modern/theme.min.js",
- "node_modules/tinymce/plugins/link/plugin.min.js",
- "node_modules/tinymce/plugins/paste/plugin.min.js",
- "node_modules/tinymce/plugins/table/plugin.min.js",
- "node_modules/echarts/dist/echarts.min.js",
- "node_modules/echarts/dist/extension/bmap.min.js",
- "node_modules/chart.js/dist/Chart.min.js"
+ "node_modules/pace-js/pace.min.js"
],
"styles": [
"node_modules/bootstrap/dist/css/bootstrap.css",
"node_modules/typeface-exo/index.css",
"node_modules/roboto-fontface/css/roboto/roboto-fontface.css",
"node_modules/ionicons/scss/ionicons.scss",
- "node_modules/font-awesome/scss/font-awesome.scss",
"node_modules/socicon/css/socicon.css",
"node_modules/nebular-icons/scss/nebular-icons.scss",
"node_modules/pace-js/templates/pace-theme-flash.tmpl.css",
@@ -128,12 +104,7 @@
"assets": [
"src/assets",
"src/favicon.ico",
- "src/favicon.png",
- {
- "glob": "**/*",
- "input": "node_modules/leaflet/dist/images",
- "output": "/assets/img/markers"
- }
+ "src/favicon.png"
]
}
},
@@ -180,8 +151,6 @@
"prefix": "ngx",
"style": "scss"
},
- "@schematics/angular:directive": {
- "prefix": "ngx"
- }
+ "@schematics/angular:directive": {}
}
}
diff --git a/package-lock.json b/package-lock.json
index 5dce575d..0a911c2e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2110,12 +2110,6 @@
"d3-transition": "^1.3.2"
}
},
- "@types/d3-color": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/@types/d3-color/-/d3-color-1.0.5.tgz",
- "integrity": "sha1-ytdV8Pxt57cPpuXgivqB70wiSN4=",
- "dev": true
- },
"@types/estree": {
"version": "0.0.42",
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.42.tgz",
@@ -2128,12 +2122,6 @@
"integrity": "sha512-EaObqwIvayI5a8dCzhFrjKzVwKLxjoG9T6Ppd5CEo07LRKfQ8Yokw54r5+Wq7FaBQ+yXRvQAYPrHwya1/UFt9g==",
"dev": true
},
- "@types/geojson": {
- "version": "7946.0.1",
- "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.1.tgz",
- "integrity": "sha512-BXY6tH16Snp/ZdX6cFlBD8yfEArcZemzxEGciXkMmp1/tU76oyqkxJq91JQzT8SXWzRPwj//dw0/FdCSnnT8mw==",
- "dev": true
- },
"@types/glob": {
"version": "7.1.1",
"resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.1.tgz",
@@ -2145,12 +2133,6 @@
"@types/node": "*"
}
},
- "@types/googlemaps": {
- "version": "3.39.3",
- "resolved": "https://registry.npmjs.org/@types/googlemaps/-/googlemaps-3.39.3.tgz",
- "integrity": "sha512-L8O9HAVFZj0TuiS8h5ORthiMsrrhjxTC8XUusp5k47oXCst4VTm+qWKvrAvmYMybZVokbp4Udco1mNwJrTNZPQ==",
- "dev": true
- },
"@types/jasmine": {
"version": "2.5.54",
"resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-2.5.54.tgz",
@@ -2166,15 +2148,6 @@
"@types/jasmine": "*"
}
},
- "@types/leaflet": {
- "version": "1.2.3",
- "resolved": "https://registry.npmjs.org/@types/leaflet/-/leaflet-1.2.3.tgz",
- "integrity": "sha512-ancdZhtqOp64/ZXuvKuadFCUmXDhRDGiBSqM6MhARk4kET9UKAdkWY76hn0VlwvknmynMB8wbDMJSGXYRbQFEg==",
- "dev": true,
- "requires": {
- "@types/geojson": "*"
- }
- },
"@types/minimatch": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz",
@@ -11265,11 +11238,6 @@
}
}
},
- "leaflet": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/leaflet/-/leaflet-1.2.0.tgz",
- "integrity": "sha512-Bold8phAE6WcRsuwhofrQ7cOK1REFHaYIkKuj7+TBYK3ONKRpGGIb5oXR5akYotFnrWN0TWKh6Svlhflm3dogg=="
- },
"less": {
"version": "3.10.3",
"resolved": "https://registry.npmjs.org/less/-/less-3.10.3.tgz",
@@ -19050,11 +19018,6 @@
"integrity": "sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q=",
"dev": true
},
- "tinymce": {
- "version": "4.5.7",
- "resolved": "https://registry.npmjs.org/tinymce/-/tinymce-4.5.7.tgz",
- "integrity": "sha1-4fXNKG7DyZd71nKkwU5Jb2O8T+8="
- },
"tmp": {
"version": "0.0.31",
"resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.31.tgz",
diff --git a/package.json b/package.json
index 5e48271b..10c95961 100644
--- a/package.json
+++ b/package.json
@@ -57,7 +57,6 @@
"eva-icons": "^1.1.3",
"intl": "1.2.5",
"ionicons": "2.0.1",
- "leaflet": "1.2.0",
"nebular-icons": "1.1.0",
"ng2-ckeditor": "^1.2.2",
"ng2-smart-table": "^1.6.0",
@@ -70,7 +69,6 @@
"rxjs-compat": "6.3.0",
"socicon": "3.0.5",
"style-loader": "^1.1.3",
- "tinymce": "4.5.7",
"tslib": "^1.10.0",
"typeface-exo": "0.0.22",
"web-animations-js": "^2.3.2",
@@ -83,11 +81,8 @@
"@angular/language-service": "9.0.4",
"@compodoc/compodoc": "1.0.1",
"@fortawesome/fontawesome-free": "^5.2.0",
- "@types/d3-color": "1.0.5",
- "@types/googlemaps": "^3.39.3",
"@types/jasmine": "2.5.54",
"@types/jasminewd2": "2.0.3",
- "@types/leaflet": "1.2.3",
"@types/node": "^12.11.1",
"codelyzer": "^5.1.2",
"conventional-changelog-cli": "1.3.4",
diff --git a/src/app/@core/core.module.ts b/src/app/@core/core.module.ts
index 1135104a..7ae435f5 100644
--- a/src/app/@core/core.module.ts
+++ b/src/app/@core/core.module.ts
@@ -7,50 +7,10 @@ import { of as observableOf } from 'rxjs';
import { throwIfAlreadyLoaded } from './module-import-guard';
import {
AnalyticsService,
- LayoutService,
- PlayerService,
SeoService,
- StateService,
} from './utils';
import { UserData } from './data/users';
-import { ElectricityData } from './data/electricity';
-import { SmartTableData } from './data/smart-table';
-import { UserActivityData } from './data/user-activity';
-import { OrdersChartData } from './data/orders-chart';
-import { ProfitChartData } from './data/profit-chart';
-import { TrafficListData } from './data/traffic-list';
-import { EarningData } from './data/earning';
-import { OrdersProfitChartData } from './data/orders-profit-chart';
-import { TrafficBarData } from './data/traffic-bar';
-import { ProfitBarAnimationChartData } from './data/profit-bar-animation-chart';
-import { TemperatureHumidityData } from './data/temperature-humidity';
-import { SolarData } from './data/solar';
-import { TrafficChartData } from './data/traffic-chart';
-import { StatsBarData } from './data/stats-bar';
-import { CountryOrderData } from './data/country-order';
-import { StatsProgressBarData } from './data/stats-progress-bar';
-import { VisitorsAnalyticsData } from './data/visitors-analytics';
-import { SecurityCamerasData } from './data/security-cameras';
-
import { UserService } from './mock/users.service';
-import { ElectricityService } from './mock/electricity.service';
-import { SmartTableService } from './mock/smart-table.service';
-import { UserActivityService } from './mock/user-activity.service';
-import { OrdersChartService } from './mock/orders-chart.service';
-import { ProfitChartService } from './mock/profit-chart.service';
-import { TrafficListService } from './mock/traffic-list.service';
-import { EarningService } from './mock/earning.service';
-import { OrdersProfitChartService } from './mock/orders-profit-chart.service';
-import { TrafficBarService } from './mock/traffic-bar.service';
-import { ProfitBarAnimationChartService } from './mock/profit-bar-animation-chart.service';
-import { TemperatureHumidityService } from './mock/temperature-humidity.service';
-import { SolarService } from './mock/solar.service';
-import { TrafficChartService } from './mock/traffic-chart.service';
-import { StatsBarService } from './mock/stats-bar.service';
-import { CountryOrderService } from './mock/country-order.service';
-import { StatsProgressBarService } from './mock/stats-progress-bar.service';
-import { VisitorsAnalyticsService } from './mock/visitors-analytics.service';
-import { SecurityCamerasService } from './mock/security-cameras.service';
import { MockDataModule } from './mock/mock-data.module';
const socialLinks = [
@@ -73,24 +33,6 @@ const socialLinks = [
const DATA_SERVICES = [
{ provide: UserData, useClass: UserService },
- { provide: ElectricityData, useClass: ElectricityService },
- { provide: SmartTableData, useClass: SmartTableService },
- { provide: UserActivityData, useClass: UserActivityService },
- { provide: OrdersChartData, useClass: OrdersChartService },
- { provide: ProfitChartData, useClass: ProfitChartService },
- { provide: TrafficListData, useClass: TrafficListService },
- { provide: EarningData, useClass: EarningService },
- { provide: OrdersProfitChartData, useClass: OrdersProfitChartService },
- { provide: TrafficBarData, useClass: TrafficBarService },
- { provide: ProfitBarAnimationChartData, useClass: ProfitBarAnimationChartService },
- { provide: TemperatureHumidityData, useClass: TemperatureHumidityService },
- { provide: SolarData, useClass: SolarService },
- { provide: TrafficChartData, useClass: TrafficChartService },
- { provide: StatsBarData, useClass: StatsBarService },
- { provide: CountryOrderData, useClass: CountryOrderService },
- { provide: StatsProgressBarData, useClass: StatsProgressBarService },
- { provide: VisitorsAnalyticsData, useClass: VisitorsAnalyticsService },
- { provide: SecurityCamerasData, useClass: SecurityCamerasService },
];
export class NbSimpleRoleProvider extends NbRoleProvider {
@@ -139,10 +81,7 @@ export const NB_CORE_PROVIDERS = [
provide: NbRoleProvider, useClass: NbSimpleRoleProvider,
},
AnalyticsService,
- LayoutService,
- PlayerService,
SeoService,
- StateService,
];
@NgModule({
diff --git a/src/app/@core/data/country-order.ts b/src/app/@core/data/country-order.ts
deleted file mode 100644
index d5ce100a..00000000
--- a/src/app/@core/data/country-order.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-import { Observable } from 'rxjs';
-
-export abstract class CountryOrderData {
- abstract getCountriesCategories(): Observable;
- abstract getCountriesCategoriesData(country: string): Observable;
-}
diff --git a/src/app/@core/data/earning.ts b/src/app/@core/data/earning.ts
deleted file mode 100644
index fb31fca9..00000000
--- a/src/app/@core/data/earning.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-import { Observable } from 'rxjs';
-
-export interface LiveUpdateChart {
- liveChart: { value: [string, number] }[];
- delta: {
- up: boolean;
- value: number;
- };
- dailyIncome: number;
-}
-
-export interface PieChart {
- value: number;
- name: string;
-}
-
-export abstract class EarningData {
- abstract getEarningLiveUpdateCardData(currency: string): Observable;
- abstract getEarningCardData(currency: string): Observable;
- abstract getEarningPieChartData(): Observable;
-}
diff --git a/src/app/@core/data/electricity.ts b/src/app/@core/data/electricity.ts
deleted file mode 100644
index db9066fc..00000000
--- a/src/app/@core/data/electricity.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import { Observable } from 'rxjs';
-
-export interface Month {
- month: string;
- delta: string;
- down: boolean;
- kWatts: string;
- cost: string;
-}
-
-export interface Electricity {
- title: string;
- active?: boolean;
- months: Month[];
-}
-
-export interface ElectricityChart {
- label: string;
- value: number;
-}
-
-export abstract class ElectricityData {
- abstract getListData(): Observable;
- abstract getChartData(): Observable;
-}
diff --git a/src/app/@core/data/orders-chart.ts b/src/app/@core/data/orders-chart.ts
deleted file mode 100644
index 8c4b35cd..00000000
--- a/src/app/@core/data/orders-chart.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-export interface OrdersChart {
- chartLabel: string[];
- linesData: number[][];
-}
-
-export abstract class OrdersChartData {
- abstract getOrdersChartData(period: string): OrdersChart;
-}
diff --git a/src/app/@core/data/orders-profit-chart.ts b/src/app/@core/data/orders-profit-chart.ts
deleted file mode 100644
index 60aa1380..00000000
--- a/src/app/@core/data/orders-profit-chart.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import { Observable } from 'rxjs';
-import { OrdersChart } from './orders-chart';
-import { ProfitChart } from './profit-chart';
-
-export interface OrderProfitChartSummary {
- title: string;
- value: number;
-}
-
-export abstract class OrdersProfitChartData {
- abstract getOrderProfitChartSummary(): Observable;
- abstract getOrdersChartData(period: string): Observable;
- abstract getProfitChartData(period: string): Observable;
-}
diff --git a/src/app/@core/data/profit-bar-animation-chart.ts b/src/app/@core/data/profit-bar-animation-chart.ts
deleted file mode 100644
index 7e1c6ad2..00000000
--- a/src/app/@core/data/profit-bar-animation-chart.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-import { Observable } from 'rxjs';
-
-export abstract class ProfitBarAnimationChartData {
- abstract getChartData(): Observable<{ firstLine: number[]; secondLine: number[]; }>;
-}
diff --git a/src/app/@core/data/profit-chart.ts b/src/app/@core/data/profit-chart.ts
deleted file mode 100644
index c7c6cd7a..00000000
--- a/src/app/@core/data/profit-chart.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-export interface ProfitChart {
- chartLabel: string[];
- data: number[][];
-}
-
-export abstract class ProfitChartData {
- abstract getProfitChartData(period: string): ProfitChart;
-}
diff --git a/src/app/@core/data/security-cameras.ts b/src/app/@core/data/security-cameras.ts
deleted file mode 100644
index 696e98d9..00000000
--- a/src/app/@core/data/security-cameras.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import { Observable } from 'rxjs';
-
-export interface Camera {
- title: string;
- source: string;
-}
-
-export abstract class SecurityCamerasData {
- abstract getCamerasData(): Observable;
-}
diff --git a/src/app/@core/data/smart-table.ts b/src/app/@core/data/smart-table.ts
deleted file mode 100644
index f4ba2cf5..00000000
--- a/src/app/@core/data/smart-table.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-
-export abstract class SmartTableData {
- abstract getData(): any[];
-}
diff --git a/src/app/@core/data/solar.ts b/src/app/@core/data/solar.ts
deleted file mode 100644
index 8d3c029e..00000000
--- a/src/app/@core/data/solar.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-import { Observable } from 'rxjs';
-
-export abstract class SolarData {
- abstract getSolarData(): Observable;
-}
diff --git a/src/app/@core/data/stats-bar.ts b/src/app/@core/data/stats-bar.ts
deleted file mode 100644
index 6d554876..00000000
--- a/src/app/@core/data/stats-bar.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-import { Observable } from 'rxjs';
-
-export abstract class StatsBarData {
- abstract getStatsBarData(): Observable;
-}
diff --git a/src/app/@core/data/stats-progress-bar.ts b/src/app/@core/data/stats-progress-bar.ts
deleted file mode 100644
index 42e78943..00000000
--- a/src/app/@core/data/stats-progress-bar.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { Observable } from 'rxjs';
-
-export interface ProgressInfo {
- title: string;
- value: number;
- activeProgress: number;
- description: string;
-}
-
-export abstract class StatsProgressBarData {
- abstract getProgressInfoData(): Observable;
-}
diff --git a/src/app/@core/data/temperature-humidity.ts b/src/app/@core/data/temperature-humidity.ts
deleted file mode 100644
index 6d28e96e..00000000
--- a/src/app/@core/data/temperature-humidity.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { Observable } from 'rxjs';
-
-export interface Temperature {
- value: number;
- min: number;
- max: number;
-}
-
-export abstract class TemperatureHumidityData {
- abstract getTemperatureData(): Observable;
- abstract getHumidityData(): Observable;
-}
diff --git a/src/app/@core/data/traffic-bar.ts b/src/app/@core/data/traffic-bar.ts
deleted file mode 100644
index 4e84da45..00000000
--- a/src/app/@core/data/traffic-bar.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { Observable } from 'rxjs';
-
-export interface TrafficBar {
- data: number[];
- labels: string[];
- formatter: string;
-}
-
-export abstract class TrafficBarData {
- abstract getTrafficBarData(period: string): Observable;
-}
diff --git a/src/app/@core/data/traffic-chart.ts b/src/app/@core/data/traffic-chart.ts
deleted file mode 100644
index 9731f8a5..00000000
--- a/src/app/@core/data/traffic-chart.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-import { Observable } from 'rxjs';
-
-export abstract class TrafficChartData {
- abstract getTrafficChartData(): Observable;
-}
diff --git a/src/app/@core/data/traffic-list.ts b/src/app/@core/data/traffic-list.ts
deleted file mode 100644
index aee4a8b4..00000000
--- a/src/app/@core/data/traffic-list.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import { Observable } from 'rxjs';
-
-export interface TrafficList {
- date: string;
- value: number;
- delta: {
- up: boolean;
- value: number;
- };
- comparison: {
- prevDate: string;
- prevValue: number;
- nextDate: string;
- nextValue: number;
- };
-}
-
-export abstract class TrafficListData {
- abstract getTrafficListData(period: string): Observable;
-}
diff --git a/src/app/@core/data/user-activity.ts b/src/app/@core/data/user-activity.ts
deleted file mode 100644
index 54843e02..00000000
--- a/src/app/@core/data/user-activity.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { Observable } from 'rxjs';
-
-export interface UserActive {
- date: string;
- pagesVisitCount: number;
- deltaUp: boolean;
- newVisits: number;
-}
-
-export abstract class UserActivityData {
- abstract getUserActivityData(period: string): Observable;
-}
diff --git a/src/app/@core/data/visitors-analytics.ts b/src/app/@core/data/visitors-analytics.ts
deleted file mode 100644
index 34e00698..00000000
--- a/src/app/@core/data/visitors-analytics.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { Observable } from 'rxjs';
-
-export interface OutlineData {
- label: string;
- value: number;
-}
-
-export abstract class VisitorsAnalyticsData {
- abstract getInnerLineChartData(): Observable;
- abstract getOutlineLineChartData(): Observable;
- abstract getPieChartData(): Observable;
-}
diff --git a/src/app/@core/mock/country-order.service.ts b/src/app/@core/mock/country-order.service.ts
deleted file mode 100644
index ea28589e..00000000
--- a/src/app/@core/mock/country-order.service.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-import { Injectable } from '@angular/core';
-import { of as observableOf, Observable } from 'rxjs';
-import { CountryOrderData } from '../data/country-order';
-
-@Injectable()
-export class CountryOrderService extends CountryOrderData {
-
- private countriesCategories = [
- 'Sofas',
- 'Furniture',
- 'Lighting',
- 'Tables',
- 'Textiles',
- ];
- private countriesCategoriesLength = this.countriesCategories.length;
- private generateRandomData(nPoints: number): number[] {
- return Array.from(Array(nPoints)).map(() => {
- return Math.round(Math.random() * 20);
- });
- }
-
- getCountriesCategories(): Observable {
- return observableOf(this.countriesCategories);
- }
-
- getCountriesCategoriesData(country: string): Observable {
- return observableOf(this.generateRandomData(this.countriesCategoriesLength));
- }
-}
diff --git a/src/app/@core/mock/earning.service.ts b/src/app/@core/mock/earning.service.ts
deleted file mode 100644
index 1a4c76ff..00000000
--- a/src/app/@core/mock/earning.service.ts
+++ /dev/null
@@ -1,103 +0,0 @@
-import { Injectable } from '@angular/core';
-import { of as observableOf, Observable } from 'rxjs';
-import { LiveUpdateChart, PieChart, EarningData } from '../data/earning';
-
-@Injectable()
-export class EarningService extends EarningData {
-
- private currentDate: Date = new Date();
- private currentValue = Math.random() * 1000;
- private ONE_DAY = 24 * 3600 * 1000;
-
- private pieChartData = [
- {
- value: 50,
- name: 'Bitcoin',
- },
- {
- value: 25,
- name: 'Tether',
- },
- {
- value: 25,
- name: 'Ethereum',
- },
- ];
-
- private liveUpdateChartData = {
- bitcoin: {
- liveChart: [],
- delta: {
- up: true,
- value: 4,
- },
- dailyIncome: 45895,
- },
- tether: {
- liveChart: [],
- delta: {
- up: false,
- value: 9,
- },
- dailyIncome: 5862,
- },
- ethereum: {
- liveChart: [],
- delta: {
- up: false,
- value: 21,
- },
- dailyIncome: 584,
- },
- };
-
- getDefaultLiveChartData(elementsNumber: number) {
- this.currentDate = new Date();
- this.currentValue = Math.random() * 1000;
-
- return Array.from(Array(elementsNumber))
- .map(item => this.generateRandomLiveChartData());
- }
-
- generateRandomLiveChartData() {
- this.currentDate = new Date(+this.currentDate + this.ONE_DAY);
- this.currentValue = this.currentValue + Math.random() * 20 - 11;
-
- if (this.currentValue < 0) {
- this.currentValue = Math.random() * 100;
- }
-
- return {
- value: [
- [
- this.currentDate.getFullYear(),
- this.currentDate.getMonth(),
- this.currentDate.getDate(),
- ].join('/'),
- Math.round(this.currentValue),
- ],
- };
- }
-
- getEarningLiveUpdateCardData(currency): Observable {
- const data = this.liveUpdateChartData[currency.toLowerCase()];
- const newValue = this.generateRandomLiveChartData();
-
- data.liveChart.shift();
- data.liveChart.push(newValue);
-
- return observableOf(data.liveChart);
- }
-
- getEarningCardData(currency: string): Observable {
- const data = this.liveUpdateChartData[currency.toLowerCase()];
-
- data.liveChart = this.getDefaultLiveChartData(150);
-
- return observableOf(data);
- }
-
- getEarningPieChartData(): Observable {
- return observableOf(this.pieChartData);
- }
-}
diff --git a/src/app/@core/mock/electricity.service.ts b/src/app/@core/mock/electricity.service.ts
deleted file mode 100644
index 4f8fb2f6..00000000
--- a/src/app/@core/mock/electricity.service.ts
+++ /dev/null
@@ -1,95 +0,0 @@
-import { Injectable } from '@angular/core';
-import { of as observableOf, Observable } from 'rxjs';
-import { Electricity, ElectricityChart, ElectricityData } from '../data/electricity';
-
-@Injectable()
-export class ElectricityService extends ElectricityData {
-
- private listData: Electricity[] = [
- {
- title: '2015',
- months: [
- { month: 'Jan', delta: '0.97', down: true, kWatts: '816', cost: '97' },
- { month: 'Feb', delta: '1.83', down: true, kWatts: '806', cost: '95' },
- { month: 'Mar', delta: '0.64', down: true, kWatts: '803', cost: '94' },
- { month: 'Apr', delta: '2.17', down: false, kWatts: '818', cost: '98' },
- { month: 'May', delta: '1.32', down: true, kWatts: '809', cost: '96' },
- { month: 'Jun', delta: '0.05', down: true, kWatts: '808', cost: '96' },
- { month: 'Jul', delta: '1.39', down: false, kWatts: '815', cost: '97' },
- { month: 'Aug', delta: '0.73', down: true, kWatts: '807', cost: '95' },
- { month: 'Sept', delta: '2.61', down: true, kWatts: '792', cost: '92' },
- { month: 'Oct', delta: '0.16', down: true, kWatts: '791', cost: '92' },
- { month: 'Nov', delta: '1.71', down: true, kWatts: '786', cost: '89' },
- { month: 'Dec', delta: '0.37', down: false, kWatts: '789', cost: '91' },
- ],
- },
- {
- title: '2016',
- active: true,
- months: [
- { month: 'Jan', delta: '1.56', down: true, kWatts: '789', cost: '91' },
- { month: 'Feb', delta: '0.33', down: false, kWatts: '791', cost: '92' },
- { month: 'Mar', delta: '0.62', down: true, kWatts: '790', cost: '92' },
- { month: 'Apr', delta: '1.93', down: true, kWatts: '783', cost: '87' },
- { month: 'May', delta: '2.52', down: true, kWatts: '771', cost: '83' },
- { month: 'Jun', delta: '0.39', down: false, kWatts: '774', cost: '85' },
- { month: 'Jul', delta: '1.61', down: true, kWatts: '767', cost: '81' },
- { month: 'Aug', delta: '1.41', down: true, kWatts: '759', cost: '76' },
- { month: 'Sept', delta: '1.03', down: true, kWatts: '752', cost: '74' },
- { month: 'Oct', delta: '2.94', down: false, kWatts: '769', cost: '82' },
- { month: 'Nov', delta: '0.26', down: true, kWatts: '767', cost: '81' },
- { month: 'Dec', delta: '1.62', down: true, kWatts: '760', cost: '76' },
- ],
- },
- {
- title: '2017',
- months: [
- { month: 'Jan', delta: '1.34', down: false, kWatts: '789', cost: '91' },
- { month: 'Feb', delta: '0.95', down: false, kWatts: '793', cost: '93' },
- { month: 'Mar', delta: '0.25', down: true, kWatts: '791', cost: '92' },
- { month: 'Apr', delta: '1.72', down: false, kWatts: '797', cost: '95' },
- { month: 'May', delta: '2.62', down: true, kWatts: '786', cost: '90' },
- { month: 'Jun', delta: '0.72', down: false, kWatts: '789', cost: '91' },
- { month: 'Jul', delta: '0.78', down: true, kWatts: '784', cost: '89' },
- { month: 'Aug', delta: '0.36', down: true, kWatts: '782', cost: '88' },
- { month: 'Sept', delta: '0.55', down: false, kWatts: '787', cost: '90' },
- { month: 'Oct', delta: '1.81', down: true, kWatts: '779', cost: '86' },
- { month: 'Nov', delta: '1.12', down: true, kWatts: '774', cost: '84' },
- { month: 'Dec', delta: '0.52', down: false, kWatts: '776', cost: '95' },
- ],
- },
- ];
-
- private chartPoints = [
- 490, 490, 495, 500,
- 505, 510, 520, 530,
- 550, 580, 630, 720,
- 800, 840, 860, 870,
- 870, 860, 840, 800,
- 720, 200, 145, 130,
- 130, 145, 200, 570,
- 635, 660, 670, 670,
- 660, 630, 580, 460,
- 380, 350, 340, 340,
- 340, 340, 340, 340,
- 340, 340, 340,
- ];
-
- chartData: ElectricityChart[];
-
- constructor() {
- super();
- this.chartData = this.chartPoints.map((p, index) => ({
- label: (index % 5 === 3) ? `${Math.round(index / 5)}` : '',
- value: p,
- }));
- }
-
- getListData(): Observable {
- return observableOf(this.listData);
- }
-
- getChartData(): Observable {
- return observableOf(this.chartData);
- }
-}
diff --git a/src/app/@core/mock/mock-data.module.ts b/src/app/@core/mock/mock-data.module.ts
index 6e03591f..2d8c652e 100644
--- a/src/app/@core/mock/mock-data.module.ts
+++ b/src/app/@core/mock/mock-data.module.ts
@@ -2,47 +2,9 @@ import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { UserService } from './users.service';
-import { ElectricityService } from './electricity.service';
-import { SmartTableService } from './smart-table.service';
-import { UserActivityService } from './user-activity.service';
-import { OrdersChartService } from './orders-chart.service';
-import { ProfitChartService } from './profit-chart.service';
-import { TrafficListService } from './traffic-list.service';
-import { PeriodsService } from './periods.service';
-import { EarningService } from './earning.service';
-import { OrdersProfitChartService } from './orders-profit-chart.service';
-import { TrafficBarService } from './traffic-bar.service';
-import { ProfitBarAnimationChartService } from './profit-bar-animation-chart.service';
-import { TemperatureHumidityService } from './temperature-humidity.service';
-import { SolarService } from './solar.service';
-import { TrafficChartService } from './traffic-chart.service';
-import { StatsBarService } from './stats-bar.service';
-import { CountryOrderService } from './country-order.service';
-import { StatsProgressBarService } from './stats-progress-bar.service';
-import { VisitorsAnalyticsService } from './visitors-analytics.service';
-import { SecurityCamerasService } from './security-cameras.service';
const SERVICES = [
UserService,
- ElectricityService,
- SmartTableService,
- UserActivityService,
- OrdersChartService,
- ProfitChartService,
- TrafficListService,
- PeriodsService,
- EarningService,
- OrdersProfitChartService,
- TrafficBarService,
- ProfitBarAnimationChartService,
- TemperatureHumidityService,
- SolarService,
- TrafficChartService,
- StatsBarService,
- CountryOrderService,
- StatsProgressBarService,
- VisitorsAnalyticsService,
- SecurityCamerasService,
];
@NgModule({
diff --git a/src/app/@core/mock/orders-chart.service.ts b/src/app/@core/mock/orders-chart.service.ts
deleted file mode 100644
index 7b4c8e0d..00000000
--- a/src/app/@core/mock/orders-chart.service.ts
+++ /dev/null
@@ -1,155 +0,0 @@
-import { Injectable } from '@angular/core';
-import { PeriodsService } from './periods.service';
-import { OrdersChart, OrdersChartData } from '../data/orders-chart';
-
-@Injectable()
-export class OrdersChartService extends OrdersChartData {
-
- private year = [
- '2012',
- '2013',
- '2014',
- '2015',
- '2016',
- '2017',
- '2018',
- ];
-
- private data = { };
-
- constructor(private period: PeriodsService) {
- super();
- this.data = {
- week: this.getDataForWeekPeriod(),
- month: this.getDataForMonthPeriod(),
- year: this.getDataForYearPeriod(),
- };
- }
-
- private getDataForWeekPeriod(): OrdersChart {
- return {
- chartLabel: this.getDataLabels(42, this.period.getWeeks()),
- linesData: [
- [
- 184, 267, 326, 366, 389, 399,
- 392, 371, 340, 304, 265, 227,
- 191, 158, 130, 108, 95, 91, 97,
- 109, 125, 144, 166, 189, 212,
- 236, 259, 280, 300, 316, 329,
- 338, 342, 339, 329, 312, 288,
- 258, 221, 178, 128, 71,
- ],
- [
- 158, 178, 193, 205, 212, 213,
- 204, 190, 180, 173, 168, 164,
- 162, 160, 159, 158, 159, 166,
- 179, 195, 215, 236, 257, 276,
- 292, 301, 304, 303, 300, 293,
- 284, 273, 262, 251, 241, 234,
- 232, 232, 232, 232, 232, 232,
- ],
- [
- 58, 137, 202, 251, 288, 312,
- 323, 324, 311, 288, 257, 222,
- 187, 154, 124, 100, 81, 68, 61,
- 58, 61, 69, 80, 96, 115, 137,
- 161, 186, 210, 233, 254, 271,
- 284, 293, 297, 297, 297, 297,
- 297, 297, 297, 297, 297,
- ],
- ],
- };
- }
-
- private getDataForMonthPeriod(): OrdersChart {
- return {
- chartLabel: this.getDataLabels(47, this.period.getMonths()),
- linesData: [
- [
- 5, 63, 113, 156, 194, 225,
- 250, 270, 283, 289, 290,
- 286, 277, 264, 244, 220,
- 194, 171, 157, 151, 150,
- 152, 155, 160, 166, 170,
- 167, 153, 135, 115, 97,
- 82, 71, 64, 63, 62, 61,
- 62, 65, 73, 84, 102,
- 127, 159, 203, 259, 333,
- ],
- [
- 6, 83, 148, 200, 240,
- 265, 273, 259, 211,
- 122, 55, 30, 28, 36,
- 50, 68, 88, 109, 129,
- 146, 158, 163, 165,
- 173, 187, 208, 236,
- 271, 310, 346, 375,
- 393, 400, 398, 387,
- 368, 341, 309, 275,
- 243, 220, 206, 202,
- 207, 222, 247, 286, 348,
- ],
- [
- 398, 348, 315, 292, 274,
- 261, 251, 243, 237, 231,
- 222, 209, 192, 172, 152,
- 132, 116, 102, 90, 80, 71,
- 64, 58, 53, 49, 48, 54, 66,
- 84, 104, 125, 142, 156, 166,
- 172, 174, 172, 167, 159, 149,
- 136, 121, 105, 86, 67, 45, 22,
- ],
- ],
- };
- }
-
- private getDataForYearPeriod(): OrdersChart {
- return {
- chartLabel: this.getDataLabels(42, this.year),
- linesData: [
- [
- 190, 269, 327, 366, 389, 398,
- 396, 387, 375, 359, 343, 327,
- 312, 298, 286, 276, 270, 268,
- 265, 258, 247, 234, 220, 204,
- 188, 172, 157, 142, 128, 116,
- 106, 99, 95, 94, 92, 89, 84,
- 77, 69, 60, 49, 36, 22,
- ],
- [
- 265, 307, 337, 359, 375, 386,
- 393, 397, 399, 397, 390, 379,
- 365, 347, 326, 305, 282, 261,
- 241, 223, 208, 197, 190, 187,
- 185, 181, 172, 160, 145, 126,
- 105, 82, 60, 40, 26, 19, 22,
- 43, 82, 141, 220, 321,
- ],
- [
- 9, 165, 236, 258, 244, 206,
- 186, 189, 209, 239, 273, 307,
- 339, 365, 385, 396, 398, 385,
- 351, 300, 255, 221, 197, 181,
- 170, 164, 162, 161, 159, 154,
- 146, 135, 122, 108, 96, 87,
- 83, 82, 82, 82, 82, 82, 82,
- ],
- ],
- };
- }
-
- getDataLabels(nPoints: number, labelsArray: string[]): string[] {
- const labelsArrayLength = labelsArray.length;
- const step = Math.round(nPoints / labelsArrayLength);
-
- return Array.from(Array(nPoints)).map((item, index) => {
- const dataIndex = Math.round(index / step);
-
- return index % step === 0 ? labelsArray[dataIndex] : '';
- });
- }
-
- getOrdersChartData(period: string): OrdersChart {
- return this.data[period];
- }
-}
diff --git a/src/app/@core/mock/orders-profit-chart.service.ts b/src/app/@core/mock/orders-profit-chart.service.ts
deleted file mode 100644
index 88bf9961..00000000
--- a/src/app/@core/mock/orders-profit-chart.service.ts
+++ /dev/null
@@ -1,45 +0,0 @@
-import { of as observableOf, Observable } from 'rxjs';
-import { Injectable } from '@angular/core';
-import { OrdersChart, OrdersChartData } from '../data/orders-chart';
-import { OrderProfitChartSummary, OrdersProfitChartData } from '../data/orders-profit-chart';
-import { ProfitChart, ProfitChartData } from '../data/profit-chart';
-
-@Injectable()
-export class OrdersProfitChartService extends OrdersProfitChartData {
-
- private summary = [
- {
- title: 'Marketplace',
- value: 3654,
- },
- {
- title: 'Last Month',
- value: 946,
- },
- {
- title: 'Last Week',
- value: 654,
- },
- {
- title: 'Today',
- value: 230,
- },
- ];
-
- constructor(private ordersChartService: OrdersChartData,
- private profitChartService: ProfitChartData) {
- super();
- }
-
- getOrderProfitChartSummary(): Observable {
- return observableOf(this.summary);
- }
-
- getOrdersChartData(period: string): Observable {
- return observableOf(this.ordersChartService.getOrdersChartData(period));
- }
-
- getProfitChartData(period: string): Observable {
- return observableOf(this.profitChartService.getProfitChartData(period));
- }
-}
diff --git a/src/app/@core/mock/periods.service.ts b/src/app/@core/mock/periods.service.ts
deleted file mode 100644
index a097842c..00000000
--- a/src/app/@core/mock/periods.service.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-import { Injectable } from '@angular/core';
-
-@Injectable()
-export class PeriodsService {
- getYears() {
- return [
- '2010', '2011', '2012',
- '2013', '2014', '2015',
- '2016', '2017', '2018',
- ];
- }
-
- getMonths() {
- return [
- 'Jan', 'Feb', 'Mar',
- 'Apr', 'May', 'Jun',
- 'Jul', 'Aug', 'Sep',
- 'Oct', 'Nov', 'Dec',
- ];
- }
-
- getWeeks() {
- return [
- 'Mon',
- 'Tue',
- 'Wed',
- 'Thu',
- 'Fri',
- 'Sat',
- 'Sun',
- ];
- }
-}
diff --git a/src/app/@core/mock/profit-bar-animation-chart.service.ts b/src/app/@core/mock/profit-bar-animation-chart.service.ts
deleted file mode 100644
index e6322611..00000000
--- a/src/app/@core/mock/profit-bar-animation-chart.service.ts
+++ /dev/null
@@ -1,43 +0,0 @@
-import { Injectable } from '@angular/core';
-import { of as observableOf, Observable } from 'rxjs';
-import { ProfitBarAnimationChartData } from '../data/profit-bar-animation-chart';
-
-@Injectable()
-export class ProfitBarAnimationChartService extends ProfitBarAnimationChartData {
-
- private data: any;
-
- constructor() {
- super();
- this.data = {
- firstLine: this.getDataForFirstLine(),
- secondLine: this.getDataForSecondLine(),
- };
- }
-
- getDataForFirstLine(): number[] {
- return this.createEmptyArray(100)
- .map((_, index) => {
- const oneFifth = index / 5;
-
- return (Math.sin(oneFifth) * (oneFifth - 10) + index / 6) * 5;
- });
- }
-
- getDataForSecondLine(): number[] {
- return this.createEmptyArray(100)
- .map((_, index) => {
- const oneFifth = index / 5;
-
- return (Math.cos(oneFifth) * (oneFifth - 10) + index / 6) * 5;
- });
- }
-
- createEmptyArray(nPoints: number) {
- return Array.from(Array(nPoints));
- }
-
- getChartData(): Observable<{ firstLine: number[]; secondLine: number[]; }> {
- return observableOf(this.data);
- }
-}
diff --git a/src/app/@core/mock/profit-chart.service.ts b/src/app/@core/mock/profit-chart.service.ts
deleted file mode 100644
index 5d995454..00000000
--- a/src/app/@core/mock/profit-chart.service.ts
+++ /dev/null
@@ -1,77 +0,0 @@
-import { Injectable } from '@angular/core';
-import { PeriodsService } from './periods.service';
-import { ProfitChart, ProfitChartData } from '../data/profit-chart';
-
-@Injectable()
-export class ProfitChartService extends ProfitChartData {
-
- private year = [
- '2012',
- '2013',
- '2014',
- '2015',
- '2016',
- '2017',
- '2018',
- ];
-
- private data = { };
-
- constructor(private period: PeriodsService) {
- super();
- this.data = {
- week: this.getDataForWeekPeriod(),
- month: this.getDataForMonthPeriod(),
- year: this.getDataForYearPeriod(),
- };
- }
-
- private getDataForWeekPeriod(): ProfitChart {
- const nPoint = this.period.getWeeks().length;
-
- return {
- chartLabel: this.period.getWeeks(),
- data: [
- this.getRandomData(nPoint),
- this.getRandomData(nPoint),
- this.getRandomData(nPoint),
- ],
- };
- }
-
- private getDataForMonthPeriod(): ProfitChart {
- const nPoint = this.period.getMonths().length;
-
- return {
- chartLabel: this.period.getMonths(),
- data: [
- this.getRandomData(nPoint),
- this.getRandomData(nPoint),
- this.getRandomData(nPoint),
- ],
- };
- }
-
- private getDataForYearPeriod(): ProfitChart {
- const nPoint = this.year.length;
-
- return {
- chartLabel: this.year,
- data: [
- this.getRandomData(nPoint),
- this.getRandomData(nPoint),
- this.getRandomData(nPoint),
- ],
- };
- }
-
- private getRandomData(nPoints: number): number[] {
- return Array.from(Array(nPoints)).map(() => {
- return Math.round(Math.random() * 500);
- });
- }
-
- getProfitChartData(period: string): ProfitChart {
- return this.data[period];
- }
-}
diff --git a/src/app/@core/mock/security-cameras.service.ts b/src/app/@core/mock/security-cameras.service.ts
deleted file mode 100644
index b96b250a..00000000
--- a/src/app/@core/mock/security-cameras.service.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-import { Injectable } from '@angular/core';
-import { of as observableOf, Observable } from 'rxjs';
-import { Camera, SecurityCamerasData } from '../data/security-cameras';
-
-@Injectable()
-export class SecurityCamerasService extends SecurityCamerasData {
-
- private cameras: Camera[] = [
- {
- title: 'Camera #1',
- source: 'assets/images/camera1.jpg',
- },
- {
- title: 'Camera #2',
- source: 'assets/images/camera2.jpg',
- },
- {
- title: 'Camera #3',
- source: 'assets/images/camera3.jpg',
- },
- {
- title: 'Camera #4',
- source: 'assets/images/camera4.jpg',
- },
- ];
-
- getCamerasData(): Observable {
- return observableOf(this.cameras);
- }
-}
diff --git a/src/app/@core/mock/smart-table.service.ts b/src/app/@core/mock/smart-table.service.ts
deleted file mode 100644
index 3227f0f4..00000000
--- a/src/app/@core/mock/smart-table.service.ts
+++ /dev/null
@@ -1,432 +0,0 @@
-import { Injectable } from '@angular/core';
-import { SmartTableData } from '../data/smart-table';
-
-@Injectable()
-export class SmartTableService extends SmartTableData {
-
- data = [{
- id: 1,
- firstName: 'Mark',
- lastName: 'Otto',
- username: '@mdo',
- email: 'mdo@gmail.com',
- age: '28',
- }, {
- id: 2,
- firstName: 'Jacob',
- lastName: 'Thornton',
- username: '@fat',
- email: 'fat@yandex.ru',
- age: '45',
- }, {
- id: 3,
- firstName: 'Larry',
- lastName: 'Bird',
- username: '@twitter',
- email: 'twitter@outlook.com',
- age: '18',
- }, {
- id: 4,
- firstName: 'John',
- lastName: 'Snow',
- username: '@snow',
- email: 'snow@gmail.com',
- age: '20',
- }, {
- id: 5,
- firstName: 'Jack',
- lastName: 'Sparrow',
- username: '@jack',
- email: 'jack@yandex.ru',
- age: '30',
- }, {
- id: 6,
- firstName: 'Ann',
- lastName: 'Smith',
- username: '@ann',
- email: 'ann@gmail.com',
- age: '21',
- }, {
- id: 7,
- firstName: 'Barbara',
- lastName: 'Black',
- username: '@barbara',
- email: 'barbara@yandex.ru',
- age: '43',
- }, {
- id: 8,
- firstName: 'Sevan',
- lastName: 'Bagrat',
- username: '@sevan',
- email: 'sevan@outlook.com',
- age: '13',
- }, {
- id: 9,
- firstName: 'Ruben',
- lastName: 'Vardan',
- username: '@ruben',
- email: 'ruben@gmail.com',
- age: '22',
- }, {
- id: 10,
- firstName: 'Karen',
- lastName: 'Sevan',
- username: '@karen',
- email: 'karen@yandex.ru',
- age: '33',
- }, {
- id: 11,
- firstName: 'Mark',
- lastName: 'Otto',
- username: '@mark',
- email: 'mark@gmail.com',
- age: '38',
- }, {
- id: 12,
- firstName: 'Jacob',
- lastName: 'Thornton',
- username: '@jacob',
- email: 'jacob@yandex.ru',
- age: '48',
- }, {
- id: 13,
- firstName: 'Haik',
- lastName: 'Hakob',
- username: '@haik',
- email: 'haik@outlook.com',
- age: '48',
- }, {
- id: 14,
- firstName: 'Garegin',
- lastName: 'Jirair',
- username: '@garegin',
- email: 'garegin@gmail.com',
- age: '40',
- }, {
- id: 15,
- firstName: 'Krikor',
- lastName: 'Bedros',
- username: '@krikor',
- email: 'krikor@yandex.ru',
- age: '32',
- }, {
- 'id': 16,
- 'firstName': 'Francisca',
- 'lastName': 'Brady',
- 'username': '@Gibson',
- 'email': 'franciscagibson@comtours.com',
- 'age': 11,
- }, {
- 'id': 17,
- 'firstName': 'Tillman',
- 'lastName': 'Figueroa',
- 'username': '@Snow',
- 'email': 'tillmansnow@comtours.com',
- 'age': 34,
- }, {
- 'id': 18,
- 'firstName': 'Jimenez',
- 'lastName': 'Morris',
- 'username': '@Bryant',
- 'email': 'jimenezbryant@comtours.com',
- 'age': 45,
- }, {
- 'id': 19,
- 'firstName': 'Sandoval',
- 'lastName': 'Jacobson',
- 'username': '@Mcbride',
- 'email': 'sandovalmcbride@comtours.com',
- 'age': 32,
- }, {
- 'id': 20,
- 'firstName': 'Griffin',
- 'lastName': 'Torres',
- 'username': '@Charles',
- 'email': 'griffincharles@comtours.com',
- 'age': 19,
- }, {
- 'id': 21,
- 'firstName': 'Cora',
- 'lastName': 'Parker',
- 'username': '@Caldwell',
- 'email': 'coracaldwell@comtours.com',
- 'age': 27,
- }, {
- 'id': 22,
- 'firstName': 'Cindy',
- 'lastName': 'Bond',
- 'username': '@Velez',
- 'email': 'cindyvelez@comtours.com',
- 'age': 24,
- }, {
- 'id': 23,
- 'firstName': 'Frieda',
- 'lastName': 'Tyson',
- 'username': '@Craig',
- 'email': 'friedacraig@comtours.com',
- 'age': 45,
- }, {
- 'id': 24,
- 'firstName': 'Cote',
- 'lastName': 'Holcomb',
- 'username': '@Rowe',
- 'email': 'coterowe@comtours.com',
- 'age': 20,
- }, {
- 'id': 25,
- 'firstName': 'Trujillo',
- 'lastName': 'Mejia',
- 'username': '@Valenzuela',
- 'email': 'trujillovalenzuela@comtours.com',
- 'age': 16,
- }, {
- 'id': 26,
- 'firstName': 'Pruitt',
- 'lastName': 'Shepard',
- 'username': '@Sloan',
- 'email': 'pruittsloan@comtours.com',
- 'age': 44,
- }, {
- 'id': 27,
- 'firstName': 'Sutton',
- 'lastName': 'Ortega',
- 'username': '@Black',
- 'email': 'suttonblack@comtours.com',
- 'age': 42,
- }, {
- 'id': 28,
- 'firstName': 'Marion',
- 'lastName': 'Heath',
- 'username': '@Espinoza',
- 'email': 'marionespinoza@comtours.com',
- 'age': 47,
- }, {
- 'id': 29,
- 'firstName': 'Newman',
- 'lastName': 'Hicks',
- 'username': '@Keith',
- 'email': 'newmankeith@comtours.com',
- 'age': 15,
- }, {
- 'id': 30,
- 'firstName': 'Boyle',
- 'lastName': 'Larson',
- 'username': '@Summers',
- 'email': 'boylesummers@comtours.com',
- 'age': 32,
- }, {
- 'id': 31,
- 'firstName': 'Haynes',
- 'lastName': 'Vinson',
- 'username': '@Mckenzie',
- 'email': 'haynesmckenzie@comtours.com',
- 'age': 15,
- }, {
- 'id': 32,
- 'firstName': 'Miller',
- 'lastName': 'Acosta',
- 'username': '@Young',
- 'email': 'milleryoung@comtours.com',
- 'age': 55,
- }, {
- 'id': 33,
- 'firstName': 'Johnston',
- 'lastName': 'Brown',
- 'username': '@Knight',
- 'email': 'johnstonknight@comtours.com',
- 'age': 29,
- }, {
- 'id': 34,
- 'firstName': 'Lena',
- 'lastName': 'Pitts',
- 'username': '@Forbes',
- 'email': 'lenaforbes@comtours.com',
- 'age': 25,
- }, {
- 'id': 35,
- 'firstName': 'Terrie',
- 'lastName': 'Kennedy',
- 'username': '@Branch',
- 'email': 'terriebranch@comtours.com',
- 'age': 37,
- }, {
- 'id': 36,
- 'firstName': 'Louise',
- 'lastName': 'Aguirre',
- 'username': '@Kirby',
- 'email': 'louisekirby@comtours.com',
- 'age': 44,
- }, {
- 'id': 37,
- 'firstName': 'David',
- 'lastName': 'Patton',
- 'username': '@Sanders',
- 'email': 'davidsanders@comtours.com',
- 'age': 26,
- }, {
- 'id': 38,
- 'firstName': 'Holden',
- 'lastName': 'Barlow',
- 'username': '@Mckinney',
- 'email': 'holdenmckinney@comtours.com',
- 'age': 11,
- }, {
- 'id': 39,
- 'firstName': 'Baker',
- 'lastName': 'Rivera',
- 'username': '@Montoya',
- 'email': 'bakermontoya@comtours.com',
- 'age': 47,
- }, {
- 'id': 40,
- 'firstName': 'Belinda',
- 'lastName': 'Lloyd',
- 'username': '@Calderon',
- 'email': 'belindacalderon@comtours.com',
- 'age': 21,
- }, {
- 'id': 41,
- 'firstName': 'Pearson',
- 'lastName': 'Patrick',
- 'username': '@Clements',
- 'email': 'pearsonclements@comtours.com',
- 'age': 42,
- }, {
- 'id': 42,
- 'firstName': 'Alyce',
- 'lastName': 'Mckee',
- 'username': '@Daugherty',
- 'email': 'alycedaugherty@comtours.com',
- 'age': 55,
- }, {
- 'id': 43,
- 'firstName': 'Valencia',
- 'lastName': 'Spence',
- 'username': '@Olsen',
- 'email': 'valenciaolsen@comtours.com',
- 'age': 20,
- }, {
- 'id': 44,
- 'firstName': 'Leach',
- 'lastName': 'Holcomb',
- 'username': '@Humphrey',
- 'email': 'leachhumphrey@comtours.com',
- 'age': 28,
- }, {
- 'id': 45,
- 'firstName': 'Moss',
- 'lastName': 'Baxter',
- 'username': '@Fitzpatrick',
- 'email': 'mossfitzpatrick@comtours.com',
- 'age': 51,
- }, {
- 'id': 46,
- 'firstName': 'Jeanne',
- 'lastName': 'Cooke',
- 'username': '@Ward',
- 'email': 'jeanneward@comtours.com',
- 'age': 59,
- }, {
- 'id': 47,
- 'firstName': 'Wilma',
- 'lastName': 'Briggs',
- 'username': '@Kidd',
- 'email': 'wilmakidd@comtours.com',
- 'age': 53,
- }, {
- 'id': 48,
- 'firstName': 'Beatrice',
- 'lastName': 'Perry',
- 'username': '@Gilbert',
- 'email': 'beatricegilbert@comtours.com',
- 'age': 39,
- }, {
- 'id': 49,
- 'firstName': 'Whitaker',
- 'lastName': 'Hyde',
- 'username': '@Mcdonald',
- 'email': 'whitakermcdonald@comtours.com',
- 'age': 35,
- }, {
- 'id': 50,
- 'firstName': 'Rebekah',
- 'lastName': 'Duran',
- 'username': '@Gross',
- 'email': 'rebekahgross@comtours.com',
- 'age': 40,
- }, {
- 'id': 51,
- 'firstName': 'Earline',
- 'lastName': 'Mayer',
- 'username': '@Woodward',
- 'email': 'earlinewoodward@comtours.com',
- 'age': 52,
- }, {
- 'id': 52,
- 'firstName': 'Moran',
- 'lastName': 'Baxter',
- 'username': '@Johns',
- 'email': 'moranjohns@comtours.com',
- 'age': 20,
- }, {
- 'id': 53,
- 'firstName': 'Nanette',
- 'lastName': 'Hubbard',
- 'username': '@Cooke',
- 'email': 'nanettecooke@comtours.com',
- 'age': 55,
- }, {
- 'id': 54,
- 'firstName': 'Dalton',
- 'lastName': 'Walker',
- 'username': '@Hendricks',
- 'email': 'daltonhendricks@comtours.com',
- 'age': 25,
- }, {
- 'id': 55,
- 'firstName': 'Bennett',
- 'lastName': 'Blake',
- 'username': '@Pena',
- 'email': 'bennettpena@comtours.com',
- 'age': 13,
- }, {
- 'id': 56,
- 'firstName': 'Kellie',
- 'lastName': 'Horton',
- 'username': '@Weiss',
- 'email': 'kellieweiss@comtours.com',
- 'age': 48,
- }, {
- 'id': 57,
- 'firstName': 'Hobbs',
- 'lastName': 'Talley',
- 'username': '@Sanford',
- 'email': 'hobbssanford@comtours.com',
- 'age': 28,
- }, {
- 'id': 58,
- 'firstName': 'Mcguire',
- 'lastName': 'Donaldson',
- 'username': '@Roman',
- 'email': 'mcguireroman@comtours.com',
- 'age': 38,
- }, {
- 'id': 59,
- 'firstName': 'Rodriquez',
- 'lastName': 'Saunders',
- 'username': '@Harper',
- 'email': 'rodriquezharper@comtours.com',
- 'age': 20,
- }, {
- 'id': 60,
- 'firstName': 'Lou',
- 'lastName': 'Conner',
- 'username': '@Sanchez',
- 'email': 'lousanchez@comtours.com',
- 'age': 16,
- }];
-
- getData() {
- return this.data;
- }
-}
diff --git a/src/app/@core/mock/solar.service.ts b/src/app/@core/mock/solar.service.ts
deleted file mode 100644
index 97df9dd2..00000000
--- a/src/app/@core/mock/solar.service.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-import { Injectable } from '@angular/core';
-import { of as observableOf, Observable } from 'rxjs';
-import { SolarData } from '../data/solar';
-
-@Injectable()
-export class SolarService extends SolarData {
- private value = 42;
-
- getSolarData(): Observable {
- return observableOf(this.value);
- }
-}
diff --git a/src/app/@core/mock/stats-bar.service.ts b/src/app/@core/mock/stats-bar.service.ts
deleted file mode 100644
index 736148cb..00000000
--- a/src/app/@core/mock/stats-bar.service.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import { Injectable } from '@angular/core';
-import { of as observableOf, Observable } from 'rxjs';
-import { StatsBarData } from '../data/stats-bar';
-
-@Injectable()
-export class StatsBarService extends StatsBarData {
-
- private statsBarData: number[] = [
- 300, 520, 435, 530,
- 730, 620, 660, 860,
- ];
-
- getStatsBarData(): Observable {
- return observableOf(this.statsBarData);
- }
-}
diff --git a/src/app/@core/mock/stats-progress-bar.service.ts b/src/app/@core/mock/stats-progress-bar.service.ts
deleted file mode 100644
index 27af6897..00000000
--- a/src/app/@core/mock/stats-progress-bar.service.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-import { Injectable } from '@angular/core';
-import { of as observableOf, Observable } from 'rxjs';
-import { ProgressInfo, StatsProgressBarData } from '../data/stats-progress-bar';
-
-@Injectable()
-export class StatsProgressBarService extends StatsProgressBarData {
- private progressInfoData: ProgressInfo[] = [
- {
- title: 'Today’s Profit',
- value: 572900,
- activeProgress: 70,
- description: 'Better than last week (70%)',
- },
- {
- title: 'New Orders',
- value: 6378,
- activeProgress: 30,
- description: 'Better than last week (30%)',
- },
- {
- title: 'New Comments',
- value: 200,
- activeProgress: 55,
- description: 'Better than last week (55%)',
- },
- ];
-
- getProgressInfoData(): Observable {
- return observableOf(this.progressInfoData);
- }
-}
diff --git a/src/app/@core/mock/temperature-humidity.service.ts b/src/app/@core/mock/temperature-humidity.service.ts
deleted file mode 100644
index fc227434..00000000
--- a/src/app/@core/mock/temperature-humidity.service.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-import { Injectable } from '@angular/core';
-import { of as observableOf, Observable } from 'rxjs';
-import { TemperatureHumidityData, Temperature } from '../data/temperature-humidity';
-
-@Injectable()
-export class TemperatureHumidityService extends TemperatureHumidityData {
-
- private temperatureDate: Temperature = {
- value: 24,
- min: 12,
- max: 30,
- };
-
- private humidityDate: Temperature = {
- value: 87,
- min: 0,
- max: 100,
- };
-
- getTemperatureData(): Observable {
- return observableOf(this.temperatureDate);
- }
-
- getHumidityData(): Observable {
- return observableOf(this.humidityDate);
- }
-}
diff --git a/src/app/@core/mock/traffic-bar.service.ts b/src/app/@core/mock/traffic-bar.service.ts
deleted file mode 100644
index 4ce0005f..00000000
--- a/src/app/@core/mock/traffic-bar.service.ts
+++ /dev/null
@@ -1,47 +0,0 @@
-import { Injectable } from '@angular/core';
-import { of as observableOf, Observable } from 'rxjs';
-import { PeriodsService } from './periods.service';
-import { TrafficBarData, TrafficBar } from '../data/traffic-bar';
-
-@Injectable()
-export class TrafficBarService extends TrafficBarData {
-
- private data = { };
-
- constructor(private period: PeriodsService) {
- super();
- this.data = {
- week: this.getDataForWeekPeriod(),
- month: this.getDataForMonthPeriod(),
- year: this.getDataForYearPeriod(),
- };
- }
-
- getDataForWeekPeriod(): TrafficBar {
- return {
- data: [10, 15, 19, 7, 20, 13, 15],
- labels: this.period.getWeeks(),
- formatter: '{c0} MB',
- };
- }
-
- getDataForMonthPeriod(): TrafficBar {
- return {
- data: [0.5, 0.3, 0.8, 0.2, 0.3, 0.7, 0.8, 1, 0.7, 0.8, 0.6, 0.7],
- labels: this.period.getMonths(),
- formatter: '{c0} GB',
- };
- }
-
- getDataForYearPeriod(): TrafficBar {
- return {
- data: [10, 15, 19, 7, 20, 13, 15, 19, 11],
- labels: this.period.getYears(),
- formatter: '{c0} GB',
- };
- }
-
- getTrafficBarData(period: string): Observable {
- return observableOf(this.data[period]);
- }
-}
diff --git a/src/app/@core/mock/traffic-chart.service.ts b/src/app/@core/mock/traffic-chart.service.ts
deleted file mode 100644
index 95b7d4d6..00000000
--- a/src/app/@core/mock/traffic-chart.service.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import { Injectable } from '@angular/core';
-import { of as observableOf, Observable } from 'rxjs';
-import { TrafficChartData } from '../data/traffic-chart';
-
-@Injectable()
-export class TrafficChartService extends TrafficChartData {
-
- private data: number[] = [
- 300, 520, 435, 530,
- 730, 620, 660, 860,
- ];
-
- getTrafficChartData(): Observable {
- return observableOf(this.data);
- }
-}
diff --git a/src/app/@core/mock/traffic-list.service.ts b/src/app/@core/mock/traffic-list.service.ts
deleted file mode 100644
index 369aa331..00000000
--- a/src/app/@core/mock/traffic-list.service.ts
+++ /dev/null
@@ -1,85 +0,0 @@
-import { Injectable } from '@angular/core';
-import { of as observableOf, Observable } from 'rxjs';
-import { PeriodsService } from './periods.service';
-import { TrafficList, TrafficListData } from '../data/traffic-list';
-
-@Injectable()
-export class TrafficListService extends TrafficListData {
-
- private getRandom = (roundTo: number) => Math.round(Math.random() * roundTo);
- private data = {};
-
- constructor(private period: PeriodsService) {
- super();
- this.data = {
- week: this.getDataWeek(),
- month: this.getDataMonth(),
- year: this.getDataYear(),
- };
- }
-
- private getDataWeek(): TrafficList[] {
- const getFirstDateInPeriod = () => {
- const weeks = this.period.getWeeks();
-
- return weeks[weeks.length - 1];
- };
-
- return this.reduceData(this.period.getWeeks(), getFirstDateInPeriod);
- }
-
- private getDataMonth(): TrafficList[] {
- const getFirstDateInPeriod = () => {
- const months = this.period.getMonths();
-
- return months[months.length - 1];
- };
-
- return this.reduceData(this.period.getMonths(), getFirstDateInPeriod);
- }
-
- private getDataYear(): TrafficList[] {
- const getFirstDateInPeriod = () => {
- const years = this.period.getYears();
-
- return `${parseInt(years[0], 10) - 1}`;
- };
-
- return this.reduceData(this.period.getYears(), getFirstDateInPeriod);
- }
-
- private reduceData(timePeriods: string[], getFirstDateInPeriod: () => string): TrafficList[] {
- return timePeriods.reduce((result, timePeriod, index) => {
- const hasResult = result[index - 1];
- const prevDate = hasResult ?
- result[index - 1].comparison.nextDate :
- getFirstDateInPeriod();
- const prevValue = hasResult ?
- result[index - 1].comparison.nextValue :
- this.getRandom(100);
- const nextValue = this.getRandom(100);
- const deltaValue = prevValue - nextValue;
-
- const item = {
- date: timePeriod,
- value: this.getRandom(1000),
- delta: {
- up: deltaValue <= 0,
- value: Math.abs(deltaValue),
- },
- comparison: {
- prevDate,
- prevValue,
- nextDate: timePeriod,
- nextValue,
- },
- };
-
- return [...result, item];
- }, []);
- }
-
- getTrafficListData(period: string): Observable {
- return observableOf(this.data[period]);
- }
-}
diff --git a/src/app/@core/mock/user-activity.service.ts b/src/app/@core/mock/user-activity.service.ts
deleted file mode 100644
index fff78a97..00000000
--- a/src/app/@core/mock/user-activity.service.ts
+++ /dev/null
@@ -1,57 +0,0 @@
-import { Injectable } from '@angular/core';
-import { of as observableOf, Observable } from 'rxjs';
-import { PeriodsService } from './periods.service';
-import { UserActive, UserActivityData } from '../data/user-activity';
-
-@Injectable()
-export class UserActivityService extends UserActivityData {
-
- private getRandom = (roundTo: number) => Math.round(Math.random() * roundTo);
- private generateUserActivityRandomData(date) {
- return {
- date,
- pagesVisitCount: this.getRandom(1000),
- deltaUp: this.getRandom(1) % 2 === 0,
- newVisits: this.getRandom(100),
- };
- }
-
- data = {};
-
- constructor(private periods: PeriodsService) {
- super();
- this.data = {
- week: this.getDataWeek(),
- month: this.getDataMonth(),
- year: this.getDataYear(),
- };
- }
-
- private getDataWeek(): UserActive[] {
- return this.periods.getWeeks().map((week) => {
- return this.generateUserActivityRandomData(week);
- });
- }
-
- private getDataMonth(): UserActive[] {
- const currentDate = new Date();
- const days = currentDate.getDate();
- const month = this.periods.getMonths()[currentDate.getMonth()];
-
- return Array.from(Array(days)).map((_, index) => {
- const date = `${index + 1} ${month}`;
-
- return this.generateUserActivityRandomData(date);
- });
- }
-
- private getDataYear(): UserActive[] {
- return this.periods.getYears().map((year) => {
- return this.generateUserActivityRandomData(year);
- });
- }
-
- getUserActivityData(period: string): Observable {
- return observableOf(this.data[period]);
- }
-}
diff --git a/src/app/@core/mock/visitors-analytics.service.ts b/src/app/@core/mock/visitors-analytics.service.ts
deleted file mode 100644
index f221b261..00000000
--- a/src/app/@core/mock/visitors-analytics.service.ts
+++ /dev/null
@@ -1,57 +0,0 @@
-import { Injectable } from '@angular/core';
-import { of as observableOf, Observable } from 'rxjs';
-import { PeriodsService } from './periods.service';
-import { OutlineData, VisitorsAnalyticsData } from '../data/visitors-analytics';
-
-@Injectable()
-export class VisitorsAnalyticsService extends VisitorsAnalyticsData {
-
- constructor(private periodService: PeriodsService) {
- super();
- }
-
- private pieChartValue = 75;
- private innerLinePoints: number[] = [
- 94, 188, 225, 244, 253, 254, 249, 235, 208,
- 173, 141, 118, 105, 97, 94, 96, 104, 121, 147,
- 183, 224, 265, 302, 333, 358, 375, 388, 395,
- 400, 400, 397, 390, 377, 360, 338, 310, 278,
- 241, 204, 166, 130, 98, 71, 49, 32, 20, 13, 9,
- ];
- private outerLinePoints: number[] = [
- 85, 71, 59, 50, 45, 42, 41, 44 , 58, 88,
- 136 , 199, 267, 326, 367, 391, 400, 397,
- 376, 319, 200, 104, 60, 41, 36, 37, 44,
- 55, 74, 100 , 131, 159, 180, 193, 199, 200,
- 195, 184, 164, 135, 103, 73, 50, 33, 22, 15, 11,
- ];
- private generateOutlineLineData(): OutlineData[] {
- const months = this.periodService.getMonths();
- const outerLinePointsLength = this.outerLinePoints.length;
- const monthsLength = months.length;
-
- return this.outerLinePoints.map((p, index) => {
- const monthIndex = Math.round(index / 4);
- const label = (index % Math.round(outerLinePointsLength / monthsLength) === 0)
- ? months[monthIndex]
- : '';
-
- return {
- label,
- value: p,
- };
- });
- }
-
- getInnerLineChartData(): Observable {
- return observableOf(this.innerLinePoints);
- }
-
- getOutlineLineChartData(): Observable {
- return observableOf(this.generateOutlineLineData());
- }
-
- getPieChartData(): Observable {
- return observableOf(this.pieChartValue);
- }
-}
diff --git a/src/app/@core/utils/index.ts b/src/app/@core/utils/index.ts
index 1b3f94da..346ac256 100644
--- a/src/app/@core/utils/index.ts
+++ b/src/app/@core/utils/index.ts
@@ -1,13 +1,7 @@
-import { LayoutService } from './layout.service';
-import { AnalyticsService } from './analytics.service';
-import { PlayerService } from './player.service';
-import { StateService } from './state.service';
-import { SeoService } from './seo.service';
+import { SeoService } from './seo.service';
+import { AnalyticsService } from './analytics.service';
export {
- LayoutService,
AnalyticsService,
- PlayerService,
SeoService,
- StateService,
};
diff --git a/src/app/@core/utils/layout.service.ts b/src/app/@core/utils/layout.service.ts
deleted file mode 100644
index 046db42f..00000000
--- a/src/app/@core/utils/layout.service.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-import { Injectable } from '@angular/core';
-import { Observable, Subject } from 'rxjs';
-import { delay, shareReplay, debounceTime } from 'rxjs/operators';
-
-@Injectable()
-export class LayoutService {
-
- protected layoutSize$ = new Subject();
- protected layoutSizeChange$ = this.layoutSize$.pipe(
- shareReplay({ refCount: true }),
- );
-
- changeLayoutSize() {
- this.layoutSize$.next();
- }
-
- onChangeLayoutSize(): Observable {
- return this.layoutSizeChange$.pipe(delay(1));
- }
-
- onSafeChangeLayoutSize(): Observable {
- return this.layoutSizeChange$.pipe(
- debounceTime(350),
- );
- }
-}
diff --git a/src/app/@core/utils/player.service.ts b/src/app/@core/utils/player.service.ts
deleted file mode 100644
index f76cc162..00000000
--- a/src/app/@core/utils/player.service.ts
+++ /dev/null
@@ -1,66 +0,0 @@
-import { Injectable } from '@angular/core';
-
-export class Track {
- name: string;
- artist: string;
- url: string;
- cover: string;
-}
-
-@Injectable()
-export class PlayerService {
- current: number;
- playlist: Track[] = [
- {
- name: 'Don\'t Wanna Fight',
- artist: 'Alabama Shakes',
- url: 'https://p.scdn.co/mp3-preview/6156cdbca425a894972c02fca9d76c0b70e001af',
- cover: 'assets/images/cover1.jpg',
- },
- {
- name: 'Harder',
- artist: 'Daft Punk',
- url: 'https://p.scdn.co/mp3-preview/92a04c7c0e96bf93a1b1b1cae7dfff1921969a7b',
- cover: 'assets/images/cover2.jpg',
- },
- {
- name: 'Come Together',
- artist: 'Beatles',
- url: 'https://p.scdn.co/mp3-preview/83090a4db6899eaca689ae35f69126dbe65d94c9',
- cover: 'assets/images/cover3.jpg',
- },
- ];
-
- random(): Track {
- this.current = Math.floor(Math.random() * this.playlist.length);
- return this.playlist[this.current];
- }
-
- next(): Track {
- return this.getNextTrack();
- }
-
- prev() {
- return this.getPrevTrack();
- }
-
- private getNextTrack(): Track {
- if (this.current === this.playlist.length - 1) {
- this.current = 0;
- } else {
- this.current++;
- }
-
- return this.playlist[this.current];
- }
-
- private getPrevTrack(): Track {
- if (this.current === 0) {
- this.current = this.playlist.length - 1;
- } else {
- this.current--;
- }
-
- return this.playlist[this.current];
- }
-}
diff --git a/src/app/@core/utils/state.service.ts b/src/app/@core/utils/state.service.ts
deleted file mode 100644
index 3f0847d5..00000000
--- a/src/app/@core/utils/state.service.ts
+++ /dev/null
@@ -1,92 +0,0 @@
-import { Injectable, OnDestroy } from '@angular/core';
-import { of as observableOf, Observable, BehaviorSubject } from 'rxjs';
-import { takeWhile } from 'rxjs/operators';
-
-import { NbLayoutDirectionService, NbLayoutDirection } from '@nebular/theme';
-
-@Injectable()
-export class StateService implements OnDestroy {
-
- protected layouts: any = [
- {
- name: 'One Column',
- icon: 'nb-layout-default',
- id: 'one-column',
- selected: true,
- },
- {
- name: 'Two Column',
- icon: 'nb-layout-two-column',
- id: 'two-column',
- },
- {
- name: 'Center Column',
- icon: 'nb-layout-centre',
- id: 'center-column',
- },
- ];
-
- protected sidebars: any = [
- {
- name: 'Sidebar at layout start',
- icon: 'nb-layout-sidebar-left',
- id: 'start',
- selected: true,
- },
- {
- name: 'Sidebar at layout end',
- icon: 'nb-layout-sidebar-right',
- id: 'end',
- },
- ];
-
- protected layoutState$ = new BehaviorSubject(this.layouts[0]);
- protected sidebarState$ = new BehaviorSubject(this.sidebars[0]);
-
- alive = true;
-
- constructor(directionService: NbLayoutDirectionService) {
- directionService.onDirectionChange()
- .pipe(takeWhile(() => this.alive))
- .subscribe(direction => this.updateSidebarIcons(direction));
-
- this.updateSidebarIcons(directionService.getDirection());
- }
-
- ngOnDestroy() {
- this.alive = false;
- }
-
- private updateSidebarIcons(direction: NbLayoutDirection) {
- const [ startSidebar, endSidebar ] = this.sidebars;
- const isLtr = direction === NbLayoutDirection.LTR;
- const startIconClass = isLtr ? 'nb-layout-sidebar-left' : 'nb-layout-sidebar-right';
- const endIconClass = isLtr ? 'nb-layout-sidebar-right' : 'nb-layout-sidebar-left';
- startSidebar.icon = startIconClass;
- endSidebar.icon = endIconClass;
- }
-
- setLayoutState(state: any): any {
- this.layoutState$.next(state);
- }
-
- getLayoutStates(): Observable {
- return observableOf(this.layouts);
- }
-
- onLayoutState(): Observable {
- return this.layoutState$.asObservable();
- }
-
- setSidebarState(state: any): any {
- this.sidebarState$.next(state);
- }
-
- getSidebarStates(): Observable {
- return observableOf(this.sidebars);
- }
-
- onSidebarState(): Observable {
- return this.sidebarState$.asObservable();
- }
-}
diff --git a/src/app/@theme/components/header/header.component.html b/src/app/@theme/components/header/header.component.html
index 6fdc5d35..5ad5fcc4 100644
--- a/src/app/@theme/components/header/header.component.html
+++ b/src/app/@theme/components/header/header.component.html
@@ -8,6 +8,7 @@
{{ theme.name }}
+