|
|
|
|
@ -160,12 +160,19 @@ onMounted(() => {
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
/* Define CSS Variables locally for this dashboard */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@keyframes scanDown {
|
|
|
|
|
0% { transform: translateY(-100%); }
|
|
|
|
|
|
|
|
|
|
100% { transform: translateY(260%); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dashboard-container {
|
|
|
|
|
--bg: #050816;
|
|
|
|
|
--bg-deep: #020617;
|
|
|
|
|
--card-bg: rgba(15, 23, 42, 0.86);
|
|
|
|
|
--border: rgba(56, 189, 248, 0.35);
|
|
|
|
|
--card-bg: rgb(15 23 42 / 86%);
|
|
|
|
|
--border: rgb(56 189 248 / 35%);
|
|
|
|
|
--text: #e5f0ff;
|
|
|
|
|
--muted: #94a3b8;
|
|
|
|
|
--primary: #38bdf8;
|
|
|
|
|
@ -179,37 +186,37 @@ onMounted(() => {
|
|
|
|
|
--header-h: 86px;
|
|
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
|
display: flex;
|
|
|
|
|
width: 100%;
|
|
|
|
|
min-height: 100vh;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft Yahei", Arial, sans-serif;
|
|
|
|
|
color: var(--text);
|
|
|
|
|
background-color: var(--bg-deep);
|
|
|
|
|
background-image:
|
|
|
|
|
radial-gradient(circle at 20% 0, rgba(56, 189, 248, 0.26) 0, transparent 48%),
|
|
|
|
|
radial-gradient(circle at 80% 110%, rgba(129, 140, 248, 0.22) 0, transparent 52%),
|
|
|
|
|
radial-gradient(circle at 20% 0, rgb(56 189 248 / 26%) 0, transparent 48%),
|
|
|
|
|
radial-gradient(circle at 80% 110%, rgb(129 140 248 / 22%) 0, transparent 52%),
|
|
|
|
|
linear-gradient(135deg, #020617 0%, #020617 45%, #020617 100%);
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.bg-grid {
|
|
|
|
|
position: absolute;
|
|
|
|
|
inset: 0;
|
|
|
|
|
z-index: 0;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
background-image: linear-gradient(rgba(15,23,42,0.8) 1px, transparent 1px),
|
|
|
|
|
linear-gradient(90deg, rgba(15,23,42,0.8) 1px, transparent 1px);
|
|
|
|
|
background-image: linear-gradient(rgb(15 23 42 / 80%) 1px, transparent 1px),
|
|
|
|
|
linear-gradient(90deg, rgb(15 23 42 / 80%) 1px, transparent 1px);
|
|
|
|
|
background-size: 70px 70px;
|
|
|
|
|
opacity: 0.55;
|
|
|
|
|
z-index: 0;
|
|
|
|
|
inset: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.bg-scan {
|
|
|
|
|
position: absolute;
|
|
|
|
|
inset: 0;
|
|
|
|
|
z-index: 0;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
z-index: 0;
|
|
|
|
|
inset: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.scan-line {
|
|
|
|
|
@ -218,37 +225,32 @@ onMounted(() => {
|
|
|
|
|
left: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 40%;
|
|
|
|
|
background: radial-gradient(circle at 50% 0, rgba(56, 189, 248, 0.38), transparent 70%);
|
|
|
|
|
background: radial-gradient(circle at 50% 0, rgb(56 189 248 / 38%), transparent 70%);
|
|
|
|
|
opacity: 0.5;
|
|
|
|
|
filter: blur(32px);
|
|
|
|
|
animation: scanDown 16s linear infinite;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes scanDown {
|
|
|
|
|
0% { transform: translateY(-100%); }
|
|
|
|
|
100% { transform: translateY(260%); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
main {
|
|
|
|
|
height: calc(100vh - var(--header-h));
|
|
|
|
|
padding: var(--gap);
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
position: relative;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
display: flex;
|
|
|
|
|
height: calc(100vh - var(--header-h));
|
|
|
|
|
min-height: 0;
|
|
|
|
|
padding: var(--gap);
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: var(--gap);
|
|
|
|
|
min-height: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.layout {
|
|
|
|
|
flex: 1;
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: var(--gap);
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
min-height: 0;
|
|
|
|
|
flex: 1;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: var(--gap);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.main-row {
|
|
|
|
|
@ -258,17 +260,17 @@ main {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.col {
|
|
|
|
|
display: flex;
|
|
|
|
|
height: 100%;
|
|
|
|
|
min-height: 0;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: var(--gap);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.col-item {
|
|
|
|
|
flex: 1;
|
|
|
|
|
min-height: 0;
|
|
|
|
|
display: flex;
|
|
|
|
|
min-height: 0;
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.col-item :deep(> *) {
|
|
|
|
|
@ -277,28 +279,28 @@ main {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.center-shell {
|
|
|
|
|
flex: 1;
|
|
|
|
|
min-height: 0;
|
|
|
|
|
position: relative; /* 用于定位内部绝对定位的设备卡片 */
|
|
|
|
|
display: flex;
|
|
|
|
|
min-height: 0;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
background: rgb(2 6 23 / 18%);
|
|
|
|
|
border: 1px solid rgb(30 64 175 / 55%);
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
flex: 1;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
border: 1px solid rgba(30,64,175,0.55);
|
|
|
|
|
background: rgba(2,6,23,0.18);
|
|
|
|
|
padding: 10px;
|
|
|
|
|
position: relative; /* 用于定位内部绝对定位的设备卡片 */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.device-card {
|
|
|
|
|
position: absolute;
|
|
|
|
|
width: 18%; /* 约占宽度的1/5,留出间隔 */
|
|
|
|
|
min-width: 120px;
|
|
|
|
|
background: rgba(15, 23, 42, 0.85);
|
|
|
|
|
border: 1px solid rgba(56, 189, 248, 0.4);
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
padding: 8px;
|
|
|
|
|
color: #fff;
|
|
|
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
|
|
|
|
|
background: rgb(15 23 42 / 85%);
|
|
|
|
|
border: 1px solid rgb(56 189 248 / 40%);
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
box-shadow: 0 0 10px rgb(0 0 0 / 50%);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.top-card {
|
|
|
|
|
@ -311,19 +313,19 @@ main {
|
|
|
|
|
|
|
|
|
|
.device-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
padding-bottom: 4px;
|
|
|
|
|
margin-bottom: 6px;
|
|
|
|
|
border-bottom: 1px solid rgb(56 189 248 / 30%);
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
margin-bottom: 6px;
|
|
|
|
|
border-bottom: 1px solid rgba(56, 189, 248, 0.3);
|
|
|
|
|
padding-bottom: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.header-left {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
margin-right: 8px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
align-items: center;
|
|
|
|
|
flex: 1;
|
|
|
|
|
margin-right: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.header-right {
|
|
|
|
|
@ -333,20 +335,20 @@ main {
|
|
|
|
|
.device-dot {
|
|
|
|
|
width: 0;
|
|
|
|
|
height: 0;
|
|
|
|
|
margin-right: 6px;
|
|
|
|
|
border-color: transparent transparent transparent #38bdf8;
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-width: 4px 0 4px 6px;
|
|
|
|
|
border-color: transparent transparent transparent #38bdf8;
|
|
|
|
|
margin-right: 6px;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.device-name {
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #e5f0ff;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.device-id {
|
|
|
|
|
@ -355,10 +357,10 @@ main {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.device-body {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
height: 100px; /* 固定高度,内容不足留白,内容多则滚动 */
|
|
|
|
|
overflow-y: auto; /* 启用垂直滚动 */
|
|
|
|
|
padding-right: 4px; /* 防止滚动条遮挡内容 */
|
|
|
|
|
overflow-y: auto; /* 启用垂直滚动 */
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 滚动条样式 */
|
|
|
|
|
@ -367,7 +369,7 @@ main {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.device-body::-webkit-scrollbar-thumb {
|
|
|
|
|
background: rgba(56, 189, 248, 0.3);
|
|
|
|
|
background: rgb(56 189 248 / 30%);
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -383,21 +385,21 @@ main {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.device-row .label {
|
|
|
|
|
color: #94a3b8;
|
|
|
|
|
max-width: 60%;
|
|
|
|
|
margin-right: 8px;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
color: #94a3b8;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
max-width: 60%;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.device-row .value {
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
color: #cbd5e1;
|
|
|
|
|
text-align: right;
|
|
|
|
|
flex: 1;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.dashboard-center-image {
|
|
|
|
|
@ -406,4 +408,6 @@ main {
|
|
|
|
|
object-fit: contain;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Define CSS Variables locally for this dashboard */
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
|