summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/SMAPI.Web/Controllers/LogParserController.cs19
-rw-r--r--src/SMAPI.Web/Views/LogParser/Index.cshtml14
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>