step: removing unused parts
This commit is contained in:
1 parent
91ff390180
commit
84fa3ee3b4
12 files changed
+138
-523
No files matched your search
+20
-134
@@ -23,20 +23,20 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>Sound</h2>
|
||||
<div class="status-frame">
|
||||
<div class="status-item" :class="{ active: soundStatus === 1 }">
|
||||
<span class="status-label">Sound Active:</span>
|
||||
<span class="status-value">{{ soundStatus }}</span>
|
||||
</div>
|
||||
|
||||
<h2>Sound</h2>
|
||||
<div class="status-frame">
|
||||
<div class="status-item" :class="{ active: soundStatus === 1 }">
|
||||
<span class="status-label">Sound Active:</span>
|
||||
<span class="status-value">{{ soundStatus }}</span>
|
||||
</div>
|
||||
<div class="status-frame">
|
||||
<div class="control-buttons">
|
||||
<button @click="handleMute" class="btn-lock">Mute</button>
|
||||
<button @click="handleUnMute" class="btn-unlock">Un-Mute</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="status-frame">
|
||||
<div class="control-buttons">
|
||||
<button @click="handleMute" class="btn-primary">Mute</button>
|
||||
<button @click="handleUnMute" class="btn-secondary">Un-Mute</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>Sword Status</h2>
|
||||
<div class="status-container">
|
||||
@@ -118,15 +118,15 @@ function handlePlayX(sound: number): void {
|
||||
onMounted(() => {
|
||||
mqttClient = enterMaintananceMode(
|
||||
(sound, endSens, startSens, pullSens, lock, vol, delay) => {
|
||||
endSensStatus.value = endSens
|
||||
startSensStatus.value = startSens
|
||||
pullSensStatus.value = pullSens
|
||||
lockStatus.value = lock
|
||||
soundStatus.value = sound
|
||||
volume.value = vol
|
||||
promoDelay.value = delay
|
||||
endSensStatus.value = endSens
|
||||
startSensStatus.value = startSens
|
||||
pullSensStatus.value = pullSens
|
||||
lockStatus.value = lock
|
||||
soundStatus.value = sound
|
||||
volume.value = vol
|
||||
promoDelay.value = delay
|
||||
},
|
||||
(ver) => {})
|
||||
(ver) => { })
|
||||
window.addEventListener('beforeunload', cleanup)
|
||||
if (mqttClient) {
|
||||
publishCmd(mqttClient, `promoDelay:${promoDelay.value}`)
|
||||
@@ -141,119 +141,5 @@ onUnmounted(() => {
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.status-container {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.status-frame {
|
||||
border: 2px solid #d1d5db;
|
||||
border-radius: 8px;
|
||||
padding: 16px;
|
||||
background: #f9fafb;
|
||||
margin-bottom: 16px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.setup-frame {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.slider-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.slider-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
}
|
||||
|
||||
.slider-label {
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: #6b7280;
|
||||
}
|
||||
|
||||
.slider-value {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #111827;
|
||||
}
|
||||
|
||||
.slider-input {
|
||||
width: 100%;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.status-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 12px;
|
||||
border-radius: 6px;
|
||||
background: #e5e7eb;
|
||||
color: #6b7280;
|
||||
transition: background 0.3s, color 0.3s;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.status-item.active {
|
||||
background: #10b981;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.status-label {
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.status-value {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.control-buttons {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.btn-lock,
|
||||
.btn-unlock {
|
||||
padding: 10px 20px;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s, color 0.2s;
|
||||
}
|
||||
|
||||
.btn-lock {
|
||||
background: #111827;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.btn-lock:hover {
|
||||
background: #1f2937;
|
||||
}
|
||||
|
||||
.btn-unlock {
|
||||
background: #e5e7eb;
|
||||
color: #111827;
|
||||
border: 1px solid #d1d5db;
|
||||
}
|
||||
|
||||
.btn-unlock:hover {
|
||||
background: #d1d5db;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user