feat: add "Archived Settings" category to settings

This commit is contained in:
Index 2024-08-19 18:25:01 -05:00
parent 4013251a8e
commit afe9eaaf6f
2 changed files with 40 additions and 1 deletions

View file

@ -15,7 +15,7 @@ const PlaceAllowlist = [
Settings = result.PolyPlus_Settings || {};
if (Settings.TheGreatDivide.Enabled !== true) {
//return
return
}
if (Settings.TheGreatDivide.UserStatsOn === true && window.location.pathname.split('/')[1] === 'u') {

View file

@ -826,6 +826,45 @@
<span class="desc">description</span>
</div>
-->
<div class="card mb-3">
<div class="card-body">
<h3>ARCHIVED SETTINGS</h3>
<p>Features here still work, but are separated from other features as they will no longer receive any improvements, or changes (bugs however may be fixed eventually if any are found).</p>
<hr />
<div class="card card-body limited-time setting-container mb-3 enabled" id="greatdivide-server-unbalance" style="background-image: linear-gradient(rgba(0.8, 0.8, 0.8, 0.8), rgba(0.8, 0.8, 0.8, 0.8)), url(/images/greatdivide.png); background-size: cover; background-position: center;">
<div class="row">
<div class="col-auto">
<span class="indicator">&nbsp;</span>
</div>
<div class="col">
<span class="title">
The Great Divide
</span>
<div class="setting-buttons">
<button class="btn btn-sm toggle-btn btn-danger" data-setting="Enabled" data-parent="TheGreatDivide">Disable</button>
</div>
</div>
</div>
<span class="desc">Reinforcements to aid in your quest to bring home the victory to your team, and bring honor to your peers.</span>
<span class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="server-unbalanced-greatdivide" data-setting="UnbalancedIndicatorOn" data-parent="TheGreatDivide">
<label class="form-check-label" for="server-unbalanced-greatdivide">"Potentially Unbalanced" indicator in server list </label>
</span>
<span class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="user-statistics-greatdivide" data-setting="UserStatsOn" data-parent="TheGreatDivide">
<label class="form-check-label" for="user-statistics-greatdivide">User Statistics tab on profiles</label>
</span>
<small class="text-muted mt-1" style="font-size: 0.7rem;">
* some features use <a href="https://polytoria.com/u/dargy" target="_blank">@dargy</a>'s public API! thank you!
</small>
<small class="limited-time-tag mt-1">
* was available until July 14th
</small>
</div>
</div>
</div>
<div class="card">
<div class="card-body">
<h3>EXPERIMENTAL SETTINGS</h3>