Added database, made minor fixes
This commit is contained in:
parent
b5ecc91b32
commit
1cd033204a
|
@ -10,6 +10,7 @@
|
|||
import guestNetworkIcon from '@/assets/overviewSvgs/GuestNetwork.svg'
|
||||
|
||||
interface statusColorsType {
|
||||
[key: string]: string;
|
||||
goodStatus: string;
|
||||
warningStatus: string;
|
||||
badStatus: string;
|
||||
|
@ -41,14 +42,14 @@
|
|||
name: "Internet",
|
||||
link: "/basic/internet",
|
||||
icon: internetIcon,
|
||||
statusColor: statusColors.goodStatus,
|
||||
statusMessage: `Online: ${response.data.internetMode}`,
|
||||
statusColor: statusColors[response.data.internetStatus],
|
||||
statusMessage: `${response.data.internetMode} ${response.data.internetPort}`,
|
||||
},
|
||||
{
|
||||
name: "Wifi",
|
||||
link: "/basic/wireless",
|
||||
icon: wifiIcon,
|
||||
statusColor: statusColors.warningStatus,
|
||||
statusColor: statusColors[response.data.wifiModeStatus],
|
||||
statusMessage: `5Ghz: ${response.data.wifiMode5Ghz} | 2.4Ghz: ${response.data.wifiMode2Ghz}`,
|
||||
},
|
||||
{
|
||||
|
@ -58,26 +59,26 @@
|
|||
statusColor: null,
|
||||
statusMessage: `Online: ${response.data.devices}`,
|
||||
},
|
||||
{
|
||||
name: "File Sharing",
|
||||
link: "/basic/fileshare",
|
||||
icon: fileSharingIcon,
|
||||
statusColor: statusColors.badStatus,
|
||||
statusMessage: `${response.data.fileShare}`,
|
||||
},
|
||||
{
|
||||
name: "QoS",
|
||||
link: "/basic/qos",
|
||||
icon: qosIcon,
|
||||
statusColor: statusColors.goodStatus,
|
||||
statusMessage: `${response.data.qos}`,
|
||||
statusColor: statusColors[response.data.qosStatus],
|
||||
statusMessage: `${response.data.qosMode}`,
|
||||
},
|
||||
{
|
||||
name: "File Sharing",
|
||||
link: "/basic/fileshare",
|
||||
icon: fileSharingIcon,
|
||||
statusColor: statusColors[response.data.fileShareStatus],
|
||||
statusMessage: `${response.data.fileShareMode}`,
|
||||
},
|
||||
{
|
||||
name: "Guest Network",
|
||||
link: "/basic/guestnetwork",
|
||||
icon: guestNetworkIcon,
|
||||
statusColor: statusColors.badStatus,
|
||||
statusMessage: `${response.data.guestNetwork}`,
|
||||
statusColor: statusColors[response.data.guestNetworkStatus],
|
||||
statusMessage: `${response.data.guestNetworkMode}`,
|
||||
}
|
||||
];
|
||||
} catch (error) {
|
||||
|
|
|
@ -33,6 +33,7 @@ body {
|
|||
font-family: Noto-Sans, sans-serif;
|
||||
min-height: 100vh;
|
||||
padding: var(--padding);
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
a {
|
||||
|
|
Loading…
Reference in a new issue