From afc3e33a45686b701934123469dc85f4884c932b Mon Sep 17 00:00:00 2001 From: Patrick Hatsune Date: Mon, 30 Sep 2024 03:57:37 -0700 Subject: [PATCH] Added device list, optimized css --- src/assets/deviceSvgs/Ethernet.svg | 11 ++++ src/assets/deviceSvgs/Other.svg | 12 ++++ src/assets/deviceSvgs/Wifi.svg | 10 ++++ src/components/dashboard/DeviceList.vue | 41 +++++++++++++ .../Template.vue} | 6 +- src/data/DeviceList.ts | 58 +++++++++++++++++++ .../{basicDashboard => }/InternetSetup.ts | 0 src/data/{basicDashboard => }/Wireless.ts | 0 src/pages/basicDashboard/DeviceList.vue | 27 ++++++++- src/pages/basicDashboard/InternetSetup.vue | 4 +- src/pages/basicDashboard/Wireless.vue | 4 +- src/styles/basicDashboard.css | 35 +++++++++++ 12 files changed, 198 insertions(+), 10 deletions(-) create mode 100755 src/assets/deviceSvgs/Ethernet.svg create mode 100755 src/assets/deviceSvgs/Other.svg create mode 100755 src/assets/deviceSvgs/Wifi.svg create mode 100755 src/components/dashboard/DeviceList.vue rename src/components/{basicDashboard/BasicComponents.vue => dashboard/Template.vue} (93%) create mode 100755 src/data/DeviceList.ts rename src/data/{basicDashboard => }/InternetSetup.ts (100%) rename src/data/{basicDashboard => }/Wireless.ts (100%) diff --git a/src/assets/deviceSvgs/Ethernet.svg b/src/assets/deviceSvgs/Ethernet.svg new file mode 100755 index 0000000..3953c33 --- /dev/null +++ b/src/assets/deviceSvgs/Ethernet.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/assets/deviceSvgs/Other.svg b/src/assets/deviceSvgs/Other.svg new file mode 100755 index 0000000..b6d2573 --- /dev/null +++ b/src/assets/deviceSvgs/Other.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/src/assets/deviceSvgs/Wifi.svg b/src/assets/deviceSvgs/Wifi.svg new file mode 100755 index 0000000..98bd155 --- /dev/null +++ b/src/assets/deviceSvgs/Wifi.svg @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/src/components/dashboard/DeviceList.vue b/src/components/dashboard/DeviceList.vue new file mode 100755 index 0000000..91fc08a --- /dev/null +++ b/src/components/dashboard/DeviceList.vue @@ -0,0 +1,41 @@ + + + + + \ No newline at end of file diff --git a/src/components/basicDashboard/BasicComponents.vue b/src/components/dashboard/Template.vue similarity index 93% rename from src/components/basicDashboard/BasicComponents.vue rename to src/components/dashboard/Template.vue index 4a42a58..bae94cb 100644 --- a/src/components/basicDashboard/BasicComponents.vue +++ b/src/components/dashboard/Template.vue @@ -1,5 +1,5 @@ diff --git a/src/data/DeviceList.ts b/src/data/DeviceList.ts new file mode 100755 index 0000000..c3c70d5 --- /dev/null +++ b/src/data/DeviceList.ts @@ -0,0 +1,58 @@ +import ethernet from '@/assets/deviceSvgs/Ethernet.svg'; +import wifi from '@/assets/deviceSvgs/Wifi.svg' +import other from '@/assets/deviceSvgs/Other.svg' + +const deviceList = [ + { + title: "Ethernet", + id: "wiredDevices", + icon: ethernet, + devices: [ + { + connection: "Wired", + name: "My PC", + ip: "10.0.0.2", + mac: "e6:f3:21:09:25:27" + }, + ], + }, + { + title: "Wireless (5 Ghz)", + id: "wireless5Devices", + icon: wifi, + devices: [ + { + connection: "Wireless5", + name: "My Phone", + ip: "10.0.0.3", + mac: "d9:fb:cd:50:90:9c" + }, + { + connection: "Wireless5", + name: "My Printer", + ip: "10.0.0.4", + mac: "d1:29:1a:1c:95:b1" + } + ], + }, + { + title: "Wireless (2.4 Ghz)", + id: "wireless5Devices", + icon: wifi, + devices: [ + { + connection: "Wireless2", + name: "My Smart TV", + ip: "10.0.0.5", + mac: "15:92:9b:a8:db:2b" + }, + ], + }, + { + title: "Unknown", + id: "unkownDevices", + icon: other, + } +]; + +export default deviceList; \ No newline at end of file diff --git a/src/data/basicDashboard/InternetSetup.ts b/src/data/InternetSetup.ts similarity index 100% rename from src/data/basicDashboard/InternetSetup.ts rename to src/data/InternetSetup.ts diff --git a/src/data/basicDashboard/Wireless.ts b/src/data/Wireless.ts similarity index 100% rename from src/data/basicDashboard/Wireless.ts rename to src/data/Wireless.ts diff --git a/src/pages/basicDashboard/DeviceList.vue b/src/pages/basicDashboard/DeviceList.vue index 772ac82..dd414fd 100644 --- a/src/pages/basicDashboard/DeviceList.vue +++ b/src/pages/basicDashboard/DeviceList.vue @@ -1,7 +1,28 @@ + + \ No newline at end of file diff --git a/src/pages/basicDashboard/InternetSetup.vue b/src/pages/basicDashboard/InternetSetup.vue index 9e9ca3d..c2c900a 100644 --- a/src/pages/basicDashboard/InternetSetup.vue +++ b/src/pages/basicDashboard/InternetSetup.vue @@ -1,7 +1,7 @@