Skip to content

Commit

Permalink
config json example update
Browse files Browse the repository at this point in the history
  • Loading branch information
galloween committed Nov 30, 2021
1 parent c6ce69f commit 0efd830
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 24 deletions.
2 changes: 1 addition & 1 deletion dist/custom-sidebar-v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@
}
resp.json().then(
(config) => {
if (config.id.includes('example_json')) {
if (config.id && config.id.includes('example_json')) {
log(
'log',
'You seem to be using example configuration.\nMake sure you have valid config in /config/www/sidebar-order.json file.'
Expand Down
43 changes: 20 additions & 23 deletions sidebar-order.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,94 +6,91 @@
"href": "https://mrdoob.com/projects/chromeexperiments/google-gravity/",
"icon": "mdi:earth",
"target": "_blank",
"order": 1
"order": 0
},
{
"item": "overview",
"order": 2
"order": 1
},
{
"item": "supervisor",
"order": 3
"order": 2
},
{
"new_item": true,
"item": "Integrations",
"href": "/config/integrations",
"icon": "mdi:puzzle",
"order": 4
"order": 3
},
{
"new_item": true,
"item": "Entities",
"href": "/config/entities",
"icon": "mdi:hexagon-multiple",
"order": 5
"order": 4
},
{
"new_item": true,
"item": "Automations",
"href": "/config/automation/dashboard",
"icon": "mdi:robot",
"order": 6
"order": 5
},
{
"item": "file editor",
"order": 7
"order": 6
},
{
"item": "terminal",
"order": 8
"order": 7
},
{
"item": "hacs",
"order": 9
"order": 8
},
{
"item": "configuration",
"bottom": true,
"order": 10
"order": 9
},
{
"new_item": true,
"item": "Server Controls",
"href": "/config/server_control",
"icon": "mdi:server",
"bottom": true,
"order": 11
},
{
"item": "history",
"bottom": true,
"order": 12
"order": 10
},
{
"item": "logbook",
"bottom": true,
"order": 13
"order": 11
},
{
"new_item": true,
"item": "Logs",
"bottom": true,
"href": "/config/logs",
"icon": "mdi:math-log",
"order": 14
"order": 12
},
{
"item": "developer tools",
"bottom": true,
"order": 15
"order": 13
},
{
"item": "history",
"hide": true
},
{
"item": "snapshots",
"bottom": true,
"order": 16
"hide": true
},
{
"item": "backups",
"bottom": true,
"order": 17
"hide": true
},
{
"item": "map",
Expand Down

0 comments on commit 0efd830

Please sign in to comment.