Move Developer Tools to Settings

This commit is contained in:
Zack Barett 2022-01-21 21:45:40 +00:00
parent cf527e4bc2
commit 50bf69860f
3 changed files with 12 additions and 17 deletions

View File

@ -8,7 +8,6 @@ import {
mdiClose,
mdiCog,
mdiFormatListBulletedType,
mdiHammer,
mdiLightningBolt,
mdiMenu,
mdiMenuOpen,
@ -57,7 +56,7 @@ import "./ha-menu-button";
import "./ha-svg-icon";
import "./user/ha-user-badge";
const SHOW_AFTER_SPACER = ["config", "developer-tools"];
const SHOW_AFTER_SPACER = ["config"];
const SUPPORT_SCROLL_IF_NEEDED = "scrollIntoViewIfNeeded" in document.body;
@ -66,14 +65,12 @@ const SORT_VALUE_URL_PATHS = {
map: 2,
logbook: 3,
history: 4,
"developer-tools": 9,
config: 11,
};
const PANEL_ICONS = {
calendar: mdiCalendar,
config: mdiCog,
"developer-tools": mdiHammer,
energy: mdiLightningBolt,
history: mdiChartBox,
logbook: mdiFormatListBulletedType,
@ -1033,19 +1030,6 @@ class HaSidebar extends LitElement {
white-space: nowrap;
}
.dev-tools {
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 0 8px;
width: 256px;
box-sizing: border-box;
}
.dev-tools a {
color: var(--sidebar-icon-color);
}
.tooltip {
display: none;
position: absolute;

View File

@ -4,6 +4,7 @@ import {
mdiCellphoneCog,
mdiCog,
mdiDevices,
mdiHammer,
mdiHomeAssistant,
mdiInformation,
mdiLightningBolt,
@ -116,6 +117,12 @@ export const configSections: { [name: string]: PageNavigation[] } = {
iconColor: "#4A5963",
core: true,
},
{
path: "/developer-tools",
translationKey: "developer_tools",
iconPath: mdiHammer,
iconColor: "#64B5F6",
},
],
devices: [
{

View File

@ -987,6 +987,10 @@
"settings": {
"title": "Settings",
"description": "Basic settings, server controls, logs and info"
},
"developer_tools": {
"title": "Developer Tools",
"description": "Try things out quickly"
}
},
"common": {