diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-10-27 19:36:52 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-10-27 19:36:52 -0400 |
commit | e75aef8634f9edb8ac385b8d7308b40ed3269cbc (patch) | |
tree | ae8c21efc8889c48c4d8895fb7710df8a47dd5f1 /src | |
parent | 65f0fa625575592639a24a9b39330e4a6b500f22 (diff) | |
download | SMAPI-e75aef8634f9edb8ac385b8d7308b40ed3269cbc.tar.gz SMAPI-e75aef8634f9edb8ac385b8d7308b40ed3269cbc.tar.bz2 SMAPI-e75aef8634f9edb8ac385b8d7308b40ed3269cbc.zip |
add placeholder for new log parser (#358)
Diffstat (limited to 'src')
-rw-r--r-- | src/SMAPI.Web/Controllers/LogParserController.cs | 19 | ||||
-rw-r--r-- | src/SMAPI.Web/Views/LogParser/Index.cshtml | 14 |
2 files changed, 33 insertions, 0 deletions
diff --git a/src/SMAPI.Web/Controllers/LogParserController.cs b/src/SMAPI.Web/Controllers/LogParserController.cs new file mode 100644 index 00000000..4ed8898a --- /dev/null +++ b/src/SMAPI.Web/Controllers/LogParserController.cs @@ -0,0 +1,19 @@ +using Microsoft.AspNetCore.Mvc; + +namespace StardewModdingAPI.Web.Controllers +{ + /// <summary>Provides a web UI and API for parsing SMAPI log files.</summary> + [Route("log")] + internal class LogParserController : Controller + { + /********* + ** Public methods + *********/ + /// <summary>Render the web UI to upload a log file.</summary> + [HttpGet] + public ViewResult Index() + { + return this.View("Index"); + } + } +} diff --git a/src/SMAPI.Web/Views/LogParser/Index.cshtml b/src/SMAPI.Web/Views/LogParser/Index.cshtml new file mode 100644 index 00000000..cd47d687 --- /dev/null +++ b/src/SMAPI.Web/Views/LogParser/Index.cshtml @@ -0,0 +1,14 @@ +@{ + ViewData["Title"] = "SMAPI log parser"; +} + +<h2>How to share a SMAPI log</h2> +<ol> + <li><a href="https://stardewvalleywiki.com/Modding:Player_FAQs#SMAPI_log">Find your SMAPI log</a>.</li> + <li>Click the file and drag it onto the upload form below (or paste the text in).</li> + <li>Click <em>Parse</em>.</li> + <li>Share the link you get back.</li> +</ol> + +<h2>Parsed log</h2> +<em>TODO</em> |