diff --git a/RaceLapTimer/RaceLapTimer/Modules/MonitorModule.cs b/RaceLapTimer/RaceLapTimer/Modules/MonitorModule.cs index e02ed1b..7af6355 100644 --- a/RaceLapTimer/RaceLapTimer/Modules/MonitorModule.cs +++ b/RaceLapTimer/RaceLapTimer/Modules/MonitorModule.cs @@ -9,14 +9,15 @@ namespace RaceLapTimer.Modules { public class MonitorModule:NancyModule { - public MonitorModule() : base("/monitor") + public MonitorModule() { Get[""] = args => GetMonitorHomePage(args); + Get["/monitor"] = args => GetMonitorHomePage(args); } private dynamic GetMonitorHomePage(dynamic args) { - throw new NotImplementedException(); + return View["Monitor.cshtml"]; } } } diff --git a/RaceLapTimer/RaceLapTimer/Modules/PilotsModule.cs b/RaceLapTimer/RaceLapTimer/Modules/PilotsModule.cs index 17a61f6..349ad98 100644 --- a/RaceLapTimer/RaceLapTimer/Modules/PilotsModule.cs +++ b/RaceLapTimer/RaceLapTimer/Modules/PilotsModule.cs @@ -16,7 +16,7 @@ namespace RaceLapTimer.Modules private dynamic GetPilotsListHomePage(dynamic args) { - throw new NotImplementedException(); + return View["Pilots.cshtml"]; } } } diff --git a/RaceLapTimer/RaceLapTimer/Modules/SystemModule.cs b/RaceLapTimer/RaceLapTimer/Modules/SystemModule.cs index 0c68e5a..5172474 100644 --- a/RaceLapTimer/RaceLapTimer/Modules/SystemModule.cs +++ b/RaceLapTimer/RaceLapTimer/Modules/SystemModule.cs @@ -18,7 +18,12 @@ namespace RaceLapTimer.Modules Get[""] = args => GetSystemHomePage(args); Get["/pilot"] = args => GetSystemPilotPage(args); Get["/soundfile"] = args => GetSystemSoundFilePage(args); + Get["/configuraiton"] = args => GetConfigurationHomePage(args); + } + private dynamic GetConfigurationHomePage(dynamic args) + { + throw new NotImplementedException(); } //this will return system configuration settings home page. diff --git a/RaceLapTimer/RaceLapTimer/RaceLapTimer.csproj b/RaceLapTimer/RaceLapTimer/RaceLapTimer.csproj index 484b50a..1e2ab71 100644 --- a/RaceLapTimer/RaceLapTimer/RaceLapTimer.csproj +++ b/RaceLapTimer/RaceLapTimer/RaceLapTimer.csproj @@ -131,12 +131,19 @@ + Always Always + + Always + + + Always + Always diff --git a/RaceLapTimer/RaceLapTimer/www/Views/History.cshtml b/RaceLapTimer/RaceLapTimer/www/Views/History.cshtml new file mode 100644 index 0000000..ec958ed --- /dev/null +++ b/RaceLapTimer/RaceLapTimer/www/Views/History.cshtml @@ -0,0 +1,59 @@ +@inherits Nancy.ViewEngines.Razor.NancyRazorViewBase +@{ + Layout = "razor-layout.cshtml"; + ViewBag.Title = "History"; + ViewBag.CreateRaceApiEndpoint = "/api/racesession/create"; +} +

@ViewBag.Title

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SessionModePilotsTotal LapsFastest LapFastest PilotAverage Lap Time
None01010101010
None01010101010
None01010101010
None01010101010
\ No newline at end of file diff --git a/RaceLapTimer/RaceLapTimer/www/Views/Monitor.cshtml b/RaceLapTimer/RaceLapTimer/www/Views/Monitor.cshtml new file mode 100644 index 0000000..7be1e9c --- /dev/null +++ b/RaceLapTimer/RaceLapTimer/www/Views/Monitor.cshtml @@ -0,0 +1,38 @@ +@inherits Nancy.ViewEngines.Razor.NancyRazorViewBase +@{ + Layout = "razor-layout.cshtml"; + ViewBag.Title = "Monitor"; +} +

@ViewBag.Title

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Race NamePilot CountLap Count
None010
None010
None010
None010
\ No newline at end of file diff --git a/RaceLapTimer/RaceLapTimer/www/Views/Pilots.cshtml b/RaceLapTimer/RaceLapTimer/www/Views/Pilots.cshtml new file mode 100644 index 0000000..2833553 --- /dev/null +++ b/RaceLapTimer/RaceLapTimer/www/Views/Pilots.cshtml @@ -0,0 +1,43 @@ +@inherits Nancy.ViewEngines.Razor.NancyRazorViewBase +@{ + Layout = "razor-layout.cshtml"; + ViewBag.Title = "Pilots"; +} +

@ViewBag.Title

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameQuadTotal RacesTotal Laps
None01010
None01010
None01010
None01010
\ No newline at end of file