mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 05:57:54 +00:00
Move Developer Tools to Settings
This commit is contained in:
parent
cf527e4bc2
commit
50bf69860f
@ -8,7 +8,6 @@ import {
|
|||||||
mdiClose,
|
mdiClose,
|
||||||
mdiCog,
|
mdiCog,
|
||||||
mdiFormatListBulletedType,
|
mdiFormatListBulletedType,
|
||||||
mdiHammer,
|
|
||||||
mdiLightningBolt,
|
mdiLightningBolt,
|
||||||
mdiMenu,
|
mdiMenu,
|
||||||
mdiMenuOpen,
|
mdiMenuOpen,
|
||||||
@ -57,7 +56,7 @@ import "./ha-menu-button";
|
|||||||
import "./ha-svg-icon";
|
import "./ha-svg-icon";
|
||||||
import "./user/ha-user-badge";
|
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;
|
const SUPPORT_SCROLL_IF_NEEDED = "scrollIntoViewIfNeeded" in document.body;
|
||||||
|
|
||||||
@ -66,14 +65,12 @@ const SORT_VALUE_URL_PATHS = {
|
|||||||
map: 2,
|
map: 2,
|
||||||
logbook: 3,
|
logbook: 3,
|
||||||
history: 4,
|
history: 4,
|
||||||
"developer-tools": 9,
|
|
||||||
config: 11,
|
config: 11,
|
||||||
};
|
};
|
||||||
|
|
||||||
const PANEL_ICONS = {
|
const PANEL_ICONS = {
|
||||||
calendar: mdiCalendar,
|
calendar: mdiCalendar,
|
||||||
config: mdiCog,
|
config: mdiCog,
|
||||||
"developer-tools": mdiHammer,
|
|
||||||
energy: mdiLightningBolt,
|
energy: mdiLightningBolt,
|
||||||
history: mdiChartBox,
|
history: mdiChartBox,
|
||||||
logbook: mdiFormatListBulletedType,
|
logbook: mdiFormatListBulletedType,
|
||||||
@ -1033,19 +1030,6 @@ class HaSidebar extends LitElement {
|
|||||||
white-space: nowrap;
|
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 {
|
.tooltip {
|
||||||
display: none;
|
display: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -4,6 +4,7 @@ import {
|
|||||||
mdiCellphoneCog,
|
mdiCellphoneCog,
|
||||||
mdiCog,
|
mdiCog,
|
||||||
mdiDevices,
|
mdiDevices,
|
||||||
|
mdiHammer,
|
||||||
mdiHomeAssistant,
|
mdiHomeAssistant,
|
||||||
mdiInformation,
|
mdiInformation,
|
||||||
mdiLightningBolt,
|
mdiLightningBolt,
|
||||||
@ -116,6 +117,12 @@ export const configSections: { [name: string]: PageNavigation[] } = {
|
|||||||
iconColor: "#4A5963",
|
iconColor: "#4A5963",
|
||||||
core: true,
|
core: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/developer-tools",
|
||||||
|
translationKey: "developer_tools",
|
||||||
|
iconPath: mdiHammer,
|
||||||
|
iconColor: "#64B5F6",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
devices: [
|
devices: [
|
||||||
{
|
{
|
||||||
|
@ -987,6 +987,10 @@
|
|||||||
"settings": {
|
"settings": {
|
||||||
"title": "Settings",
|
"title": "Settings",
|
||||||
"description": "Basic settings, server controls, logs and info"
|
"description": "Basic settings, server controls, logs and info"
|
||||||
|
},
|
||||||
|
"developer_tools": {
|
||||||
|
"title": "Developer Tools",
|
||||||
|
"description": "Try things out quickly"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"common": {
|
"common": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user