Add Tailscale Widget (#1468)

* Added tailscale widget

* finished tailscale widget

* Consolidated date comparison to it's own function

* Modified to follow Airbnb's style guide

* Removed refresh and added translations

* fix some tailscale translation strings

---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
Andre
2023-05-07 00:09:33 -04:00
committed by GitHub
parent 142be300e0
commit acc19ccca1
6 changed files with 104 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
const widget = {
api: "https://api.tailscale.com/api/v2/{endpoint}/{deviceid}",
proxyHandler: credentialedProxyHandler,
mappings: {
device: {
endpoint: "device",
},
},
};
export default widget;