admin order line
This commit is contained in:
@@ -219,11 +219,15 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Bottom right: Command log -->
|
||||
<!-- Bottom right: Build Queue / Command Log (tabbed) -->
|
||||
<div id="log-panel">
|
||||
<h2>Command Log</h2>
|
||||
<div style="display:flex; align-items:center; gap:8px; margin-bottom:12px; border-bottom:1px solid #2a3a5a; padding-bottom:10px;">
|
||||
<h2 style="margin:0; flex:1;">Ουρά Κατασκευών</h2>
|
||||
<button id="tab-queue" class="log-tab-btn tab-active" onclick="window.switchToQueueMode()">🏗️ Ουρά</button>
|
||||
<button id="tab-log" class="log-tab-btn" onclick="window.switchToLogMode()">📋 Ιστορικό</button>
|
||||
</div>
|
||||
<div id="log-content">
|
||||
<p id="empty-log">No commands sent yet.</p>
|
||||
<p style="color:#555;font-size:0.85rem;padding:12px 0;">← Επιλέξτε πόλη για να δείτε την ουρά.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -254,14 +258,78 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
/* Tab buttons for queue / log toggle */
|
||||
.log-tab-btn {
|
||||
background: transparent;
|
||||
border: 1px solid #2a3a5a;
|
||||
color: #666;
|
||||
padding: 4px 10px;
|
||||
border-radius: 6px;
|
||||
font-size: 0.75rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
font-family: inherit;
|
||||
}
|
||||
.log-tab-btn:hover { border-color: #4a7aaa; color: #aaa; }
|
||||
.log-tab-btn.tab-active { border-color: #c8a44a; color: #c8a44a; background: rgba(200,164,74,0.1); }
|
||||
|
||||
/* Draggable build queue row */
|
||||
.bq-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 10px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #1a2a3a;
|
||||
margin-bottom: 5px;
|
||||
background: #0d1e30;
|
||||
cursor: default;
|
||||
transition: background 0.15s, border-color 0.15s;
|
||||
user-select: none;
|
||||
}
|
||||
.bq-row:hover { background: #112038; border-color: #2a4a6a; }
|
||||
.bq-row.bq-drag-over { border-color: #c8a44a; background: rgba(200,164,74,0.08); }
|
||||
.bq-handle {
|
||||
cursor: grab;
|
||||
font-size: 1.1rem;
|
||||
color: #3a5a7a;
|
||||
line-height: 1;
|
||||
flex-shrink: 0;
|
||||
padding: 0 2px;
|
||||
}
|
||||
.bq-handle:hover { color: #c8a44a; }
|
||||
.bq-pos {
|
||||
width: 18px;
|
||||
text-align: right;
|
||||
font-size: 0.72rem;
|
||||
color: #3a5a7a;
|
||||
font-weight: 700;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.bq-icon { font-size: 1.1rem; flex-shrink: 0; }
|
||||
.bq-name { flex: 1; font-size: 0.88rem; color: #d0d0d0; }
|
||||
.bq-cancel-btn {
|
||||
background: transparent;
|
||||
border: 1px solid #3a2a2a;
|
||||
color: #884444;
|
||||
border-radius: 4px;
|
||||
padding: 2px 6px;
|
||||
font-size: 0.75rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.bq-cancel-btn:hover { background: rgba(200,80,80,0.15); border-color: #cc4444; color: #ff6666; }
|
||||
</style>
|
||||
<script>
|
||||
window.PLAYER_ID = "{{ player_id }}";
|
||||
</script>
|
||||
<script src="/static/js/state.js?v=5"></script>
|
||||
<script src="/static/js/components/townViewer.js?v=5"></script>
|
||||
<script src="/static/js/components/commandForm.js?v=5"></script>
|
||||
<script src="/static/js/components/commandLog.js?v=5"></script>
|
||||
<script src="/static/js/api.js?v=5"></script>
|
||||
<script src="/static/js/app.js?v=5"></script>
|
||||
<script src="/static/js/state.js?v=6"></script>
|
||||
<script src="/static/js/components/townViewer.js?v=6"></script>
|
||||
<script src="/static/js/components/commandForm.js?v=6"></script>
|
||||
<script src="/static/js/components/commandLog.js?v=6"></script>
|
||||
<script src="/static/js/api.js?v=6"></script>
|
||||
<script src="/static/js/app.js?v=6"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -243,7 +243,7 @@
|
||||
<div class="status-bar" id="status-bar"></div>
|
||||
|
||||
<!-- Warehouse-full notice (hidden by default) -->
|
||||
<div id="warehouse-full-banner" style="display:none; background: linear-gradient(90deg, #5a1a00, #8b2500); border: 1px solid #ff6600; border-radius: 8px; padding: 12px 18px; margin-bottom: 1rem; display: flex; align-items: center; gap: 12px; font-weight: 600;">
|
||||
<div id="warehouse-full-banner" style="display:none; background: linear-gradient(90deg, #5a1a00, #8b2500); border: 1px solid #ff6600; border-radius: 8px; padding: 12px 18px; margin-bottom: 1rem; align-items: center; gap: 12px; font-weight: 600;">
|
||||
<span style="font-size: 1.4rem;">📦</span>
|
||||
<span>
|
||||
<strong style="color:#ff9933;">Αποθήκη Γεμάτη!</strong>
|
||||
@@ -530,7 +530,6 @@
|
||||
});
|
||||
}
|
||||
|
||||
// -- Warehouse full notice --
|
||||
async function checkWarehouseStatus() {
|
||||
try {
|
||||
const res = await fetch(`/api/farm_status?player_id=${PLAYER_ID}`);
|
||||
|
||||
Reference in New Issue
Block a user