From 4f2b3ea97f0fdb0e87de2c4bb21568d084c368cf Mon Sep 17 00:00:00 2001 From: chsakell Date: Mon, 3 Oct 2016 10:39:45 +0300 Subject: [PATCH] add feed table (mock-data) --- Data/LiveGameDbInitializer.cs | 20 +---------- app/shared/components/match.component.html | 40 ++++++++++++++++++++++ appsettings.json | 4 +-- wwwroot/css/site.css | 5 +++ 4 files changed, 48 insertions(+), 21 deletions(-) diff --git a/Data/LiveGameDbInitializer.cs b/Data/LiveGameDbInitializer.cs index 69c2dc1..02f77b0 100644 --- a/Data/LiveGameDbInitializer.cs +++ b/Data/LiveGameDbInitializer.cs @@ -56,25 +56,7 @@ namespace LiveGameFeed.Data } }; - Match match_03 = new Match - { - Host = "Team 5", - Guest = "Team 6", - HostScore = 0, - GuestScore = 0, - MatchDate = DateTime.Now, - Type = MatchTypeEnums.Basketball, - Feeds = new List - { - new Feed() - { - Description = "Match started", - MatchId = 3 - } - } - }; - - context.Matches.Add(match_01); context.Matches.Add(match_02); context.Matches.Add(match_03); + context.Matches.Add(match_01); context.Matches.Add(match_02); context.SaveChanges(); } diff --git a/app/shared/components/match.component.html b/app/shared/components/match.component.html index a2e79ed..b055f10 100644 --- a/app/shared/components/match.component.html +++ b/app/shared/components/match.component.html @@ -24,5 +24,45 @@ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Feed
Ford
Ford
Ford
Ford
Ford
Ford
Ford
+
+ + \ No newline at end of file diff --git a/appsettings.json b/appsettings.json index 7597f1d..4a39375 100644 --- a/appsettings.json +++ b/appsettings.json @@ -8,7 +8,7 @@ } }, "TimeService": { - "DueTime": 6000, - "Period": 5000 + "DueTime": 10000, + "Period": 10000 } } diff --git a/wwwroot/css/site.css b/wwwroot/css/site.css index ad08a54..2656143 100644 --- a/wwwroot/css/site.css +++ b/wwwroot/css/site.css @@ -21,4 +21,9 @@ body { th, td { text-align: center; +} + +.feed-table { + height: 190px; + overflow: auto; } \ No newline at end of file