feat(config): support *_MB env vars for upload size limits
- Add `applyMegabytesOrBytesEnv` to accept size settings in either bytes or MB - Prefer `*_BYTES` when set, otherwise convert `*_MB` to bytes with overflow guard - Add coverage for MB-based environment overrides - Introduce `static/js/upload-popups.js` to lazy-load and cache popup templatesfeat(config): support *_MB env vars for upload size limits - Add `applyMegabytesOrBytesEnv` to accept size settings in either bytes or MB - Prefer `*_BYTES` when set, otherwise convert `*_MB` to bytes with overflow guard - Add coverage for MB-based environment overrides - Introduce `static/js/upload-popups.js` to lazy-load and cache popup templates
This commit is contained in:
12
static/popups/upload-limits.html
Normal file
12
static/popups/upload-limits.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<h3>Upload limits</h3>
|
||||
<div class="quota-meter-list">
|
||||
<div class="quota-meter">
|
||||
<div class="quota-meter-head"><span>Box size</span><span>{{ boxLimit }}</span></div>
|
||||
<div class="quota-meter-track"><span class="quota-meter-bar" style="width:{{ boxPercent }}%"></span></div>
|
||||
</div>
|
||||
<div class="quota-meter">
|
||||
<div class="quota-meter-head"><span>Single file</span><span>{{ fileLimit }}</span></div>
|
||||
<div class="quota-meter-track"><span class="quota-meter-bar" style="width:{{ filePercent }}%"></span></div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="quota-note">These values come from the running WarpBox configuration.</p>
|
||||
Reference in New Issue
Block a user