mirror of
https://github.com/imgfloat/server.git
synced 2026-02-05 11:49:25 +00:00
Add proper view segregation
This commit is contained in:
@@ -20,13 +20,8 @@
|
||||
</header>
|
||||
<section class="controls">
|
||||
<div>
|
||||
<h3>Admins</h3>
|
||||
<input id="new-admin" placeholder="Twitch username" />
|
||||
<button onclick="addAdmin()">Add admin</button>
|
||||
<ul id="admin-list"></ul>
|
||||
</div>
|
||||
<div>
|
||||
<h3>Assets</h3>
|
||||
<h3>Overlay assets</h3>
|
||||
<p>Upload images to place on the broadcaster's overlay. Changes are visible to the broadcaster instantly.</p>
|
||||
<input id="asset-file" type="file" accept="image/*" />
|
||||
<button onclick="uploadAsset()">Upload</button>
|
||||
<ul id="asset-list"></ul>
|
||||
|
||||
@@ -16,6 +16,15 @@
|
||||
<button class="secondary" type="submit">Logout</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="panel">
|
||||
<h3>Channel admins</h3>
|
||||
<p>Add trusted moderators who can upload overlay assets on your behalf.</p>
|
||||
<div class="actions">
|
||||
<input id="new-admin" placeholder="Twitch username" />
|
||||
<button type="button" onclick="addAdmin()">Add admin</button>
|
||||
</div>
|
||||
<ul id="admin-list" class="stacked-list"></ul>
|
||||
</div>
|
||||
<div th:if="${adminChannels != null}"
|
||||
class="panel">
|
||||
<h3>Channels you administer</h3>
|
||||
@@ -28,5 +37,9 @@
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<script th:inline="javascript">
|
||||
const broadcaster = /*[[${channel}]]*/ '';
|
||||
</script>
|
||||
<script src="/js/dashboard.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user