-
Notifications
You must be signed in to change notification settings - Fork 0
/
cf_worker.js
32 lines (30 loc) · 917 Bytes
/
cf_worker.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
export default {
async fetch(request) {
const data = {
"status": "OK",
"admin": {
defaultPanel: "\"lovelace\"",
dockedSidebar: "\"docked\"",
enableShortcuts: 'true',
hiddenTabs: '{}',
selectedLanguage: 'null',
selectedTheme: '{"dark":true}',
sidebarHiddenPanels: '["logbook","energy","map","history","alarmo","media-browser"]',
sidebarPanelOrder:
'["lovelace","dwains-dashboard","wall-dashboard","a0d7b954_vscode","e4641267_portainer","a0d7b954_ssh","hacs"]',
suspendWhenHidden: 'true',
vibrate: 'true',
},
"user2": {
defaultPanel: "\"lovelace\"",
dockedSidebar: "\"always_hidden\"",
}
};
const json = JSON.stringify(data, null, 2);
return new Response(json, {
headers: {
"content-type": "application/json;charset=UTF-8",
},
});
},
};