Finished Basic Dashboard components into router

This commit is contained in:
Patrick Hatsune 2024-08-23 19:49:25 -07:00
parent 41bab5bd23
commit b00b595411
Signed by: keyemail
GPG key ID: 6FD1A0FDB0D914C2
10 changed files with 120 additions and 33 deletions

View file

@ -10,32 +10,35 @@
<template> <template>
<Navbar/> <Navbar/>
<div id="basicDashboard">
<div id="leftNavbar"> <div id="leftNavbar">
<h2>Basic Dashboard</h2> <h2>Basic Dashboard</h2>
<ul> <ul>
<RouterLink to="basic"> <RouterLink to="/basic">
<li>Overview</li> <li>Overview</li>
</RouterLink> </RouterLink>
<RouterLink to="basic/internet"> <RouterLink to="/basic/internet">
<li>Internet Setup</li> <li>Internet Setup</li>
</RouterLink> </RouterLink>
<RouterLink to="basic/wireless"> <RouterLink to="/basic/wireless">
<li>Wireless Settings</li> <li>Wireless Settings</li>
</RouterLink> </RouterLink>
<RouterLink to="basic/devices"> <RouterLink to="/basic/devices">
<li>Device List</li> <li>Device List</li>
</RouterLink> </RouterLink>
<RouterLink to="basic/QoS"> <RouterLink to="/basic/QoS">
<li>QoS</li> <li>QoS</li>
</RouterLink> </RouterLink>
<RouterLink to="basic/fileshare"> <RouterLink to="/basic/fileshare">
<li>File Sharing</li> <li>File Sharing</li>
</RouterLink> </RouterLink>
<RouterLink to="basic/guestnetwork"> <RouterLink to="/basic/guestnetwork">
<li>Guest Network</li> <li>Guest Network</li>
</RouterLink> </RouterLink>
</ul> </ul>
</div> </div>
<RouterView id="basicDashboardComponents"/>
</div>
</template> </template>
<style src="../styles/basicDashboard.css" scoped></style> <style src="../styles/basicDashboard.css" scoped></style>

View file

@ -0,0 +1,5 @@
<template>
<div>
<h1>Device List</h1>
</div>
</template>

View file

@ -0,0 +1,5 @@
<template>
<div>
<h1>File Share</h1>
</div>
</template>

View file

@ -0,0 +1,5 @@
<template>
<div>
<h1>Guest Network</h1>
</div>
</template>

View file

@ -0,0 +1,5 @@
<template>
<div>
<h1>Internet Setup</h1>
</div>
</template>

View file

@ -0,0 +1,5 @@
<template>
<div>
<h1>Overview</h1>
</div>
</template>

View file

@ -0,0 +1,5 @@
<template>
<div>
<h1>QoS</h1>
</div>
</template>

View file

@ -0,0 +1,5 @@
<template>
<div>
<h1>Wireless Settings</h1>
</div>
</template>

View file

@ -4,26 +4,63 @@ import BasicDashboard from "../pages/BasicDashboard.vue";
import LoginPage from "../pages/LoginPage.vue"; import LoginPage from "../pages/LoginPage.vue";
import RegisterPage from "../pages/RegisterPage.vue"; import RegisterPage from "../pages/RegisterPage.vue";
import BasicOverview from "../pages/basicDashboard/Overview.vue"
import BasicInternetSetup from "../pages/basicDashboard/InternetSetup.vue"
import BasicWireless from "../pages/basicDashboard/Wireless.vue"
import BasicDevicesList from "../pages/basicDashboard/DeviceList.vue"
import BasicQoS from "../pages/basicDashboard/QoS.vue"
import BasicFileShare from "../pages/basicDashboard/FileShare.vue"
import BasicGuestNetwork from "../pages/basicDashboard/GuestNetwork.vue"
const routes = [ const routes = [
{ {
path: '/', path: '/',
component: BasicDashboard component: BasicDashboard,
}, },
{ {
path: '/advance', path: '/advance',
component: AdvanceDashboard component: AdvanceDashboard,
}, },
{ {
path: '/basic', path: '/basic',
component: BasicDashboard component: BasicDashboard,
children: [
{
path: '',
component: BasicOverview,
},
{
path: 'internet',
component: BasicInternetSetup,
},
{
path: 'wireless',
component: BasicWireless,
},
{
path: 'devices',
component: BasicDevicesList,
},
{
path: 'QoS',
component: BasicQoS,
},
{
path: 'fileshare',
component: BasicFileShare,
}, {
path: 'guestnetwork',
component: BasicGuestNetwork,
}
]
}, },
{ {
path: '/login', path: '/login',
component: LoginPage component: LoginPage,
}, },
{ {
path: '/register', path: '/register',
component: RegisterPage component: RegisterPage,
}, },
]; ];

View file

@ -1,12 +1,17 @@
#basicDashboard {
display: flex;
margin-top: 20px;
gap: 15px;
flex-grow: 1;
}
#leftNavbar { #leftNavbar {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 15px; gap: 15px;
margin-top: 20px;
background-color: var(--dark-bg-alt-color); background-color: var(--dark-bg-alt-color);
width: 250px; width: 250px;
height: 100%; min-height: 100%;
flex-grow: 1;
padding: var(--alt-padding); padding: var(--alt-padding);
border-radius: var(--border-radius); border-radius: var(--border-radius);
@ -33,3 +38,10 @@
background-color: var(--dark-highlight-color); background-color: var(--dark-highlight-color);
} }
} }
#basicDashboardComponents {
flex-grow: 1;
padding: var(--alt-padding);
border-radius: var(--border-radius);
background-color: var(--dark-bg-alt-color);
}