Skip to content

Commit

Permalink
Separate kind of plugin configurations are now more visible in the we…
Browse files Browse the repository at this point in the history
…b page.
  • Loading branch information
BlueAndi committed Aug 14, 2024
1 parent 47ad9fc commit a785d88
Show file tree
Hide file tree
Showing 35 changed files with 550 additions and 512 deletions.
4 changes: 2 additions & 2 deletions data/cp/captivePortal.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<main role="main" class="flex-shrink-0">
<div class="container">
<h1 class="mt-5">Captive Portal</h1>
<h2 class="mt-2">Wifi network configuration</h2>
<h2>Wifi network configuration</h2>
<p>
<div class="form-group">
<label class="form-label" for="ssid">SSID:</label><br />
Expand All @@ -66,7 +66,7 @@ <h2 class="mt-2">Wifi network configuration</h2>
</div>
</p>
<p>WiFi MAC address: ~MAC_ADDR~</p>
<h2 class="mt-2">Restart</h2>
<h2>Restart</h2>
<p>
<input type="button" value="Restart now" onclick="restart()" />
</p>
Expand Down
4 changes: 2 additions & 2 deletions data/debug.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
<div class="modal-header" id="dialogHeader">
<h5 class="modal-title" id="dialogTitle"></h5>
</div>
<div class="modal-body text-dark" id="dialogBody">
<div class="modal-body" id="dialogBody">
</div>
<div class="modal-footer text-dark" id="dialogFooter">
<div class="modal-footer" id="dialogFooter">
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions data/display.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
<div class="modal-header" id="dialogHeader">
<h5 class="modal-title" id="dialogTitle"></h5>
</div>
<div class="modal-body text-dark" id="dialogBody">
<div class="modal-body" id="dialogBody">
</div>
<div class="modal-footer text-dark" id="dialogFooter">
<div class="modal-footer" id="dialogFooter">
</div>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions data/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
<div class="modal-header" id="dialogHeader">
<h5 class="modal-title" id="dialogTitle"></h5>
</div>
<div class="modal-body text-dark" id="dialogBody">
<div class="modal-body" id="dialogBody">
</div>
<div class="modal-footer text-dark" id="dialogFooter">
<div class="modal-footer" id="dialogFooter">
</div>
</div>
</div>
Expand Down Expand Up @@ -84,7 +84,7 @@ <h4 id="fileName" class="text-secondary"></h4>
</div>
<div class="row">
<div class="col-3">
<h2 class="mt-1">Files</h2>
<h2>Files</h2>
<ul class="nav nav-pills flex-column" id="fileTree"></ul>
</div>
<div class="col-9" style="position: relative;">
Expand Down
12 changes: 6 additions & 6 deletions data/info.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<main role="main" class="flex-shrink-0">
<div class="container">
<h1 class="mt-5">Info</h1>
<h2 class="mt-1">Software</h2>
<h2>Software</h2>
<div class="table-responsive">
<table class="table table-striped">
<thead class="thead-light">
Expand Down Expand Up @@ -78,7 +78,7 @@ <h2 class="mt-1">Software</h2>
</tbody>
</table>
</div>
<h3 class="mt-1">Heap</h3>
<h3>Heap</h3>
<div class="table-responsive">
<table class="table table-striped">
<thead class="thead-light">
Expand All @@ -104,7 +104,7 @@ <h3 class="mt-1">Heap</h3>
</table>
</div>
<canvas id="canvasChartHeap" width="240" height="240"></canvas>
<h3 class="mt-1">PSRAM</h3>
<h3>PSRAM</h3>
<div class="table-responsive">
<table class="table table-striped">
<thead class="thead-light">
Expand All @@ -130,7 +130,7 @@ <h3 class="mt-1">PSRAM</h3>
</table>
</div>
<canvas id="canvasChartPsram" width="240" height="240"></canvas>
<h2 class="mt-1">MCU</h2>
<h2>MCU</h2>
<div class="table-responsive">
<table class="table table-striped">
<thead class="thead-light">
Expand Down Expand Up @@ -172,7 +172,7 @@ <h2 class="mt-1">MCU</h2>
</tbody>
</table>
</div>
<h2 class="mt-1">Network</h2>
<h2>Network</h2>
<div class="table-responsive">
<table class="table table-striped">
<thead class="thead-light">
Expand Down Expand Up @@ -205,7 +205,7 @@ <h2 class="mt-1">Network</h2>
</tbody>
</table>
</div>
<h2 class="mt-1">Filesystem</h2>
<h2>Filesystem</h2>
<div class="table-responsive">
<table class="table table-striped">
<thead class="thead-light">
Expand Down
2 changes: 1 addition & 1 deletion data/js/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ dialog.showWarning = function(message, isBlocking) {
$("#dialogHeader").removeClass();
$("#dialogFooter").empty();

$("#dialogHeader").addClass("modal-header bg-warning text-dark");
$("#dialogHeader").addClass("modal-header bg-warning");
$("#dialogFooter").append($btnClose);

return dialog._show("Warning", message, isBlocking);
Expand Down
4 changes: 2 additions & 2 deletions data/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
<div class="modal-header" id="dialogHeader">
<h5 class="modal-title" id="dialogTitle"></h5>
</div>
<div class="modal-body text-dark" id="dialogBody">
<div class="modal-body" id="dialogBody">
</div>
<div class="modal-footer text-dark" id="dialogFooter">
<div class="modal-footer" id="dialogFooter">
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions data/update.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
<div class="modal-header" id="dialogHeader">
<h5 class="modal-title" id="dialogTitle"></h5>
</div>
<div class="modal-body text-dark" id="dialogBody">
<div class="modal-body" id="dialogBody">
</div>
<div class="modal-footer text-dark" id="dialogFooter">
<div class="modal-footer" id="dialogFooter">
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion lib/BTCQuotePlugin/web/BTCQuotePlugin.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h1 class="mt-5">BTC Quote Plugin</h1>
<p>This plugin displays the current Bitcoin to USD exchange rate from Coindesk.</p>
<p>The quote is updated every 15 minutes.</p>
<p><a href="https://www.coindesk.com/price/bitcoin">Powered by CoinDesk</a></p>
<h2 class="mt-1">REST API</h2>
<h2>REST API</h2>
<pre class="text-light"><code>-</code></pre>
</div>
</main>
Expand Down
2 changes: 1 addition & 1 deletion lib/BatteryPlugin/web/BatteryPlugin.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<h1 class="mt-5">BatteryPlugin</h1>
<p><img src="BatteryPlugin.jpg" alt="Screenshot" /></p>
<p>This plugin displays the battery symbol with state of charge bar.</p>
<h2 class="mt-1">REST API</h2>
<h2>REST API</h2>
<pre class="text-light"><code>-</code></pre>
</div>
</main>
Expand Down
52 changes: 27 additions & 25 deletions lib/CountdownPlugin/web/CountdownPlugin.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@
<h1 class="mt-5">CountdownPlugin</h1>
<p><img src="CountdownPlugin.jpg" alt="Screenshot" /></p>
<p>The plugin shows the remaining days until a configured target date.</p>
<h2 class="mt-1">REST API</h2>
<h3 class="mt-1">Get target date and target day description.</h3>
<h2>REST API</h2>
<h3>Get target date and target day description.</h3>
<pre name="injectOrigin" class="text-light"><code>GET {{ORIGIN}}/rest/api/v1/display/uid/&lt;PLUGIN-UID&gt;/countdown</code></pre>
<pre name="injectOrigin" class="text-light"><code>GET {{ORIGIN}}/rest/api/v1/display/alias/&lt;PLUGIN-ALIAS&gt;/countdown</code></pre>
<ul>
<li>PLUGIN-UID: The plugin unique id.</li>
<li>PLUGIN-ALIAS: The plugin alias name.</li>
</ul>
<h3 class="mt-1">Set target day and target day desription.</h3>
<h3>Set target day and target day desription.</h3>
<pre name="injectOrigin" class="text-light"><code>POST {{ORIGIN}}/rest/api/v1/display/uid/&lt;PLUGIN-UID&gt;/countdown?day=&lt;DAY&gt;&month=&lt;MONTH&gt;&year=&lt;YEAR&gt;&descPlural=&lt;PLURAL&gt;&descSingular=&lt;SINGULAR&gt;</code></pre>
<pre name="injectOrigin" class="text-light"><code>POST {{ORIGIN}}/rest/api/v1/display/alias/&lt;PLUGIN-ALIAS&gt;/countdown?day=&lt;DAY&gt;&month=&lt;MONTH&gt;&year=&lt;YEAR&gt;&descPlural=&lt;PLURAL&gt;&descSingular=&lt;SINGULAR&gt;</code></pre>
<ul>
Expand All @@ -55,28 +55,30 @@ <h3 class="mt-1">Set target day and target day desription.</h3>
<li>PLURAL: The unit in plural form, e.g. DAYS.</li>
<li>SINGULAR: The unit in singular form, e.g. DAY.</li>
</ul>
<h3 class="mt-2">Configuration</h3>
<h3 class="mt-1">Target Date</h3>
<form id="myForm" action="javascript:setConfig(pluginUid.options[pluginUid.selectedIndex].value)">
<div class="form-group">
<label class="form-label" for="pluginUid">Plugin UID:</label>
<select class="form-select" id="pluginUid" size="1" onChange="getConfig(pluginUid.options[pluginUid.selectedIndex].value)">
</select>
</div>
<div class="form-group">
<label class="form-label" for="targetDate">Target date:</label>
<input class="form-control" type="date" id="targetDate" name="targetDate" value="2020-09-01" />
</div>
<div class="form-group">
<label class="form-label" for="targetDayPlural">Target day in plural form:</label>
<input class="form-control" type="text" id="targetDayPlural" name="targetDayPlural" value="DAYS" />
</div>
<div class="form-group">
<label class="form-label" for="targetDaySingular">Target day in singular form:</label>
<input class="form-control" type="text" id="targetDaySingular" name="targetDaySingular" value="DAY" />
</div>
<input name="submit" type="submit" value="Update"/>
</form>
<h2>Configuration</h2>
<h3>Target Date</h3>
<div class="h-100 p-5 bg-body-tertiary border rounded-3">
<form id="myForm" action="javascript:setConfig(pluginUid.options[pluginUid.selectedIndex].value)">
<div class="form-group">
<label class="form-label" for="pluginUid">Plugin UID:</label>
<select class="form-select" id="pluginUid" size="1" onChange="getConfig(pluginUid.options[pluginUid.selectedIndex].value)">
</select>
</div>
<div class="form-group">
<label class="form-label" for="targetDate">Target date:</label>
<input class="form-control" type="date" id="targetDate" name="targetDate" value="2020-09-01" />
</div>
<div class="form-group">
<label class="form-label" for="targetDayPlural">Target day in plural form:</label>
<input class="form-control" type="text" id="targetDayPlural" name="targetDayPlural" value="DAYS" />
</div>
<div class="form-group">
<label class="form-label" for="targetDaySingular">Target day in singular form:</label>
<input class="form-control" type="text" id="targetDaySingular" name="targetDaySingular" value="DAY" />
</div>
<input name="submit" type="submit" value="Update"/>
</form>
</div>
</div>
</main>

Expand Down
8 changes: 4 additions & 4 deletions lib/DDPPlugin/web/DDPPlugin.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ <h1 class="mt-5">DDPPlugin</h1>
<ul>
<li>RGB with 24-bit per pixel</li>
</ul>
<h2 class="mt-1">xlights Configuration</h2>
<h3 class="mt-1">Add Ethernet controller</h3>
<h2>xlights Configuration</h2>
<h3>Add Ethernet controller</h3>
<ul>
<li>Name: Pixelix</li>
<li>IP Address:&lt;IP-ADDRESS&gt;</li>
<li>Protocol: DDP</li>
</ul>
<h3 class="mt-1">Add Layout</h3>
<h3>Add Layout</h3>
<h4 class="mt-1">Create new matrix</h4>
<ul>
<li>Name: Matrix8x32</li>
Expand Down Expand Up @@ -74,7 +74,7 @@ <h4 class="mt-1">Appearance</h4>
<li>Pixel Size: 10</li>
<li>Pixel Style: Square</li>
</ul>
<h2 class="mt-1">REST API</h2>
<h2>REST API</h2>
<pre class="text-light"><code>-</code></pre>
</div>
</main>
Expand Down
Loading

0 comments on commit a785d88

Please sign in to comment.