Remove gethomepage (dashboard)
This commit is contained in:
parent
e3d82f6a66
commit
e83d134ec7
4 changed files with 0 additions and 212 deletions
filter_plugins
|
@ -1,24 +0,0 @@
|
|||
class FilterModule(object):
|
||||
def filters(self):
|
||||
return {
|
||||
'tailscale_to_dashboard': self.tailscale_to_dashboard,
|
||||
}
|
||||
|
||||
def tailscale_to_dashboard(self, tailscale):
|
||||
ts_key = tailscale["key"]
|
||||
machines = tailscale["machines"]
|
||||
|
||||
result = []
|
||||
for (key, props) in machines.items():
|
||||
result.append({
|
||||
key: {
|
||||
"href": "https://login.tailscale.com/admin/machines/" + props["ip"],
|
||||
"widget": {
|
||||
"type": "tailscale",
|
||||
"deviceid": props["id"],
|
||||
"key": ts_key
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
return result
|
Reference in a new issue