ui: rename device group to devices

This commit is contained in:
Anton Shubin 2024-01-30 20:36:49 +08:00
parent 128c28ff7d
commit 08ff0f1909
2 changed files with 15 additions and 7 deletions

View File

@ -23,7 +23,7 @@
const navItems: NavItem[] = [
{ name: 'Dashboard', href: '/', Icon: IconHome },
{ name: 'Map and Zones', href: '/map', Icon: IconMap },
{ name: 'Device Groups', href: '/device-groups', Icon: IconCpuChip },
{ name: 'Devices', href: '/devices', Icon: IconCpuChip },
{ name: 'Fault', href: '/fault', Icon: IconExclamationTriangle },
{ name: 'Notifications', href: '/notifications', Icon: IconBell },
{ name: 'Admin', href: '/admin', Icon: IconUser },

View File

@ -4,8 +4,16 @@
<div class="sm:col-span-4 flex gap-2 items-center">
<label for="website" class="block text-sm font-medium leading-6 text-gray-900">Zone ID:</label>
<div class="flex rounded-md shadow-sm ring-1 ring-inset ring-gray-300 focus-within:ring-2 focus-within:ring-inset focus-within:ring-indigo-600 sm:max-w-md">
<input type="text" name="website" id="website" class="block flex-1 border-0 bg-transparent py-1.5 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm sm:leading-6" placeholder="zone-001">
<div
class="flex rounded-md shadow-sm ring-1 ring-inset ring-gray-300 focus-within:ring-2 focus-within:ring-inset focus-within:ring-indigo-600 sm:max-w-md"
>
<input
type="text"
name="website"
id="website"
class="block flex-1 border-0 bg-transparent py-1.5 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm sm:leading-6"
placeholder="zone-001"
/>
</div>
<button
class="inline-flex items-center justify-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
@ -15,16 +23,16 @@
</div>
<Table
addLink="/device-groups/1/add"
deleteLink="/device-groups/1/delete"
addLink="/devices/1/add"
deleteLink="/devices/1/delete"
description="List of devices in group #001"
title="Devices in group #001"
/>
<div class="mt-10">
<Table
addLink="/device-groups/1/add"
deleteLink="/device-groups/1/delete"
addLink="/devices/1/add"
deleteLink="/devices/1/delete"
description="When to turn on/off devices"
title="Schedules"
/>