Browse Source

front end demo

woat 6 years ago
parent
commit
02c5d452a7

+ 1
- 1
src/app/post.service.ts View File

@@ -13,7 +13,7 @@ export class PostService {
13 13
 		return this.http.get('/api/post/all').toPromise();
14 14
 	}
15 15
 
16
-	postPost(messageBody, githubId = 'j-n000') {
16
+	postPost(messageBody, githubId = 'omg') {
17 17
 		this.http.post(`/api/post/${githubId}/new-post`, { body: messageBody }).toPromise();
18 18
 	}
19 19
 }

+ 6
- 6
src/app/timeline/post/post.component.ts View File

@@ -1,17 +1,17 @@
1 1
 import { Component, Input, OnInit } from '@angular/core';
2 2
 
3 3
 @Component({
4
-  selector: 'app-post',
5
-  templateUrl: './post.component.html',
6
-  styleUrls: ['./post.component.css']
4
+	selector: 'app-post',
5
+	templateUrl: './post.component.html',
6
+	styleUrls: ['./post.component.css']
7 7
 })
8 8
 
9 9
 export class PostComponent implements OnInit {
10 10
 	@Input()post: any;
11 11
 
12
-  constructor() { }
12
+	constructor() { }
13 13
 
14
-  ngOnInit() {
15
-  }
14
+	ngOnInit() {
15
+	}
16 16
 
17 17
 }

+ 0
- 1
src/app/timeline/status/status.component.ts View File

@@ -8,7 +8,6 @@ import { PostService } from '../../post.service';
8 8
 	styleUrls: ['./status.component.css']
9 9
 })
10 10
 export class StatusComponent implements OnInit {
11
-	sender = 'Origin'; // pull web3.address
12 11
 	body: string;
13 12
 
14 13
 	constructor(

+ 0
- 1
src/app/timeline/timeline.component.ts View File

@@ -20,5 +20,4 @@ export class TimelineComponent implements OnInit {
20 20
 		this.posts = posts;
21 21
 		console.log(posts);
22 22
 	}
23
-
24 23
 }