Files
nutty-tools/.common/core/widget-dock-core/index.html
T
nuttylmao 7e20a30c67 Complete overhaul of Printer Bot dock
First stage of widget-dock-core
2025-09-06 01:08:14 +10:00

86 lines
2.7 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<link rel="shortcut icon" href="#" />
<link rel="stylesheet" href="../../styles/global.css" />
<link rel="stylesheet" href="./style.css" />
<script type="text/javascript" src="https://unpkg.com/@streamerbot/client/dist/streamerbot-client.js"></script>
<script src="https://cdn.jsdelivr.net/npm/luxon@3/build/global/luxon.min.js"></script>
</head>
<body>
<!-- Header -->
<div id="header">
<img src="../../resources/logo.png" style="height: 40px;" />
<label id="title" class="title"></label>
<div id="header-end">
<button id="sb-actions-button" onclick="OpenRequiredActionsDialog()">
</button>
<button id="sb-status-button" onclick="OpenConnectDialog()">
<img id="sb-status-icon" style="height: 1em;" />
</button>
</div>
</div>
<!-- Page Contents -->
<iframe id="content">
</iframe>
<!-- Blur Layer -->
<div id="blur-layer"></div>
<!-- Streamer.bot Required Actions Dialog -->
<div id="sb-required-actions-dialog" class="dialog">
<button class="dialog-nav-button" onclick="CloseRequiredActionsDialog()">×</button>
<label id="sb-required-actions-success">✅ All actions found</label>
<label id="sb-required-actions-failure">⚠️ You are missing Streamer.bot actions</label>
<label id="sb-required-actions-failure-subtext" class="setting-description">The following actions were not found in Streamer.bot:</label>
<div id="sb-required-actions-list" class="callout">
</div>
<label class="setting-description">Please import the following </label>
<div id="sb-import-wrapper">
<label id="sb-import-code" class="callout"></label>
<button id="sb-import-copy-button" onclick="CopyImportCode()">Copy</button>
</div>
<button onclick="CheckRequiredActions()">Check Again</button>
</div>
<!-- Streamer.bot Connect Dialog -->
<div id="sb-connect-dialog" class="dialog">
<hr class="divider">
<div style="display: flex; flex-direction: row; gap: 1em">
<div class="field">
<label for="sb-address">Address *</label>
<input type="text" id="sb-address" name="sb-address" placeholder="127.0.0.1" value="127.0.0.1">
</div>
<div class="field">
<label for="sb-port">Port *</label>
<input type="text" id="sb-port" name="sb-port" placeholder="8080" value="8080">
</div>
</div>
<div class="field">
<label for="sb-password">Password</label>
<label class="setting-description" for="sb-password">(Optional)</label>
<input type="password" id="sb-password" name="sb-password">
</div>
<hr class="divider">
<label id="sb-error-label"></label>
<button id="sb-connect-button" onclick="Connect()">Connect</button>
</div>
</body>
<script src="./script.js"></script>