mirror of
https://github.com/chsakell/aspnet-core-signalr-angular.git
synced 2025-12-22 17:27:48 +00:00
add feed table (mock-data)
This commit is contained in:
@@ -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<Feed>
|
||||
{
|
||||
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();
|
||||
}
|
||||
|
||||
@@ -24,5 +24,45 @@
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><button type="button" class="btn btn-default btn-xs">Send</button></td>
|
||||
<td><input type="text" class="form-control" placeholder="Type message.." /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div class="feed-table">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Feed</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="filterable-cell">Ford</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="filterable-cell">Ford</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="filterable-cell">Ford</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="filterable-cell">Ford</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="filterable-cell">Ford</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="filterable-cell">Ford</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="filterable-cell">Ford</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -8,7 +8,7 @@
|
||||
}
|
||||
},
|
||||
"TimeService": {
|
||||
"DueTime": 6000,
|
||||
"Period": 5000
|
||||
"DueTime": 10000,
|
||||
"Period": 10000
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,4 +21,9 @@ body {
|
||||
|
||||
th, td {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.feed-table {
|
||||
height: 190px;
|
||||
overflow: auto;
|
||||
}
|
||||
Reference in New Issue
Block a user