-
-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
261 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
using System.Reflection; | ||
|
||
[assembly: AssemblyProduct("SMAPI")] | ||
[assembly: AssemblyVersion("2.11.0")] | ||
[assembly: AssemblyFileVersion("2.11.0")] | ||
[assembly: AssemblyVersion("2.11.1")] | ||
[assembly: AssemblyFileVersion("2.11.1")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"Name": "Console Commands", | ||
"Author": "SMAPI", | ||
"Version": "2.11.0", | ||
"Version": "2.11.1", | ||
"Description": "Adds SMAPI console commands that let you manipulate the game.", | ||
"UniqueID": "SMAPI.ConsoleCommands", | ||
"EntryDll": "ConsoleCommands.dll", | ||
"MinimumApiVersion": "2.11.0" | ||
"MinimumApiVersion": "2.11.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"Name": "Save Backup", | ||
"Author": "SMAPI", | ||
"Version": "2.11.0", | ||
"Version": "2.11.1", | ||
"Description": "Automatically backs up all your saves once per day into its folder.", | ||
"UniqueID": "SMAPI.SaveBackup", | ||
"EntryDll": "SaveBackup.dll", | ||
"MinimumApiVersion": "2.11.0" | ||
"MinimumApiVersion": "2.11.1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace StardewModdingAPI.Web.Framework.LogParsing.Models | ||
{ | ||
/// <summary>The different sections of a log.</summary> | ||
public enum LogSection | ||
{ | ||
/// <summary>The list of mods the user has.</summary> | ||
ModsList, | ||
|
||
/// <summary>The list of content packs the user has.</summary> | ||
ContentPackList, | ||
|
||
/// <summary>The list of mod updates SMAPI has found.</summary> | ||
ModUpdateList | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,16 +17,17 @@ | |
{ | ||
<meta name="robots" content="noindex" /> | ||
} | ||
<link rel="stylesheet" href="~/Content/css/log-parser.css?r=20190221" /> | ||
<link rel="stylesheet" href="~/Content/css/log-parser.css?r=20190314" /> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.min.js" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js" crossorigin="anonymous"></script> | ||
<script src="~/Content/js/log-parser.js?r=20190221"></script> | ||
<script src="~/Content/js/log-parser.js?r=20190310"></script> | ||
<script> | ||
$(function() { | ||
smapi.logParser({ | ||
logStarted: new Date(@Json.Serialize(Model.ParsedLog?.Timestamp)), | ||
showPopup: @Json.Serialize(Model.ParsedLog == null), | ||
showMods: @Json.Serialize(Model.ParsedLog?.Mods?.Select(p => Model.GetSlug(p.Name)).Distinct().ToDictionary(slug => slug, slug => true), noFormatting), | ||
showSections: @Json.Serialize(Enum.GetNames(typeof(LogSection)).ToDictionary(section => section, section => false), noFormatting), | ||
showLevels: @Json.Serialize(defaultFilters, noFormatting), | ||
enableFilters: @Json.Serialize(!Model.ShowRaw) | ||
}, '@Model.SectionUrl'); | ||
|
@@ -261,16 +262,32 @@ else if (Model.ParsedLog?.IsValid == true) | |
@foreach (var message in Model.ParsedLog.Messages) | ||
{ | ||
string levelStr = message.Level.ToString().ToLower(); | ||
string sectionStartClass = message.IsStartOfSection ? "section-start" : null; | ||
string sectionFilter = message.Section != null && !message.IsStartOfSection ? $"&& sectionsAllow('{message.Section}')" : null; // filter the message by section if applicable | ||
<tr class="@levelStr mod" v-show="filtersAllow('@Model.GetSlug(message.Mod)', '@levelStr')"> | ||
<tr class="mod @levelStr @sectionStartClass" | ||
@if (message.IsStartOfSection) | ||
{ | ||
<text>v-on:click="toggleSection('@message.Section')"</text> | ||
} | ||
v-show="filtersAllow('@Model.GetSlug(message.Mod)', '@levelStr') @sectionFilter"> | ||
<td v-pre>@message.Time</td> | ||
<td v-pre>@message.Level.ToString().ToUpper()</td> | ||
<td v-pre data-title="@message.Mod">@message.Mod</td> | ||
<td v-pre>@message.Text</td> | ||
<td> | ||
<span v-pre class="log-message-text">@message.Text</span> | ||
@if (message.IsStartOfSection) | ||
{ | ||
<span class="section-toggle-message"> | ||
<template v-if="sectionsAllow('@message.Section')">This section is shown. Click here to hide it.</template> | ||
<template v-else>This section is hidden. Click here to show it.</template> | ||
</span> | ||
} | ||
</td> | ||
</tr> | ||
if (message.Repeated > 0) | ||
{ | ||
<tr class="@levelStr mod mod-repeat" v-show="filtersAllow('@Model.GetSlug(message.Mod)', '@levelStr')"> | ||
<tr class="@levelStr mod mod-repeat" v-show="filtersAllow('@Model.GetSlug(message.Mod)', '@levelStr') @sectionFilter"> | ||
<td colspan="3"></td> | ||
<td v-pre><i>repeats [@message.Repeated] times.</i></td> | ||
</tr> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
@using Newtonsoft.Json | ||
@model StardewModdingAPI.Web.ViewModels.ModListModel | ||
@{ | ||
ViewData["Title"] = "SMAPI mod compatibility"; | ||
ViewData["Title"] = "Mod compatibility"; | ||
} | ||
@section Head { | ||
<link rel="stylesheet" href="~/Content/css/mods.css?r=20190125" /> | ||
<link rel="stylesheet" href="~/Content/css/mods.css?r=20190302" /> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.min.js" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/jquery.tablesorter.combined.min.js" crossorigin="anonymous"></script> | ||
<script src="~/Content/js/mods.js?r=20190125"></script> | ||
<script src="~/Content/js/mods.js?r=20190302"></script> | ||
<script> | ||
$(function() { | ||
var data = @Json.Serialize(Model.Mods, new JsonSerializerSettings { Formatting = Formatting.None }); | ||
|
@@ -19,9 +19,9 @@ | |
} | ||
|
||
<div id="intro"> | ||
<p>This page lists all known SMAPI mods, whether they're compatible with the latest versions of Stardew Valley and SMAPI, and how to fix broken mods if possible. The list is updated every few days. (You can help <a href="https://stardewvalleywiki.com/Modding:SMAPI_compatibility">edit this list</a>!)</p> | ||
<p>This page shows all known SMAPI mods and (incompatible) content packs, whether they work with the latest versions of Stardew Valley and SMAPI, and how to fix them if not. If a mod doesn't work after following the instructions below, check <a href="https://stardewvalleywiki.com/Modding:Player_Guide/Troubleshooting">the troubleshooting guide</a> or <a href="https://stardewvalleywiki.com/Modding:Player_Guide/Troubleshooting#Ask_for_help">ask for help</a>.</p> | ||
|
||
<p>If a mod doesn't work after following the instructions below, check <a href="https://stardewvalleywiki.com/Modding:Player_Guide/Troubleshooting">the troubleshooting guide</a> or <a href="https://stardewvalleywiki.com/Modding:Player_Guide/Troubleshooting#Ask_for_help">ask for help</a>.</p> | ||
<p>The list is updated every few days (you can help <a href="https://stardewvalleywiki.com/Modding:Mod_compatibility">update it</a>!). It doesn't include XNB mods (see <a href="https://stardewvalleywiki.com/Modding:Using_XNB_mods"><em>using XNB mods</em> on the wiki</a> instead) or compatible content packs.</p> | ||
|
||
@if (Model.BetaVersion != null) | ||
{ | ||
|
@@ -61,7 +61,7 @@ | |
<th>compatibility</th> | ||
<th v-show="showAdvanced">broke in</th> | ||
<th v-show="showAdvanced">code</th> | ||
<th v-show="showAdvanced"><a href="http://smapi.io/3.0">3.0</a></th> | ||
<th><small><a href="http://smapi.io/3.0">3.0 ready</a></small></th> | ||
<th> </th> | ||
</tr> | ||
</thead> | ||
|
@@ -93,10 +93,10 @@ | |
<span v-if="mod.SourceUrl"><a v-bind:href="mod.SourceUrl">source</a></span> | ||
<span v-else class="mod-closed-source">no source</span> | ||
</td> | ||
<td v-show="showAdvanced"> | ||
<small v-if="mod.LatestCompatibility.Status == 'ok' || mod.LatestCompatibility.Status == 'unofficial' || mod.Smapi3Status == 'ok' || mod.Smapi3Status == 'soon' || mod.Smapi3Url"> | ||
<a v-if="mod.Smapi3Url" v-bind:href="mod.Smapi3Url">{{mod.Smapi3DisplayText}}</a> | ||
<template v-else>{{mod.Smapi3DisplayText}}</template> | ||
<td class="smapi-3-col"> | ||
<small v-if="mod.LatestCompatibility.Status == 'ok' || mod.LatestCompatibility.Status == 'unofficial' || mod.LatestCompatibility.Status == 'optional' || mod.Smapi3Status == 'ok' || mod.Smapi3Status == 'soon' || mod.Smapi3Url"> | ||
<a v-if="mod.Smapi3Url" v-bind:href="mod.Smapi3Url" v-bind:title="mod.Smapi3Tooltip">{{mod.Smapi3DisplayText}}</a> | ||
<span v-else v-bind:title="mod.Smapi3Tooltip">{{mod.Smapi3DisplayText}}</span> | ||
</small> | ||
</td> | ||
<td> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.