Pass COMPUTER_NAME to templates

This commit is contained in:
2025-10-19 02:06:40 +08:00
parent eabc75c8de
commit f038ca8e79
8 changed files with 29 additions and 19 deletions

View File

@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>喚醒 PinLin3770</title>
<title>喚醒 {{COMPUTER_NAME}}</title>
<style>
body {
font-family: sans-serif; padding: 1.5rem; font-size: 1.2rem;
@@ -14,12 +14,12 @@
</style>
</head>
<body>
<h1>喚醒 PinLin3770</h1>
<h1>喚醒 {{COMPUTER_NAME}}</h1>
<p>已登入為身分 {{USERNAME}}</p>
<form method="POST" action="/logout">
<button type="submit">登出</button>
</form>
<br>
<a href="/wakeup3770">喚醒 PinLin3770</a>
<a href="/wakeup">喚醒 {{COMPUTER_NAME}}</a>
</body>
</html>

View File

@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>登入失敗 | 喚醒 PinLin3770</title>
<title>登入失敗 | 喚醒 {{COMPUTER_NAME}}</title>
<style>
body {
font-family: sans-serif; padding: 1.5rem; font-size: 1.2rem;
@@ -14,9 +14,9 @@
</style>
</head>
<body>
<h1>喚醒 PinLin3770</h1>
<h1>喚醒 {{COMPUTER_NAME}}</h1>
<p>⚠️ 登入失敗</p>
<p>{{error}}</p>
<p>{{ERROR}}</p>
<a href="/">回首頁</a>
</body>
</html>

View File

@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>登入 | 喚醒 PinLin3770</title>
<title>登入 | 喚醒 {{COMPUTER_NAME}}</title>
<style>
body {
font-family: sans-serif; padding: 1.5rem; font-size: 1.2rem;
@@ -14,7 +14,7 @@
</style>
</head>
<body>
<h1>喚醒 PinLin3770</h1>
<h1>喚醒 {{COMPUTER_NAME}}</h1>
<a href="/login">點此登入</a>
</body>
</html>

View File

@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>喚醒失敗 | 喚醒 PinLin3770</title>
<title>喚醒失敗 | 喚醒 {{COMPUTER_NAME}}</title>
<style>
body {
font-family: sans-serif; padding: 1.5rem; font-size: 1.2rem;
@@ -14,9 +14,9 @@
</style>
</head>
<body>
<h1>喚醒 PinLin3770</h1>
<h1>喚醒 {{COMPUTER_NAME}}</h1>
<p>⚠️ 發送魔法封包失敗</p>
<p>{{error}}</p>
<p>{{ERROR}}</p>
<a href="/">回首頁</a>
</body>
</html>

View File

@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>喚醒成功 | 喚醒 PinLin3770</title>
<title>喚醒成功 | 喚醒 {{COMPUTER_NAME}}</title>
<style>
body {
font-family: sans-serif; padding: 1.5rem; font-size: 1.2rem;
@@ -14,7 +14,7 @@
</style>
</head>
<body>
<h1>喚醒 PinLin3770</h1>
<h1>喚醒 {{COMPUTER_NAME}}</h1>
<p>✅ 已經發送魔法封包</p>
<a href="/">回首頁</a>
</body>