From c3d16af97953375fdafbb1a0ec1e457fe3d069a3 Mon Sep 17 00:00:00 2001
From: nixa <4dmitr@gmail.com>
Date: Thu, 5 May 2016 13:26:28 +0300
Subject: [PATCH] feed component in progress
---
.../pages/dashboard/dashboard.component.ts | 3 +-
src/app/pages/dashboard/dashboard.html | 26 +--
.../pages/dashboard/feed/feed.component.ts | 32 +++
src/app/pages/dashboard/feed/feed.html | 32 +++
src/app/pages/dashboard/feed/feed.scss | 215 ++++++++++++++++++
src/app/pages/dashboard/feed/feed.service.ts | 121 ++++++++++
src/app/pages/dashboard/feed/index.ts | 1 +
.../lineChart/lineChart.component.ts | 1 +
8 files changed, 414 insertions(+), 17 deletions(-)
create mode 100644 src/app/pages/dashboard/feed/feed.component.ts
create mode 100644 src/app/pages/dashboard/feed/feed.html
create mode 100644 src/app/pages/dashboard/feed/feed.scss
create mode 100644 src/app/pages/dashboard/feed/feed.service.ts
create mode 100644 src/app/pages/dashboard/feed/index.ts
diff --git a/src/app/pages/dashboard/dashboard.component.ts b/src/app/pages/dashboard/dashboard.component.ts
index 57275cd4..696c1862 100644
--- a/src/app/pages/dashboard/dashboard.component.ts
+++ b/src/app/pages/dashboard/dashboard.component.ts
@@ -5,12 +5,13 @@ import {PieChart} from './pieChart';
import {TrafficChart} from './trafficChart';
import {UsersMap} from './usersMap';
import {LineChart} from './lineChart';
+import {Feed} from './feed';
import {BaCard} from '../../theme/components';
@Component({
selector: 'dashboard',
pipes: [],
- directives: [PopularApp, PieChart, TrafficChart, UsersMap, LineChart, BaCard],
+ directives: [PopularApp, PieChart, TrafficChart, UsersMap, LineChart, Feed, BaCard],
encapsulation: ViewEncapsulation.None,
styles: [require('./dashboard.scss')],
template: require('./dashboard.html')
diff --git a/src/app/pages/dashboard/dashboard.html b/src/app/pages/dashboard/dashboard.html
index 5759744c..88e20f16 100644
--- a/src/app/pages/dashboard/dashboard.html
+++ b/src/app/pages/dashboard/dashboard.html
@@ -17,30 +17,24 @@
-
-
-
+
-
diff --git a/src/app/pages/dashboard/feed/feed.component.ts b/src/app/pages/dashboard/feed/feed.component.ts
new file mode 100644
index 00000000..3387b1ff
--- /dev/null
+++ b/src/app/pages/dashboard/feed/feed.component.ts
@@ -0,0 +1,32 @@
+import {Component, ViewEncapsulation} from 'angular2/core';
+
+import {ProfilePicturePipe} from '../../../theme/pipes';
+import {FeedService} from './feed.service';
+
+@Component({
+ selector: 'feed',
+ encapsulation: ViewEncapsulation.None,
+ providers: [FeedService],
+ pipes: [ProfilePicturePipe],
+ styles: [require('./feed.scss')],
+ template: require('./feed.html')
+})
+export class Feed {
+
+ public feed:Array