Skip to content

Commit de3b589

Browse files
author
Alex Hoffmann
committed
Refactored UI styles
1 parent 162908f commit de3b589

3 files changed

Lines changed: 8 additions & 31 deletions

File tree

admin/index.html

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,6 @@ <h1>MQTT SQL Admin</h1>
6868
</div>
6969
<div id="acl-tab" class="tab-content">
7070
<div class="content">
71-
<div class="broker-section">
72-
<div id="broker-summary"></div>
73-
</div>
7471
<div class="broker-section">
7572
<h3>📋 Clients</h3>
7673
<div class="broker-content">
@@ -675,31 +672,11 @@ <h3>⚙️ Default ACL Access</h3>
675672
window.aclDataLoaded = true;
676673
} catch (error) {
677674
console.error('Error loading ACL config:', error);
678-
document.getElementById('broker-summary').innerHTML = `
679-
<div class="error">Failed to load ACL configuration: ${error.message}</div>
680-
`;
681675
}
682676
}
683677

684678
function displayBrokerSummary(config) {
685-
const clientCount = (config.clients || []).length;
686-
const roleCount = (config.roles || []).length;
687-
const groupCount = (config.groups || []).length;
688-
689-
document.getElementById('broker-summary').innerHTML = `
690-
<div class="summary-box">
691-
<div class="summary-label">Total Clients</div>
692-
<div class="summary-value">${clientCount}</div>
693-
</div>
694-
<div class="summary-box">
695-
<div class="summary-label">Total Roles</div>
696-
<div class="summary-value">${roleCount}</div>
697-
</div>
698-
<div class="summary-box">
699-
<div class="summary-label">Total Groups</div>
700-
<div class="summary-value">${groupCount}</div>
701-
</div>
702-
`;
679+
// Summary statistics removed from UI
703680
}
704681

705682
function displayClients(clients) {

admin/styles.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ body {
5252
header {
5353
background: var(--ctp-mantle);
5454
color: var(--ctp-text);
55-
padding: 16px;
55+
padding: 8px;
5656
text-align: center;
5757
}
5858

@@ -107,7 +107,7 @@ header h1 {
107107
}
108108

109109
.controls {
110-
padding: 12px 24px;
110+
padding: 8px 8px;
111111
background: var(--ctp-mantle);
112112
border-bottom: 1px solid var(--ctp-surface0);
113113
display: flex;
@@ -169,7 +169,7 @@ label {
169169
}
170170

171171
input, select, button {
172-
padding: 10px 14px;
172+
padding: 8px 14px;
173173
border: 1px solid var(--ctp-surface2);
174174
border-radius: 2px;
175175
font-size: 14px;
@@ -195,7 +195,7 @@ input[type="text"] {
195195
}
196196

197197
select {
198-
min-width: 72px;
198+
min-width: 64px;
199199
}
200200

201201
input[type="text"]:focus, select:focus, textarea:focus {
@@ -264,7 +264,7 @@ button:disabled {
264264
}
265265

266266
.content {
267-
padding: 14px;
267+
padding: 8px;
268268
}
269269

270270
.query-builder {
@@ -593,5 +593,5 @@ td.actions {
593593
}
594594

595595
#publishQos {
596-
width: 80px;
596+
width: 72px;
597597
}

dev/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ IMAGE_NAME="mqtt-sql-admin"
2626
echo "Building $IMAGE_NAME version $VERSION..."
2727

2828
# Build and tag with version
29-
docker build --no-cache -t "$IMAGE_NAME:$VERSION" -t "$IMAGE_NAME:latest" -f "$PROJECT_DIR/docker/Dockerfile" "$PROJECT_DIR"
29+
docker build -t "$IMAGE_NAME:$VERSION" -t "$IMAGE_NAME:latest" -f "$PROJECT_DIR/docker/Dockerfile" "$PROJECT_DIR"
3030

3131
echo ""
3232
echo "Successfully built:"

0 commit comments

Comments
 (0)