89 lines
4.7 KiB
HTML
89 lines
4.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>XIVLauncher Remote OTP</title>
|
|
<link rel="stylesheet" href="/static/style.css">
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<header>
|
|
<div class="logo">
|
|
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect>
|
|
<path d="M7 11V7a5 5 0 0 1 10 0v4"></path>
|
|
</svg>
|
|
<h1>XIVLauncher Remote OTP</h1>
|
|
</div>
|
|
</header>
|
|
|
|
<main>
|
|
<div class="card add-instance-card">
|
|
<h2>Add Instance</h2>
|
|
<form id="add-form">
|
|
<div class="form-group">
|
|
<label for="name">Name</label>
|
|
<input type="text" id="name" placeholder="e.g. Steam Deck" required>
|
|
</div>
|
|
<div class="form-row">
|
|
<div class="form-group">
|
|
<label for="ip">IP Address</label>
|
|
<input type="text" id="ip" placeholder="192.168.1.100" required>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="port">Port</label>
|
|
<input type="number" id="port" value="4646" required>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="secret">OTP Secret</label>
|
|
<input type="password" id="secret" placeholder="Base32 Secret or otpauth:// URL" required>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Add Instance</button>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="card firewall-helper-card">
|
|
<h2>Firewall Helper</h2>
|
|
<p class="helper-text">Run these commands on the machine running XIVLauncher to allow incoming connections on the specified port.</p>
|
|
<div class="code-block">
|
|
<span class="code-label">UFW</span>
|
|
<div class="code-wrapper">
|
|
<code id="ufw-cmd">sudo ufw allow from localhost to any port 4646 proto tcp</code>
|
|
<button class="btn-copy" onclick="copyToClipboard('ufw-cmd')" title="Copy to clipboard">
|
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div class="code-block">
|
|
<span class="code-label">iptables</span>
|
|
<div class="code-wrapper">
|
|
<code id="iptables-cmd">sudo iptables -I INPUT -p tcp -s localhost --dport 4646 -j ACCEPT</code>
|
|
<button class="btn-copy" onclick="copyToClipboard('iptables-cmd')" title="Copy to clipboard">
|
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card instances-card">
|
|
<div class="instances-header">
|
|
<h2>Managed Instances</h2>
|
|
<button class="btn btn-icon" id="refresh-btn" title="Refresh">
|
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<polyline points="23 4 23 10 17 10"></polyline>
|
|
<path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"></path>
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
<div id="instances-list" class="instances-list">
|
|
<!-- Instances injected via JS -->
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
<script src="/static/app.js"></script>
|
|
</body>
|
|
</html>
|