uptime-kuma/src
SGprooo 1d9a28e9ab
feat: Tailscale ping monitor (#3178)
* Add boilerplate for tailscale ping

* tailscale initial commit draft

* Refactor TailscalePing & better error handling

Split check function into two methods and added async/await syntax for readability/modularity
Switched to promise-based error handling (takes into account different types of error such as "Execution error", "Error in output", "no matching peer", and "is local Tailscale IP") and throws them as JavaScript errors.

* Minor update

* minor update (again)

* Update server/monitor-types/tailscale-ping.js

Co-authored-by: Frank Elsinga <frank@elsinga.de>

* Update server/monitor-types/tailscale-ping.js

Co-authored-by: Frank Elsinga <frank@elsinga.de>

* Update server/monitor-types/tailscale-ping.js

Co-authored-by: Frank Elsinga <frank@elsinga.de>

* Update server/monitor-types/tailscale-ping.js

Co-authored-by: Frank Elsinga <frank@elsinga.de>

* timeout revision

* JSDoc

* Removed long explainers

* eslint tailscale-ping.js --fix

* reran eslint

* Fix: Use hostname rather than url

* Fixed NaN on monitor interval

now interval value is correctly passed to runTailscalePing

* Add warning message

---------

Co-authored-by: Louis Lam <louislam@users.noreply.github.com>
Co-authored-by: Frank Elsinga <frank@elsinga.de>
2023-07-19 20:58:21 +08:00
..
assets Fix: Update monitor-list height (#3444) 2023-07-18 14:39:05 +08:00
components Mattermost: update dead docs link (#3450) 2023-07-19 18:25:58 +08:00
lang feat: Tailscale ping monitor (#3178) 2023-07-19 20:58:21 +08:00
layouts Add padding to bottom-nav 2023-03-10 17:42:06 +01:00
mixins Add support for Codespaces (#3432) 2023-07-17 14:54:40 +08:00
modules/dayjs Fix lint 2022-12-15 13:57:28 +08:00
pages feat: Tailscale ping monitor (#3178) 2023-07-19 20:58:21 +08:00
App.vue Enforce semicolon, fix format globally 2022-04-14 01:20:54 +08:00
i18n.js Update i18n.js (#2927) 2023-03-15 14:57:47 +08:00
icon.js Change Icon, Add missing var 2023-03-10 22:04:47 +07:00
main.js Fix #2318 2022-12-15 13:39:48 +08:00
router.js Drop unused code 2023-07-03 14:50:30 +08:00
util-frontend.js Fix codespace url (#3436) 2023-07-17 20:14:05 +08:00
util.js Added JSDoc for src/ 2023-01-05 22:55:51 +00:00
util.ts move hostname regex pattern function to frontend-utils 2023-01-06 11:00:20 +01:00