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
|
context.Matches.Add(match_01); context.Matches.Add(match_02);
|
||||||
{
|
|
||||||
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.SaveChanges();
|
context.SaveChanges();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,5 +24,45 @@
|
|||||||
</button>
|
</button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</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>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"TimeService": {
|
"TimeService": {
|
||||||
"DueTime": 6000,
|
"DueTime": 10000,
|
||||||
"Period": 5000
|
"Period": 10000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,3 +22,8 @@ body {
|
|||||||
th, td {
|
th, td {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.feed-table {
|
||||||
|
height: 190px;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user