diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-06-24 01:43:42 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-09-13 15:58:54 -0400 |
commit | 01221ea66f2eef7ffd5ae846d1f9b99249674080 (patch) | |
tree | 8c4f22bc6aecb7ca58277aedebcbfd3d11b097fa /src/SMAPI.Web/wwwroot | |
parent | 460b765f0b5dea7fc13514f1c19d5ac067ceb748 (diff) | |
download | SMAPI-01221ea66f2eef7ffd5ae846d1f9b99249674080.tar.gz SMAPI-01221ea66f2eef7ffd5ae846d1f9b99249674080.tar.bz2 SMAPI-01221ea66f2eef7ffd5ae846d1f9b99249674080.zip |
drop SMAPI 3.0 compatibility field (#638)
Diffstat (limited to 'src/SMAPI.Web/wwwroot')
-rw-r--r-- | src/SMAPI.Web/wwwroot/Content/js/mods.js | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/src/SMAPI.Web/wwwroot/Content/js/mods.js b/src/SMAPI.Web/wwwroot/Content/js/mods.js index 1c9562bb..130f60be 100644 --- a/src/SMAPI.Web/wwwroot/Content/js/mods.js +++ b/src/SMAPI.Web/wwwroot/Content/js/mods.js @@ -11,11 +11,7 @@ smapi.modList = function (mods, enableBeta) { soon: 0, broken: 0, abandoned: 0, - invalid: 0, - smapi3_unknown: 0, - smapi3_ok: 0, - smapi3_broken: 0, - smapi3_soon: 0 + invalid: 0 }; var data = { mods: mods, @@ -52,16 +48,6 @@ smapi.modList = function (mods, enableBeta) { nexus: { value: true, label: "Nexus" }, custom: { value: true } } - }, - smapi3: { - label: "SMAPI 3.0", - value: { - // note: keys must match status returned by the API - ok: { value: true, label: "ready" }, - soon: { value: true }, - broken: { value: true }, - unknown: { value: true } - } } }, search: "" @@ -97,24 +83,6 @@ smapi.modList = function (mods, enableBeta) { // set overall compatibility mod.LatestCompatibility = mod.BetaCompatibility || mod.Compatibility; - // set SMAPI 3.0 display text - switch (mod.Smapi3Status) { - case "ok": - mod.Smapi3DisplayText = "✓ yes"; - mod.Smapi3Tooltip = "The latest version of this mod is compatible with SMAPI 3.0."; - break; - - case "broken": - mod.Smapi3DisplayText = "✖ no"; - mod.Smapi3Tooltip = "This mod will break in SMAPI 3.0; consider notifying the author."; - break; - - default: - mod.Smapi3DisplayText = "↻ " + mod.Smapi3Status; - mod.Smapi3Tooltip = "This mod has a pending update for SMAPI 3.0 which hasn't been released yet."; - break; - } - // concatenate searchable text mod.SearchableText = [mod.Name, mod.AlternateNames, mod.Author, mod.AlternateAuthors, mod.Compatibility.Summary, mod.BrokeIn]; if (mod.Compatibility.UnofficialVersion) @@ -171,7 +139,6 @@ smapi.modList = function (mods, enableBeta) { if (mod.Visible) { stats.total++; stats[this.getCompatibilityGroup(mod)]++; - stats["smapi3_" + mod.Smapi3Status]++; } } }, @@ -208,10 +175,6 @@ smapi.modList = function (mods, enableBeta) { return false; } - // check SMAPI 3.0 compatibility - if (filters.smapi3.value[mod.Smapi3Status] && !filters.smapi3.value[mod.Smapi3Status].value) - return false; - // check download sites var ignoreSites = []; |