From d7696912e007a2b455a2fd5e1974924d2efe83b3 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sat, 24 Feb 2018 16:51:37 -0500 Subject: reimplement log parser with serverside parsing and vue.js frontend --- src/SMAPI.Web/Views/LogParser/Index.cshtml | 219 +++++++++++++++++------------ 1 file changed, 128 insertions(+), 91 deletions(-) (limited to 'src/SMAPI.Web/Views') diff --git a/src/SMAPI.Web/Views/LogParser/Index.cshtml b/src/SMAPI.Web/Views/LogParser/Index.cshtml index 1659de8f..8d1abbb1 100644 --- a/src/SMAPI.Web/Views/LogParser/Index.cshtml +++ b/src/SMAPI.Web/Views/LogParser/Index.cshtml @@ -1,15 +1,29 @@ @{ ViewData["Title"] = "SMAPI log parser"; } +@using Newtonsoft.Json +@using StardewModdingAPI.Web.Framework.LogParsing.Models @model StardewModdingAPI.Web.ViewModels.LogParserModel @section Head { + - } @@ -20,99 +34,122 @@

This page lets you upload, view, and share a SMAPI log to help troubleshoot mod issues.

-@if (Model.PasteID != null) +@if (Model.ParsedLog?.IsValid == true) {

Parsed log

-} -
- @if (Model.PasteID != null) - { - - } -
-
- - - - -