Compare commits

...

3 Commits

Author SHA1 Message Date
Zack
728ea265e2 Colors 2022-01-24 09:44:30 -06:00
Zack Barett
d859b61365 Update src/translations/en.json
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
2022-01-21 17:07:03 -06:00
Zack Barett
50bf69860f Move Developer Tools to Settings 2022-01-21 21:45:40 +00:00
3 changed files with 13 additions and 18 deletions

View File

@@ -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;

View File

@@ -4,6 +4,7 @@ import {
mdiCellphoneCog, mdiCellphoneCog,
mdiCog, mdiCog,
mdiDevices, mdiDevices,
mdiHammer,
mdiHomeAssistant, mdiHomeAssistant,
mdiInformation, mdiInformation,
mdiLightningBolt, mdiLightningBolt,
@@ -72,7 +73,7 @@ export const configSections: { [name: string]: PageNavigation[] } = {
path: "/hassio", path: "/hassio",
translationKey: "supervisor", translationKey: "supervisor",
iconPath: mdiHomeAssistant, iconPath: mdiHomeAssistant,
iconColor: "#4084CD", iconColor: "#F1C447",
component: "hassio", component: "hassio",
}, },
{ {
@@ -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: "#4084CD",
},
], ],
devices: [ devices: [
{ {

View File

@@ -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": "Tools to help create automations and scripts"
} }
}, },
"common": { "common": {