Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion labs/continuous-integration/src/HelloWorld/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ static void Main(string[] args)
if (args.Length == 1)
{
int bedtimeHour = 22;
int.TryParse(args[0], out bedtimeHour);
int.TryParse(args[1], out bedtimeHour);
var today = DateTime.Today;
var bedtime = new DateTime(today.Year, today.Month, today.Day, bedtimeHour, 0, 0);
var duration = bedtime.Subtract(DateTime.Now);
Expand Down
122 changes: 75 additions & 47 deletions labs/web-app/src/index.html
Original file line number Diff line number Diff line change
@@ -1,55 +1,83 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bulletin Board</title>
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="site.css">
<style>
.form-control {
margin-bottom: 10px;
}
.btn-danger {
margin-top: 8px;
}
</style>
</head>
<body>

<div class="jumbotron">
<h1>Welcome to the Event Calendar!</h1>
</div>
<head>
<meta charset="UTF-8" />
<title>Bulletin Board</title>
<link
rel="stylesheet"
href="node_modules/bootstrap/dist/css/bootstrap.min.css"
/>
<link rel="stylesheet" href="site.css" />
<style>
.form-control {
margin-bottom: 10px;
}
.btn-danger {
margin-top: 8px;
}
</style>
</head>
<body>
<div class="jumbotron">
<h1>Hello this is week 7 of EIC cohort!</h1>
</div>

<div class="container" id="events">
<div class="col-sm-7">
<div class="panel panel-default">
<div class="panel-heading">
<h3>Add an Event</h3>
</div>
<div class="panel-body">
<div>
<input class="form-control" placeholder="Title" v-model="event.title">
<textarea class="form-control" placeholder="Detail" v-model="event.detail"></textarea>
<input type="date" class="form-control" placeholder="Date" v-model="event.date">
<button class="btn btn-primary" v-on:click="addEvent">Submit</button>
<div class="container" id="events">
<div class="col-sm-7">
<div class="panel panel-default">
<div class="panel-heading">
<h3>Add an Event</h3>
</div>
<div class="panel-body">
<div>
<input
class="form-control"
placeholder="Title"
v-model="event.title"
/>
<textarea
class="form-control"
placeholder="Detail"
v-model="event.detail"
></textarea>
<input
type="date"
class="form-control"
placeholder="Date"
v-model="event.date"
/>
<button class="btn btn-primary" v-on:click="addEvent">
Submit
</button>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-5">
<div class="list-group">
<a href="#" class="list-group-item" v-for="event in events">
<h4 class="list-group-item-heading"><i class="glyphicon glyphicon-bullhorn"></i> {{ event.title }}</h4>
<h5><i class="glyphicon glyphicon-calendar" v-if="event.date"></i> {{ event.date }}</h5>
<p class="list-group-item-text" v-if="event.detail">{{ event.detail }}</p>
<button class="btn btn-xs btn-danger" v-on:click="deleteEvent(event.id)">Delete</button>
</a>
<div class="col-sm-5">
<div class="list-group">
<a href="#" class="list-group-item" v-for="event in events">
<h4 class="list-group-item-heading">
<i class="glyphicon glyphicon-bullhorn"></i> {{ event.title }}
</h4>
<h5>
<i class="glyphicon glyphicon-calendar" v-if="event.date"></i> {{
event.date }}
</h5>
<p class="list-group-item-text" v-if="event.detail">
{{ event.detail }}
</p>
<button
class="btn btn-xs btn-danger"
v-on:click="deleteEvent(event.id)"
>
Delete
</button>
</a>
</div>
</div>
</div>
</div>

</body>
<script src="node_modules/vue/dist/vue.min.js"></script>
<script src="node_modules/vue-resource/dist/vue-resource.min.js"></script>
<script src="app.js"></script>
</html>
</body>
<script src="node_modules/vue/dist/vue.min.js"></script>
<script src="node_modules/vue-resource/dist/vue-resource.min.js"></script>
<script src="app.js"></script>
</html>
21 changes: 13 additions & 8 deletions labs/web-app/src/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.