Compare commits

..

480 Commits

Author SHA1 Message Date
Maxi Quoß 14b9e031d5 update deps, migrate pocketbase to ganigeorgiev.com/pocketbase 2026-11-06 21:12:18 +01:00
seriousm4x 523b7f9846 Merge pull request #1777 from nanomassai/fix/wait-for-custom-wake-command
fix: let custom wake commands finish even when a device answers ping
2026-11-06 21:06:29 +01:00
Jerry 5018b01542 fix: wait for custom wake commands before accepting online status 2026-10-12 00:05:32 +08:00
invario 40c97359ae Update README to add FQDN info (#1775)
Signed-off-by: invario <67800603+invario@users.noreply.github.com>
2026-10-10 20:11:10 +02:00
Maxi Quoß 6a8bbb4525 fix: authStore clear for non superusers, close #1774 2026-09-26 10:47:13 +02:00
Maxi Quoß 66ce01cb40 fix: shutdown cron not working when lazy ping is enabled, close #1773 2026-09-19 20:28:22 +02:00
Maxi Quoß 5435d914b3 remove broadcast again
https://github.com/seriousm4x/UpSnap/pull/1760#issuecomment-5720918551
2026-09-18 12:07:15 +02:00
Maxi Quoß fc4e34da61 update docker dev container 2026-09-18 12:01:20 +02:00
Maxi Quoß 730873a347 goreleaser: build for riscv64 2026-09-18 11:52:38 +02:00
invario 9f05b1c134 Docker - add line in compose for dbus if using fqdn with .local domain (#1772)
Signed-off-by: invario <67800603+invario@users.noreply.github.com>
2026-09-18 11:48:51 +02:00
Maxi Quoß 2c244beaaa update deps 2026-09-17 22:25:11 +02:00
lights c5d33fdae8 fix group wake/shutdown for devices in multiple groups (#1771)
* only bulk-mark devices offline on client disconnect when lazy ping is enabled

the OnRealtimeConnectRequest hook re-stamped every shutdown-capable
device as offline whenever the last realtime client disconnected, even
with lazy ping disabled where the ping cron keeps statuses fresh. this
overwrote the records' updated autodate, which the UI surfaces as the
'offline since' time, so a dashboard close looked like every device had
just powered off. the saves were also silent, so the unified /logs page
gave no hint.

- skip the offline transition entirely when lazy ping is disabled
- leave already-offline devices untouched so their offline-since
  timestamp keeps its real meaning
- log an info event when the sweep actually marks devices offline

Fixes #1768

* fix group wake/shutdown for devices in multiple groups

the group handlers filter with groups.id = {:grpId}, which on a
multi-relation field requires every group to match. devices in more
than one group therefore never matched and were skipped by the group
wake and shutdown buttons. use ?= to match on any group.

Fixes #1770
2026-09-17 22:21:38 +02:00
invario b17b09109f feature: Support use of FQDN resolution with DNS and mDNS (#1760)
* feature: Support use of FQDN resolution with DNS and mDNS

Signed-off-by: invario <67800603+invario@users.noreply.github.com>

* - fixed `cronjobs.go` call to `port.Set()`
- refactored lots of the new code and fixed errors
- added validation functions into `validate.go` to handle unicode FQDN and punycode
- fixed memory leak from not closing avahi server connection by establishing permanent connection
- updated regex used in on device form and PB validation pattern to accept international unicode FQDN or IPv4 addresses
- updated regex used for netmask validation on form
- timeout mDNS queries after 2 seconds

Signed-off-by: invario <67800603+invario@users.noreply.github.com>

* fix: remove unintentional change

Signed-off-by: invario <67800603+invario@users.noreply.github.com>

* perform FQDN/IP validation in Svelte instead of HTML form

Signed-off-by: invario <67800603+invario@users.noreply.github.com>

* disable IP tracking if field value does not match regex for IPv4

Signed-off-by: invario <67800603+invario@users.noreply.github.com>

* fix: port state not always saved, don't resolve deviceIP for every port

* send wol packets also to broadcast

* fix: handle lowercase string comparision

---------

Signed-off-by: invario <67800603+invario@users.noreply.github.com>
Co-authored-by: Maxi Quoß <maxi@quoss.org>
2026-09-17 22:15:03 +02:00
Maxi Quoß 0a798d6e94 prevent /api/health requests from being written into logs 2026-09-12 21:19:13 +02:00
Maxi Quoß aee5c8c3c7 improve logging, filter only upsnap logs 2026-09-10 16:46:40 +02:00
Maxi Quoß 7045f74d77 cleanup css classes 2026-09-10 01:29:13 +02:00
Maxi Quoß b3c4b376a0 improve log filter and fonts 2026-09-10 01:17:55 +02:00
Maxi Quoß 7bbe114407 feat: add /logs page, close #1756 2026-09-09 23:50:00 +02:00
seriousm4x 710329e8ab remove star history 2026-08-28 00:33:51 +02:00
Maxi Quoß df7a577db2 remove info
This is just to de-clutter the readme and changelog. I still stand
behind this statement. Nothing changes.
2026-08-27 20:58:29 +02:00
Maxi Quoß d8eafbc123 fix: set device status for lazy ping devices, close #1762 2026-08-27 20:56:16 +02:00
Maxi Quoß 11bdb8ad36 use correct pocketbase app values 2026-08-27 20:28:19 +02:00
Maxi Quoß 9057fa710b update deps 2026-08-27 20:26:47 +02:00
Mike Pastore b5fd864320 feat: optional per-device IP address tracking via periodic ARP scan (#1763)
* feat: optional per-device ip address tracking via periodic arp scan

Adds a per-device "Track IP address" toggle (disabled by default) and a
global cron interval setting. When enabled, upsnap periodically arp-scans
the local subnets of opted-in devices with nmap and updates a device's ip
address whenever its mac address is found at a different one. Subnets are
skipped unless directly attached to the host, so routed devices are never
scanned. Uses the same nmap + CAP_NET_RAW requirements as the existing
network scan feature; no new privileges needed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* test: cover ip tracking subnet helpers and nmap xml parsing

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* refactor: extract ip tracking into its own package and expand test coverage

Move the arp scan sweep out of cronjobs into a new iptracking package with
two entry points: TrackAllSubnets (the cron sweep) and TrackOneSubnet (a
single validated scan). Device lookup is now by mac address across all
tracked devices, with updates constrained to the device's own subnet.

The scannability check becomes networking.ValidateScannableSubnet, which
reports why a subnet can't be scanned and accepts any subnet overlapping a
directly attached network, so sub-blocks of an attached prefix are now
scannable. The mac-to-ip mapping moves to networking as Nmaprun.MacToIP.

Cover the subnet guard, mac normalization, skip paths, and sweep
orchestration with tests against a stubbed scanner and a real migrated
schema.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* feat: pause tracking sweeps while nobody is connected

With lazy_ping turned on, the periodic tracking sweep now skips its tick
while no realtime clients are connected, just like the ping cron, and owes
a catch-up sweep to the next client that connects: the realtime connect
hook runs one sweep only when a tick was actually skipped (or none has run
since boot), so page reloads during active use trigger nothing. This
extends lazy_ping's meaning from "pause pings when idle" to "pause
periodic network activity when idle"; the setting's description is updated
accordingly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* ui: move lazy ping section below ip tracking in settings

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* disable toggle when tracking is disabled

* fix: load private store

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: Maxi Quoß <maxi@quoss.org>
2026-08-27 20:21:51 +02:00
Maxi Quoß 297518f008 fix: only allow valid ipv4 addresses as netmask, close #1761 2026-07-26 12:20:30 +02:00
Maxi Quoß e3c7342932 fix: only allow valid ipv4 addresses as netmask, close #1761 2026-07-26 12:19:58 +02:00
Maxi Quoß 89977debc5 update deps 2026-07-23 19:15:28 +02:00
invario 391b218fe5 fix: ip and mac address regex validation (#1758)
* fix: ip and mac address regex validation

* fix quoting/escaping, add migration file

Signed-off-by: invario <67800603+invario@users.noreply.github.com>

---------

Signed-off-by: invario <67800603+invario@users.noreply.github.com>
2026-07-23 19:07:39 +02:00
invario 3614f3654b Fix: subnet mask check (#1757) 2026-07-23 19:01:04 +02:00
Maxi Quoß c4cf006832 update deps
https://github.com/pocketbase/pocketbase/releases/tag/v0.39.7
2026-07-16 19:38:09 +02:00
Maxi Quoß 0834d0089b fix: dockerfile: addgroup missing group name 2026-07-03 22:55:10 +02:00
Maxi Quoß b2c39ddbb1 update deps 2026-07-03 22:45:21 +02:00
Maxi Quoß 66fe9109bb pnpm: workspace allow sft 2026-07-03 22:42:56 +02:00
invario f2f7655a44 fix: create user upsnap with UID:GID 1000:1000 for ssh/sshpass (#1751)
Signed-off-by: invario <67800603+invario@users.noreply.github.com>
2026-07-03 10:52:28 +02:00
Rufo Sanchez 8f52541fe7 Add OCI standard labels to Dockerfile (#1746) 2026-06-24 22:50:54 +02:00
Maxi Quoß a4c0378acb remove ghcr.io pulls 2026-06-17 23:29:21 +02:00
Maxi Quoß f8c9cd8934 remove dependabot 2026-06-17 23:21:57 +02:00
dependabot[bot] b9ff66a0aa build(deps-dev): bump vite from 8.0.14 to 8.0.16 in /frontend
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 8.0.14 to 8.0.16.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v8.0.16/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 8.0.16
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-17 03:13:19 +00:00
Maxi Quoß 242cfb4baf update lang codes 2026-06-01 22:03:20 +02:00
Maxi Quoß 24bdf6776d update deps 2026-06-01 21:57:03 +02:00
AntraX 66ba9d94f4 feat: Add language pt-BR (Portuguese Brazilian) (#1743)
* Add language pt-BR (Portuguese Brazilian)

* add to readme and order array

---------

Co-authored-by: Maxi Quoß <maxi@quoss.org>
2026-06-01 21:51:24 +02:00
Maxi Quoß 92f9e295d5 update deps 2026-05-26 21:08:07 +02:00
Maxi Quoß 74633e7f24 fix: use token based superuser setup
https://github.com/seriousm4x/UpSnap/security/advisories/GHSA-w4jr-728f-5jhq
2026-05-26 20:55:20 +02:00
Maxi Quoß 43f3f65d65 fix: validate ip and mac addresses to prevent RCE
https://github.com/seriousm4x/UpSnap/security/advisories/GHSA-6mc7-6948-w5h4
2026-05-26 19:08:52 +02:00
dependabot[bot] dfaf0eec59 build(deps-dev): bump @sveltejs/kit from 2.59.1 to 2.60.1 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.59.1 to 2.60.1.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.60.1/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.60.1
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-21 18:11:06 +00:00
dependabot[bot] 8b08585ced build(deps-dev): bump svelte from 5.55.5 to 5.55.7 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.55.5 to 5.55.7.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.55.7/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.55.7
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-14 21:59:30 +00:00
Anish Patel 7b8bcfa296 fix: switch cron-parser to named import (CronExpressionParser) (#1737)
The default export from cron-parser is deprecated/removed in newer
versions. Replace `cronParser` with `CronExpressionParser` in both
the cron helper and settings page.
2026-05-14 22:58:47 +02:00
Maxi Quoß 19daaf803f fix: eager fetch on device card 2026-05-10 13:27:26 +02:00
Maxi Quoß 1a60020a1a fix: binding_property_non_reactive 2026-05-10 13:22:55 +02:00
Maxi Quoß 9494c34598 update deps 2026-05-10 13:22:42 +02:00
dependabot[bot] 6aa2345344 build(deps): bump cookie from 0.6.0 to 1.1.1 in /frontend
Bumps [cookie](https://github.com/jshttp/cookie) from 0.6.0 to 1.1.1.
- [Release notes](https://github.com/jshttp/cookie/releases)
- [Commits](https://github.com/jshttp/cookie/compare/v0.6.0...v1.1.1)

---
updated-dependencies:
- dependency-name: cookie
  dependency-version: 1.1.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-10 11:12:21 +00:00
Nikitas Makris 91fe0740ea Add i18n el-GR (#1734)
* Add Greek language support to settings

* Create gr-GR.json

* Add Greek translations for user interface

* Translate settings and welcome messages to Greek

* Update locale.ts

* Add Greek language support to account page

* fix el-GR language code

---------

Co-authored-by: Maxi Quoß <maxi@quoss.org>
2026-05-10 13:10:48 +02:00
Maxi Quoß 6df1205aff update deps 2026-04-27 14:17:06 +02:00
Mohamed Abbas cc605acc83 Added shutdown group (#1732) 2026-04-27 14:15:41 +02:00
dependabot[bot] 24e218b334 gh-action: bump pnpm/action-setup from 5 to 6
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 5 to 6.
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](https://github.com/pnpm/action-setup/compare/v5...v6)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-13 10:24:53 +00:00
dependabot[bot] aabd8c165c gh-action: bump dependabot/fetch-metadata from 2 to 3
Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 2 to 3.
- [Release notes](https://github.com/dependabot/fetch-metadata/releases)
- [Commits](https://github.com/dependabot/fetch-metadata/compare/v2...v3)

---
updated-dependencies:
- dependency-name: dependabot/fetch-metadata
  dependency-version: '3'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-09 09:33:45 +00:00
Lê Huy Hoàng b297f3a887 Format pending countdown as MM:SS (#1727)
* Format pending countdown as MM:SS

* directly use value, variable is not reused

* keep animation and 2 digits

---------

Co-authored-by: Jarvis <jarvis@local>
Co-authored-by: Maxi Quoß <maxi@quoss.org>
2026-04-08 22:44:05 +02:00
dependabot[bot] af655d3621 build(deps-dev): bump vite from 7.3.1 to 7.3.2 in /frontend
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.3.1 to 7.3.2.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v7.3.2/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v7.3.2/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 7.3.2
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-06 21:39:28 +00:00
Maxi Quoß 65d6e9fa86 update deps 2026-04-01 19:24:57 +02:00
monstercjz 6d53e9e197 fix(cron/wake): fix closure bugs, add reload hooks, and improve command robustness (#1723)
Co-authored-by: Maxi Quoß <maxi@quoss.org>
2026-04-01 19:21:47 +02:00
invario 6caddf25d0 Update README.md - reorganized parts and linked to Wiki instead (#1719)
Signed-off-by: invario <67800603+invario@users.noreply.github.com>
2026-04-01 18:59:33 +02:00
invario f7dc0b2113 Update docker-compose.yml (#1721)
Add note about nmap
Remove alternate entrypoint for adding packages (breaks functionality)
2026-04-01 18:57:39 +02:00
dependabot[bot] 314d338d08 build(deps): bump golang.org/x/image from 0.37.0 to 0.38.0 in /backend
Bumps [golang.org/x/image](https://github.com/golang/image) from 0.37.0 to 0.38.0.
- [Commits](https://github.com/golang/image/compare/v0.37.0...v0.38.0)

---
updated-dependencies:
- dependency-name: golang.org/x/image
  dependency-version: 0.38.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-30 16:30:08 +00:00
dependabot[bot] d8bdab2d2e build(deps): bump yaml from 1.10.2 to 1.10.3 in /frontend
Bumps [yaml](https://github.com/eemeli/yaml) from 1.10.2 to 1.10.3.
- [Release notes](https://github.com/eemeli/yaml/releases)
- [Commits](https://github.com/eemeli/yaml/compare/v1.10.2...v1.10.3)

---
updated-dependencies:
- dependency-name: yaml
  dependency-version: 1.10.3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-25 20:55:35 +00:00
Maxi Quoß 95d722ba56 fix: test udp 2026-03-23 20:54:43 +01:00
invario 59b1723b1c send additional 2 magic packets via IP address for routed WOL (#1718)
Signed-off-by: invario <67800603+invario@users.noreply.github.com>
2026-03-23 20:51:07 +01:00
Maxi Quoß 49d4109f1b gh-actions: remove go and npm, will update manually 2026-03-23 00:17:30 +01:00
invario 8d461e0cc7 add note for DEVICE_IP and DEVICE_MAC availability in cmds (#1716)
* add note for DEVICE_IP and DEVICE_MAC availability in cmds
Updated translations
Renamed device_tabs.0 and 1 to device_tabs_0 and 1 due to
causing problems in the inlang interpreting the . as a nested key

Signed-off-by: invario <67800603+invario@users.noreply.github.com>

* remove some backticks

---------

Signed-off-by: invario <67800603+invario@users.noreply.github.com>
Co-authored-by: Maxi Quoß <maxi@quoss.org>
2026-03-22 22:07:59 +01:00
Maxi Quoß b00f3a1c72 fix build 2026-03-21 01:36:33 +01:00
dependabot[bot] 4c03494807 npm-dep: bump @inlang/paraglide-js from 2.15.0 to 2.15.1 in /frontend
Bumps [@inlang/paraglide-js](https://github.com/opral/paraglide-js) from 2.15.0 to 2.15.1.
- [Changelog](https://github.com/opral/paraglide-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opral/paraglide-js/commits)

---
updated-dependencies:
- dependency-name: "@inlang/paraglide-js"
  dependency-version: 2.15.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-21 00:30:40 +00:00
Maxi Quoß 4610b54c93 pnpm update 2026-03-21 01:26:52 +01:00
Maxi Quoß 105ae4f6bc fix: static page reload fails, use search param device id, close #1711 2026-03-21 01:21:35 +01:00
Maxi Quoß 85b49defa9 scan: flex-col inputs 2026-03-20 12:53:01 +01:00
Maxi Quoß 66e08ade4e frontend: use @tailwindcss/vite instead of postcss 2026-03-19 14:58:24 +01:00
dependabot[bot] 285f8dcacf gh-action: bump actions/upload-artifact from 6 to 7 (#1665)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 6 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-19 14:34:48 +01:00
dependabot[bot] 9c0f6e114e gh-action: bump docker/build-push-action from 6 to 7 (#1680)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6 to 7.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v6...v7)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-19 14:34:38 +01:00
Maxi Quoß d31a6ef254 update deps 2026-03-19 14:33:47 +01:00
Maxi Quoß c2bf398a69 small fixes 2026-03-19 14:30:54 +01:00
invario 9dac3e982e Add ability for device/network scan when rootless (#1700)
* Add ability for device/network scan when rootless

Signed-off-by: invario <67800603+invario@users.noreply.github.com>

* adjust err msg

---------

Signed-off-by: invario <67800603+invario@users.noreply.github.com>
Co-authored-by: Maxi Quoß <maxi@quoss.org>
2026-03-19 12:26:26 +01:00
invario 48a8c736b2 fix: loop in shutdown code rewritten to work properly (#1695)
* FIX: loop in shutdown code rewritten to work properly

Signed-off-by: invario <67800603+invario@users.noreply.github.com>

* remove unneeded wait()

we already wait in shutdown.go#L52

* cleanup

---------

Signed-off-by: invario <67800603+invario@users.noreply.github.com>
Co-authored-by: Maxi Quoß <maxi@quoss.org>
2026-03-19 12:10:45 +01:00
invario 1d361e3f8b update ping privileged/unprivileged logic (#1586)
* update ping privileged/unprivileged logic, add entrypoint

Signed-off-by: invario <67800603+invario@users.noreply.github.com>

* Removed entrypoint script, code in GO instead to raise NET_RAW cap

Signed-off-by: invario <67800603+invario@users.noreply.github.com>

* Rewritten to only split pingdevice func into separate GO files

Signed-off-by: invario <67800603+invario@users.noreply.github.com>

* remove runtime check

* readme: cap_net_raw=+p

* clear up

* readme: clearify linux only

* set `privileged = false` on darwin

---------

Signed-off-by: invario <67800603+invario@users.noreply.github.com>
Co-authored-by: Maxi Quoß <maxi@quoss.org>
2026-03-19 11:20:46 +01:00
dependabot[bot] 611c4d29c5 npm-dep: bump tailwindcss from 4.2.1 to 4.2.2 in /frontend
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/tailwindcss) from 4.2.1 to 4.2.2.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.2.2/packages/tailwindcss)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-version: 4.2.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-19 09:34:21 +00:00
dependabot[bot] d6604b2df3 npm-dep: bump @tailwindcss/postcss from 4.2.1 to 4.2.2 in /frontend
Bumps [@tailwindcss/postcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/@tailwindcss-postcss) from 4.2.1 to 4.2.2.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.2.2/packages/@tailwindcss-postcss)

---
updated-dependencies:
- dependency-name: "@tailwindcss/postcss"
  dependency-version: 4.2.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-19 09:34:03 +00:00
dependabot[bot] 52f00c4847 npm-dep: bump typescript-eslint from 8.57.0 to 8.57.1 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.57.0 to 8.57.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.57.1/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.57.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-18 09:35:33 +00:00
dependabot[bot] 2e69ba9b61 npm-dep: bump svelte from 5.53.12 to 5.54.0 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.53.12 to 5.54.0.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.54.0/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.54.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-18 09:34:04 +00:00
dependabot[bot] 9bed4f4c74 gh-action: bump pnpm/action-setup from 4 to 5
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 4 to 5.
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](https://github.com/pnpm/action-setup/compare/v4...v5)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-18 09:33:40 +00:00
dependabot[bot] c5613a5272 go-dep: bump github.com/pocketbase/pocketbase in /backend
Bumps [github.com/pocketbase/pocketbase](https://github.com/pocketbase/pocketbase) from 0.36.6 to 0.36.7.
- [Release notes](https://github.com/pocketbase/pocketbase/releases)
- [Changelog](https://github.com/pocketbase/pocketbase/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/pocketbase/compare/v0.36.6...v0.36.7)

---
updated-dependencies:
- dependency-name: github.com/pocketbase/pocketbase
  dependency-version: 0.36.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-17 09:33:36 +00:00
Maxi Quoß 3caa62b609 fix: frontend error when devices share same mac address, close #1702 2026-03-17 09:15:56 +01:00
dependabot[bot] ed83590a62 npm-dep: bump svelte from 5.53.11 to 5.53.12 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.53.11 to 5.53.12.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.53.12/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.53.12
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-16 10:04:58 +00:00
dependabot[bot] 5c5b908d37 npm-dep: bump @inlang/paraglide-js from 2.14.0 to 2.15.0 in /frontend
Bumps [@inlang/paraglide-js](https://github.com/opral/paraglide-js) from 2.14.0 to 2.15.0.
- [Changelog](https://github.com/opral/paraglide-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opral/paraglide-js/commits)

---
updated-dependencies:
- dependency-name: "@inlang/paraglide-js"
  dependency-version: 2.15.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-13 09:37:10 +00:00
dependabot[bot] 88d333d79e npm-dep: bump svelte from 5.53.10 to 5.53.11 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.53.10 to 5.53.11.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.53.11/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.53.11
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-13 09:35:40 +00:00
dependabot[bot] 9f00286931 npm-dep: bump @inlang/cli from 3.1.6 to 3.1.7 in /frontend
Bumps [@inlang/cli](https://github.com/opral/inlang) from 3.1.6 to 3.1.7.
- [Commits](https://github.com/opral/inlang/commits)

---
updated-dependencies:
- dependency-name: "@inlang/cli"
  dependency-version: 3.1.7
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-13 09:33:58 +00:00
dependabot[bot] b39857b653 npm-dep: bump @sveltejs/kit from 2.54.0 to 2.55.0 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.54.0 to 2.55.0.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.55.0/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.55.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-13 09:33:48 +00:00
dependabot[bot] e09b96813c npm-dep: bump @sveltejs/kit from 2.53.4 to 2.54.0 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.53.4 to 2.54.0.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.54.0/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.54.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-12 09:34:08 +00:00
dependabot[bot] 1273d1b907 npm-dep: bump svelte from 5.53.9 to 5.53.10 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.53.9 to 5.53.10.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.53.10/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.53.10
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-11 09:34:08 +00:00
dependabot[bot] faeed49bc5 npm-dep: bump eslint-plugin-svelte from 3.15.1 to 3.15.2 in /frontend
Bumps [eslint-plugin-svelte](https://github.com/sveltejs/eslint-plugin-svelte/tree/HEAD/packages/eslint-plugin-svelte) from 3.15.1 to 3.15.2.
- [Release notes](https://github.com/sveltejs/eslint-plugin-svelte/releases)
- [Changelog](https://github.com/sveltejs/eslint-plugin-svelte/blob/main/packages/eslint-plugin-svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/eslint-plugin-svelte/commits/eslint-plugin-svelte@3.15.2/packages/eslint-plugin-svelte)

---
updated-dependencies:
- dependency-name: eslint-plugin-svelte
  dependency-version: 3.15.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-10 09:37:10 +00:00
dependabot[bot] 0acba76481 npm-dep: bump @inlang/paraglide-js from 2.13.2 to 2.14.0 in /frontend
Bumps [@inlang/paraglide-js](https://github.com/opral/paraglide-js) from 2.13.2 to 2.14.0.
- [Changelog](https://github.com/opral/paraglide-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opral/paraglide-js/commits)

---
updated-dependencies:
- dependency-name: "@inlang/paraglide-js"
  dependency-version: 2.14.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-10 09:35:24 +00:00
dependabot[bot] 07664829ba npm-dep: bump typescript-eslint from 8.56.1 to 8.57.0 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.56.1 to 8.57.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.57.0/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.57.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-10 09:34:52 +00:00
dependabot[bot] 78068c1042 npm-dep: bump svelte from 5.53.7 to 5.53.9 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.53.7 to 5.53.9.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.53.9/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.53.9
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-10 09:34:35 +00:00
dependabot[bot] 3bf1ba517b npm-dep: bump eslint from 9.39.3 to 9.39.4 in /frontend
Bumps [eslint](https://github.com/eslint/eslint) from 9.39.3 to 9.39.4.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/compare/v9.39.3...v9.39.4)

---
updated-dependencies:
- dependency-name: eslint
  dependency-version: 9.39.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-09 10:16:33 +00:00
dependabot[bot] 457a17c259 go-dep: bump github.com/pocketbase/pocketbase in /backend
Bumps [github.com/pocketbase/pocketbase](https://github.com/pocketbase/pocketbase) from 0.36.4 to 0.36.6.
- [Release notes](https://github.com/pocketbase/pocketbase/releases)
- [Changelog](https://github.com/pocketbase/pocketbase/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/pocketbase/compare/v0.36.4...v0.36.6)

---
updated-dependencies:
- dependency-name: github.com/pocketbase/pocketbase
  dependency-version: 0.36.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-09 10:16:01 +00:00
dependabot[bot] 29c99eda93 npm-dep: bump eslint-plugin-svelte from 3.15.0 to 3.15.1 in /frontend
Bumps [eslint-plugin-svelte](https://github.com/sveltejs/eslint-plugin-svelte/tree/HEAD/packages/eslint-plugin-svelte) from 3.15.0 to 3.15.1.
- [Release notes](https://github.com/sveltejs/eslint-plugin-svelte/releases)
- [Changelog](https://github.com/sveltejs/eslint-plugin-svelte/blob/main/packages/eslint-plugin-svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/eslint-plugin-svelte/commits/eslint-plugin-svelte@3.15.1/packages/eslint-plugin-svelte)

---
updated-dependencies:
- dependency-name: eslint-plugin-svelte
  dependency-version: 3.15.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-09 10:15:25 +00:00
dependabot[bot] cddad0f756 npm-dep: bump svelte-check from 4.4.4 to 4.4.5 in /frontend
Bumps [svelte-check](https://github.com/sveltejs/language-tools) from 4.4.4 to 4.4.5.
- [Release notes](https://github.com/sveltejs/language-tools/releases)
- [Commits](https://github.com/sveltejs/language-tools/compare/svelte-check@4.4.4...svelte-check@4.4.5)

---
updated-dependencies:
- dependency-name: svelte-check
  dependency-version: 4.4.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-09 10:15:10 +00:00
dependabot[bot] 84a362a361 npm-dep: bump @eslint/js from 9.39.3 to 9.39.4 in /frontend
Bumps [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js) from 9.39.3 to 9.39.4.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/commits/v9.39.4/packages/js)

---
updated-dependencies:
- dependency-name: "@eslint/js"
  dependency-version: 9.39.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-09 10:14:58 +00:00
dependabot[bot] 190f87d1fa go-dep: bump golang.org/x/sys from 0.41.0 to 0.42.0 in /backend
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.41.0 to 0.42.0.
- [Commits](https://github.com/golang/sys/compare/v0.41.0...v0.42.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-version: 0.42.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-09 10:14:52 +00:00
dependabot[bot] f794681ee0 npm-dep: bump @inlang/paraglide-js from 2.13.1 to 2.13.2 in /frontend
Bumps [@inlang/paraglide-js](https://github.com/opral/paraglide-js) from 2.13.1 to 2.13.2.
- [Changelog](https://github.com/opral/paraglide-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opral/paraglide-js/commits)

---
updated-dependencies:
- dependency-name: "@inlang/paraglide-js"
  dependency-version: 2.13.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-06 09:33:59 +00:00
dependabot[bot] ca3fb1c42d gh-action: bump docker/metadata-action from 5 to 6
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 5 to 6.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Commits](https://github.com/docker/metadata-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-06 09:33:23 +00:00
dependabot[bot] 7f3020d975 gh-action: bump docker/login-action from 3 to 4
Bumps [docker/login-action](https://github.com/docker/login-action) from 3 to 4.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-05 09:35:17 +00:00
dependabot[bot] 6cf9539871 gh-action: bump docker/setup-buildx-action from 3 to 4
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3 to 4.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-05 09:33:58 +00:00
dependabot[bot] b09510f5e4 npm-dep: bump prettier-plugin-svelte from 3.5.0 to 3.5.1 in /frontend
Bumps [prettier-plugin-svelte](https://github.com/sveltejs/prettier-plugin-svelte) from 3.5.0 to 3.5.1.
- [Changelog](https://github.com/sveltejs/prettier-plugin-svelte/blob/v3.5.1/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/prettier-plugin-svelte/compare/v3.5.0...v3.5.1)

---
updated-dependencies:
- dependency-name: prettier-plugin-svelte
  dependency-version: 3.5.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-04 09:37:54 +00:00
dependabot[bot] 07d7becaf8 npm-dep: bump svelte from 5.53.6 to 5.53.7 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.53.6 to 5.53.7.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.53.7/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.53.7
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-04 09:36:21 +00:00
dependabot[bot] 8301cadba1 gh-action: bump docker/setup-qemu-action from 3 to 4
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 3 to 4.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-04 09:35:52 +00:00
dependabot[bot] c57adf8548 npm-dep: bump @sveltejs/kit from 2.53.3 to 2.53.4 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.53.3 to 2.53.4.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.53.4/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.53.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-03 09:36:01 +00:00
dependabot[bot] e6d2992de2 npm-dep: bump postcss from 8.5.6 to 8.5.8 in /frontend
Bumps [postcss](https://github.com/postcss/postcss) from 8.5.6 to 8.5.8.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.5.6...8.5.8)

---
updated-dependencies:
- dependency-name: postcss
  dependency-version: 8.5.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-03 09:34:46 +00:00
dependabot[bot] 969ded61e6 npm-dep: bump @inlang/paraglide-js from 2.13.0 to 2.13.1 in /frontend
Bumps [@inlang/paraglide-js](https://github.com/opral/paraglide-js) from 2.13.0 to 2.13.1.
- [Changelog](https://github.com/opral/paraglide-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opral/paraglide-js/commits)

---
updated-dependencies:
- dependency-name: "@inlang/paraglide-js"
  dependency-version: 2.13.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-03 09:34:34 +00:00
dependabot[bot] d6300e819d npm-dep: bump svelte from 5.53.5 to 5.53.6 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.53.5 to 5.53.6.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.53.6/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.53.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-02 10:24:45 +00:00
dependabot[bot] ebd3e01af1 npm-dep: bump @sveltejs/kit from 2.53.1 to 2.53.3 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.53.1 to 2.53.3.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.53.3/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.53.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-27 09:34:14 +00:00
dependabot[bot] 13a06a5037 npm-dep: bump svelte-check from 4.4.3 to 4.4.4 in /frontend
Bumps [svelte-check](https://github.com/sveltejs/language-tools) from 4.4.3 to 4.4.4.
- [Release notes](https://github.com/sveltejs/language-tools/releases)
- [Commits](https://github.com/sveltejs/language-tools/compare/svelte-check@4.4.3...svelte-check@4.4.4)

---
updated-dependencies:
- dependency-name: svelte-check
  dependency-version: 4.4.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-27 09:33:56 +00:00
dependabot[bot] 06b46266f2 npm-dep: bump @inlang/paraglide-js from 2.12.0 to 2.13.0 in /frontend
Bumps [@inlang/paraglide-js](https://github.com/opral/paraglide-js) from 2.12.0 to 2.13.0.
- [Changelog](https://github.com/opral/paraglide-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opral/paraglide-js/commits)

---
updated-dependencies:
- dependency-name: "@inlang/paraglide-js"
  dependency-version: 2.13.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-27 09:33:41 +00:00
dependabot[bot] fb0f9f0d0f gh-action: bump actions/download-artifact from 7 to 8
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 7 to 8.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v7...v8)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-27 09:33:24 +00:00
dependabot[bot] 4f1ec6c90f npm-dep: bump svelte from 5.53.3 to 5.53.5 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.53.3 to 5.53.5.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.53.5/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.53.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-26 09:34:00 +00:00
dependabot[bot] ad36a40f17 npm-dep: bump @sveltejs/kit from 2.53.0 to 2.53.1 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.53.0 to 2.53.1.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.53.1/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.53.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-25 09:33:18 +00:00
dependabot[bot] db528a9b9b npm-dep: bump tailwindcss from 4.2.0 to 4.2.1 in /frontend
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/tailwindcss) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.2.1/packages/tailwindcss)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-version: 4.2.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-24 09:33:09 +00:00
dependabot[bot] 7498a699d7 npm-dep: bump typescript-eslint from 8.56.0 to 8.56.1 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.56.0 to 8.56.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.56.1/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.56.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-24 09:32:55 +00:00
dependabot[bot] 81e252b8a5 npm-dep: bump @tailwindcss/postcss from 4.2.0 to 4.2.1 in /frontend
Bumps [@tailwindcss/postcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/@tailwindcss-postcss) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.2.1/packages/@tailwindcss-postcss)

---
updated-dependencies:
- dependency-name: "@tailwindcss/postcss"
  dependency-version: 4.2.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-24 09:32:38 +00:00
dependabot[bot] d99d19b3a0 npm-dep: bump svelte from 5.53.0 to 5.53.3 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.53.0 to 5.53.3.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.53.3/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.53.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-23 10:30:31 +00:00
dependabot[bot] 1e168d473c npm-dep: bump @sveltejs/kit from 2.52.2 to 2.53.0 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.52.2 to 2.53.0.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.53.0/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.53.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-23 10:29:26 +00:00
dependabot[bot] 835f5b9957 npm-dep: bump daisyui from 5.5.18 to 5.5.19 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.5.18 to 5.5.19.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.5.19/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.5.19
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-23 10:29:25 +00:00
dependabot[bot] be94f35455 npm-dep: bump @eslint/js from 9.39.2 to 9.39.3 in /frontend
Bumps [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js) from 9.39.2 to 9.39.3.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/commits/v9.39.3/packages/js)

---
updated-dependencies:
- dependency-name: "@eslint/js"
  dependency-version: 9.39.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-23 10:27:53 +00:00
dependabot[bot] a2d6d7305c npm-dep: bump eslint from 9.39.2 to 9.39.3 in /frontend
Bumps [eslint](https://github.com/eslint/eslint) from 9.39.2 to 9.39.3.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/compare/v9.39.2...v9.39.3)

---
updated-dependencies:
- dependency-name: eslint
  dependency-version: 9.39.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-23 10:26:17 +00:00
dependabot[bot] 2d55e9f168 npm-dep: bump svelte-check from 4.4.1 to 4.4.3 in /frontend
Bumps [svelte-check](https://github.com/sveltejs/language-tools) from 4.4.1 to 4.4.3.
- [Release notes](https://github.com/sveltejs/language-tools/releases)
- [Commits](https://github.com/sveltejs/language-tools/compare/svelte-check@4.4.1...svelte-check@4.4.3)

---
updated-dependencies:
- dependency-name: svelte-check
  dependency-version: 4.4.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-23 10:26:02 +00:00
dependabot[bot] 0232a43e71 gh-action: bump goreleaser/goreleaser-action from 6 to 7
Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 6 to 7.
- [Release notes](https://github.com/goreleaser/goreleaser-action/releases)
- [Commits](https://github.com/goreleaser/goreleaser-action/compare/v6...v7)

---
updated-dependencies:
- dependency-name: goreleaser/goreleaser-action
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-23 10:25:49 +00:00
dependabot[bot] 6819248815 npm-dep: bump svelte-check from 4.4.0 to 4.4.1 in /frontend
Bumps [svelte-check](https://github.com/sveltejs/language-tools) from 4.4.0 to 4.4.1.
- [Release notes](https://github.com/sveltejs/language-tools/releases)
- [Commits](https://github.com/sveltejs/language-tools/compare/svelte-check@4.4.0...svelte-check@4.4.1)

---
updated-dependencies:
- dependency-name: svelte-check
  dependency-version: 4.4.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-19 09:36:32 +00:00
dependabot[bot] cea0136f83 npm-dep: bump prettier-plugin-svelte from 3.4.1 to 3.5.0 in /frontend
Bumps [prettier-plugin-svelte](https://github.com/sveltejs/prettier-plugin-svelte) from 3.4.1 to 3.5.0.
- [Changelog](https://github.com/sveltejs/prettier-plugin-svelte/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/prettier-plugin-svelte/commits)

---
updated-dependencies:
- dependency-name: prettier-plugin-svelte
  dependency-version: 3.5.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-19 09:36:19 +00:00
dependabot[bot] 01dcca3a5d npm-dep: bump @tailwindcss/postcss from 4.1.18 to 4.2.0 in /frontend
Bumps [@tailwindcss/postcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/@tailwindcss-postcss) from 4.1.18 to 4.2.0.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.2.0/packages/@tailwindcss-postcss)

---
updated-dependencies:
- dependency-name: "@tailwindcss/postcss"
  dependency-version: 4.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-19 09:36:01 +00:00
dependabot[bot] 0b7c4a61e7 npm-dep: bump svelte from 5.51.3 to 5.53.0 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.51.3 to 5.53.0.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.53.0/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.53.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-19 09:35:01 +00:00
dependabot[bot] 745094b03a npm-dep: bump tailwindcss from 4.1.18 to 4.2.0 in /frontend
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/tailwindcss) from 4.1.18 to 4.2.0.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.2.0/packages/tailwindcss)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-version: 4.2.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-19 09:34:33 +00:00
dependabot[bot] 0bead881ef npm-dep: bump @sveltejs/kit from 2.52.0 to 2.52.2 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.52.0 to 2.52.2.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.52.2/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.52.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-19 09:33:53 +00:00
dependabot[bot] 58136f2da3 npm-dep: bump svelte from 5.51.2 to 5.51.3 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.51.2 to 5.51.3.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.51.3/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.51.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-18 09:34:11 +00:00
dependabot[bot] f299c9dd32 npm-dep: bump svelte-check from 4.3.6 to 4.4.0 in /frontend
Bumps [svelte-check](https://github.com/sveltejs/language-tools) from 4.3.6 to 4.4.0.
- [Release notes](https://github.com/sveltejs/language-tools/releases)
- [Commits](https://github.com/sveltejs/language-tools/compare/svelte-check@4.3.6...svelte-check@4.4.0)

---
updated-dependencies:
- dependency-name: svelte-check
  dependency-version: 4.4.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-17 09:34:26 +00:00
dependabot[bot] e4ab3c37ca npm-dep: bump @sveltejs/kit from 2.51.0 to 2.52.0 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.51.0 to 2.52.0.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.52.0/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.52.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-17 09:33:38 +00:00
dependabot[bot] e997211a15 npm-dep: bump typescript-eslint from 8.55.0 to 8.56.0 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.55.0 to 8.56.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.56.0/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.56.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-17 09:32:16 +00:00
dependabot[bot] 20e25201d0 go-dep: bump github.com/pocketbase/pocketbase in /backend
Bumps [github.com/pocketbase/pocketbase](https://github.com/pocketbase/pocketbase) from 0.36.3 to 0.36.4.
- [Release notes](https://github.com/pocketbase/pocketbase/releases)
- [Changelog](https://github.com/pocketbase/pocketbase/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/pocketbase/compare/v0.36.3...v0.36.4)

---
updated-dependencies:
- dependency-name: github.com/pocketbase/pocketbase
  dependency-version: 0.36.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-17 09:32:02 +00:00
dependabot[bot] 91eab529ef npm-dep: bump @inlang/paraglide-js from 2.11.0 to 2.12.0 in /frontend
Bumps [@inlang/paraglide-js](https://github.com/opral/paraglide-js) from 2.11.0 to 2.12.0.
- [Changelog](https://github.com/opral/paraglide-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opral/paraglide-js/commits)

---
updated-dependencies:
- dependency-name: "@inlang/paraglide-js"
  dependency-version: 2.12.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-16 10:22:45 +00:00
dependabot[bot] 28ef84db36 npm-dep: bump svelte from 5.50.3 to 5.51.2 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.50.3 to 5.51.2.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.51.2/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.51.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-16 10:22:24 +00:00
dependabot[bot] 288deda98b go-dep: bump github.com/pocketbase/pocketbase in /backend
Bumps [github.com/pocketbase/pocketbase](https://github.com/pocketbase/pocketbase) from 0.36.2 to 0.36.3.
- [Release notes](https://github.com/pocketbase/pocketbase/releases)
- [Changelog](https://github.com/pocketbase/pocketbase/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/pocketbase/compare/v0.36.2...v0.36.3)

---
updated-dependencies:
- dependency-name: github.com/pocketbase/pocketbase
  dependency-version: 0.36.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-16 10:21:48 +00:00
Maxi Quoß 9e6c2eb372 update deps 2026-02-13 00:47:48 +01:00
Maxi Quoß 423b2cec72 fix: eslint warnings 2026-02-13 00:39:30 +01:00
Ali | علي 85280034ce add Arabic (ar-SA) translation, RTL & fix SSR navigator error. (#1623)
* feat: add Arabic translation (ar-SA)

* Add Arabic localization and RTL support

* cleanup ar-SA

---------

Co-authored-by: Maxi Quoß <maxi@quoss.org>
2026-02-13 00:32:16 +01:00
Joshua Higgins 5440ab3b25 fix: allow users with create permissions to scan for devices (#1611)
* fix: allow users with create permissions to scan for devices

* fix: show scan tab in frontend
2026-02-13 00:00:54 +01:00
dependabot[bot] 8ae36d61cc go-dep: bump golang.org/x/sys from 0.40.0 to 0.41.0 in /backend
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.40.0 to 0.41.0.
- [Commits](https://github.com/golang/sys/compare/v0.40.0...v0.41.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-version: 0.41.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-12 09:35:30 +00:00
dependabot[bot] 16d4b8ecb7 go-dep: bump github.com/prometheus-community/pro-bing in /backend
Bumps [github.com/prometheus-community/pro-bing](https://github.com/prometheus-community/pro-bing) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/prometheus-community/pro-bing/releases)
- [Commits](https://github.com/prometheus-community/pro-bing/compare/v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus-community/pro-bing
  dependency-version: 0.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-12 09:34:16 +00:00
dependabot[bot] 37943f8412 npm-dep: bump @inlang/cli from 3.1.5 to 3.1.6 in /frontend
Bumps [@inlang/cli](https://github.com/opral/inlang) from 3.1.5 to 3.1.6.
- [Commits](https://github.com/opral/inlang/commits)

---
updated-dependencies:
- dependency-name: "@inlang/cli"
  dependency-version: 3.1.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-12 09:33:06 +00:00
dependabot[bot] c5295d5f2d npm-dep: bump svelte from 5.50.1 to 5.50.2 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.50.1 to 5.50.2.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.50.2/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.50.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-12 09:32:47 +00:00
dependabot[bot] 8dcb32f8cd go-dep: bump github.com/pocketbase/dbx from 1.11.0 to 1.12.0 in /backend
Bumps [github.com/pocketbase/dbx](https://github.com/pocketbase/dbx) from 1.11.0 to 1.12.0.
- [Release notes](https://github.com/pocketbase/dbx/releases)
- [Commits](https://github.com/pocketbase/dbx/compare/v1.11.0...v1.12.0)

---
updated-dependencies:
- dependency-name: github.com/pocketbase/dbx
  dependency-version: 1.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-12 09:32:30 +00:00
dependabot[bot] ddea25d934 npm-dep: bump @inlang/cli from 3.1.4 to 3.1.5 in /frontend
Bumps [@inlang/cli](https://github.com/opral/inlang) from 3.1.4 to 3.1.5.
- [Commits](https://github.com/opral/inlang/commits)

---
updated-dependencies:
- dependency-name: "@inlang/cli"
  dependency-version: 3.1.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-11 09:35:09 +00:00
dependabot[bot] c033f25309 npm-dep: bump eslint-plugin-svelte from 3.14.0 to 3.15.0 in /frontend
Bumps [eslint-plugin-svelte](https://github.com/sveltejs/eslint-plugin-svelte/tree/HEAD/packages/eslint-plugin-svelte) from 3.14.0 to 3.15.0.
- [Release notes](https://github.com/sveltejs/eslint-plugin-svelte/releases)
- [Changelog](https://github.com/sveltejs/eslint-plugin-svelte/blob/main/packages/eslint-plugin-svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/eslint-plugin-svelte/commits/eslint-plugin-svelte@3.15.0/packages/eslint-plugin-svelte)

---
updated-dependencies:
- dependency-name: eslint-plugin-svelte
  dependency-version: 3.15.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-11 09:34:20 +00:00
dependabot[bot] ecac90ecb4 npm-dep: bump @inlang/paraglide-js from 2.10.0 to 2.11.0 in /frontend
Bumps [@inlang/paraglide-js](https://github.com/opral/paraglide-js) from 2.10.0 to 2.11.0.
- [Changelog](https://github.com/opral/paraglide-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opral/paraglide-js/commits)

---
updated-dependencies:
- dependency-name: "@inlang/paraglide-js"
  dependency-version: 2.11.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-11 09:33:58 +00:00
dependabot[bot] d3daeeb061 npm-dep: bump typescript-eslint from 8.54.0 to 8.55.0 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.54.0 to 8.55.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.55.0/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.55.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-10 09:34:21 +00:00
dependabot[bot] 46bc7195d6 npm-dep: bump svelte from 5.50.0 to 5.50.1 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.50.0 to 5.50.1.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.50.1/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.50.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-10 09:33:56 +00:00
dependabot[bot] 6392527d80 npm-dep: bump svelte from 5.49.2 to 5.50.0 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.49.2 to 5.50.0.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.50.0/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.50.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-09 10:41:20 +00:00
dependabot[bot] dc49e87993 npm-dep: bump daisyui from 5.5.17 to 5.5.18 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.5.17 to 5.5.18.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.5.18/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.5.18
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-06 09:33:56 +00:00
dependabot[bot] 9b0e58af44 npm-dep: bump svelte from 5.49.1 to 5.49.2 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.49.1 to 5.49.2.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.49.2/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.49.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-05 09:33:57 +00:00
dependabot[bot] e3e6626f9f npm-dep: bump daisyui from 5.5.14 to 5.5.17 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.5.14 to 5.5.17.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.5.17/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.5.17
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-03 09:59:04 +00:00
dependabot[bot] 4778f5e1af npm-dep: bump @sveltejs/kit from 2.50.1 to 2.50.2 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.50.1 to 2.50.2.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.50.2/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.50.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-03 09:58:55 +00:00
dependabot[bot] cd64c270f3 npm-dep: bump svelte-check from 4.3.5 to 4.3.6 in /frontend
Bumps [svelte-check](https://github.com/sveltejs/language-tools) from 4.3.5 to 4.3.6.
- [Release notes](https://github.com/sveltejs/language-tools/releases)
- [Commits](https://github.com/sveltejs/language-tools/compare/svelte-check@4.3.5...svelte-check@4.3.6)

---
updated-dependencies:
- dependency-name: svelte-check
  dependency-version: 4.3.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-02 10:41:24 +00:00
dependabot[bot] b3895dc97f npm-dep: bump @inlang/paraglide-js from 2.9.1 to 2.10.0 in /frontend
Bumps [@inlang/paraglide-js](https://github.com/opral/paraglide-js) from 2.9.1 to 2.10.0.
- [Changelog](https://github.com/opral/paraglide-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opral/paraglide-js/commits)

---
updated-dependencies:
- dependency-name: "@inlang/paraglide-js"
  dependency-version: 2.10.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-02 10:41:12 +00:00
dependabot[bot] 8f2e538ce1 go-dep: bump github.com/pocketbase/pocketbase in /backend
Bumps [github.com/pocketbase/pocketbase](https://github.com/pocketbase/pocketbase) from 0.36.1 to 0.36.2.
- [Release notes](https://github.com/pocketbase/pocketbase/releases)
- [Changelog](https://github.com/pocketbase/pocketbase/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/pocketbase/compare/v0.36.1...v0.36.2)

---
updated-dependencies:
- dependency-name: github.com/pocketbase/pocketbase
  dependency-version: 0.36.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-02 10:40:44 +00:00
dependabot[bot] c7c31fd796 npm-dep: bump pocketbase from 0.26.7 to 0.26.8 in /frontend
Bumps [pocketbase](https://github.com/pocketbase/js-sdk) from 0.26.7 to 0.26.8.
- [Release notes](https://github.com/pocketbase/js-sdk/releases)
- [Changelog](https://github.com/pocketbase/js-sdk/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/js-sdk/compare/v0.26.7...v0.26.8)

---
updated-dependencies:
- dependency-name: pocketbase
  dependency-version: 0.26.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-30 09:34:03 +00:00
dependabot[bot] 34282ec9af npm-dep: bump svelte from 5.49.0 to 5.49.1 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.49.0 to 5.49.1.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.49.1/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.49.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-30 09:33:45 +00:00
dependabot[bot] 6270ebfb51 npm-dep: bump svelte from 5.48.5 to 5.49.0 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.48.5 to 5.49.0.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.49.0/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.49.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-29 09:33:53 +00:00
dependabot[bot] cb7c13bce3 npm-dep: bump pocketbase from 0.26.6 to 0.26.7 in /frontend
Bumps [pocketbase](https://github.com/pocketbase/js-sdk) from 0.26.6 to 0.26.7.
- [Release notes](https://github.com/pocketbase/js-sdk/releases)
- [Changelog](https://github.com/pocketbase/js-sdk/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/js-sdk/compare/v0.26.6...v0.26.7)

---
updated-dependencies:
- dependency-name: pocketbase
  dependency-version: 0.26.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-28 09:34:41 +00:00
dependabot[bot] cfe488da1b npm-dep: bump svelte from 5.48.3 to 5.48.5 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.48.3 to 5.48.5.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.48.5/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.48.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-28 09:34:24 +00:00
dependabot[bot] 7062a479d7 npm-dep: bump typescript-eslint from 8.53.1 to 8.54.0 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.53.1 to 8.54.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.54.0/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.54.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-27 09:32:29 +00:00
dependabot[bot] 4ed1e44d4b npm-dep: bump svelte from 5.48.2 to 5.48.3 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.48.2 to 5.48.3.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.48.3/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.48.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-27 09:32:13 +00:00
dependabot[bot] 43cc9c358f npm-dep: bump svelte from 5.48.0 to 5.48.2 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.48.0 to 5.48.2.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.48.2/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.48.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-26 10:36:20 +00:00
dependabot[bot] b533c1c9d4 npm-dep: bump @sveltejs/kit from 2.50.0 to 2.50.1 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.50.0 to 2.50.1.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.50.1/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.50.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-23 09:34:19 +00:00
dependabot[bot] 484a13f687 npm-dep: bump svelte from 5.47.1 to 5.48.0 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.47.1 to 5.48.0.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.48.0/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.48.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-22 09:37:02 +00:00
dependabot[bot] 758534bd65 npm-dep: bump @inlang/cli from 3.1.3 to 3.1.4 in /frontend
Bumps [@inlang/cli](https://github.com/opral/inlang) from 3.1.3 to 3.1.4.
- [Commits](https://github.com/opral/inlang/commits)

---
updated-dependencies:
- dependency-name: "@inlang/cli"
  dependency-version: 3.1.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-22 09:35:28 +00:00
dependabot[bot] 2bbaedf7f5 npm-dep: bump prettier from 3.8.0 to 3.8.1 in /frontend
Bumps [prettier](https://github.com/prettier/prettier) from 3.8.0 to 3.8.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.8.0...3.8.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-version: 3.8.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-22 09:33:57 +00:00
dependabot[bot] cb55969cc3 npm-dep: bump @inlang/paraglide-js from 2.9.0 to 2.9.1 in /frontend
Bumps [@inlang/paraglide-js](https://github.com/opral/paraglide-js) from 2.9.0 to 2.9.1.
- [Changelog](https://github.com/opral/paraglide-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opral/paraglide-js/commits)

---
updated-dependencies:
- dependency-name: "@inlang/paraglide-js"
  dependency-version: 2.9.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-21 09:34:02 +00:00
dependabot[bot] b239031834 npm-dep: bump cron-parser from 5.4.0 to 5.5.0 in /frontend
Bumps [cron-parser](https://github.com/harrisiirak/cron-parser) from 5.4.0 to 5.5.0.
- [Release notes](https://github.com/harrisiirak/cron-parser/releases)
- [Commits](https://github.com/harrisiirak/cron-parser/compare/v5.4.0...v5.5.0)

---
updated-dependencies:
- dependency-name: cron-parser
  dependency-version: 5.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-20 09:35:40 +00:00
dependabot[bot] a6402fc6c5 npm-dep: bump typescript-eslint from 8.53.0 to 8.53.1 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.53.0 to 8.53.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.53.1/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.53.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-20 09:34:16 +00:00
dependabot[bot] f52a9fe805 npm-dep: bump svelte from 5.46.4 to 5.47.1 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.46.4 to 5.47.1.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.47.1/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.47.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-20 09:34:05 +00:00
dependabot[bot] 14dc3072de npm-dep: bump @sveltejs/kit from 2.49.5 to 2.50.0 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.49.5 to 2.50.0.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.50.0/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.50.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-19 11:01:29 +00:00
dependabot[bot] 2db3082488 go-dep: bump github.com/pocketbase/pocketbase in /backend
Bumps [github.com/pocketbase/pocketbase](https://github.com/pocketbase/pocketbase) from 0.36.0 to 0.36.1.
- [Release notes](https://github.com/pocketbase/pocketbase/releases)
- [Changelog](https://github.com/pocketbase/pocketbase/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/pocketbase/compare/v0.36.0...v0.36.1)

---
updated-dependencies:
- dependency-name: github.com/pocketbase/pocketbase
  dependency-version: 0.36.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-19 11:01:07 +00:00
Maxi Quoß d71fd94abd fix: some tailwind class name warnings 2026-01-16 13:25:48 +01:00
Maxi Quoß 4ec5c7d1d5 fix: wrong gopher url on login page, close #1589 2026-01-16 13:22:54 +01:00
dependabot[bot] 33143a1de4 go-dep: bump github.com/pocketbase/pocketbase in /backend
Bumps [github.com/pocketbase/pocketbase](https://github.com/pocketbase/pocketbase) from 0.35.0 to 0.36.0.
- [Release notes](https://github.com/pocketbase/pocketbase/releases)
- [Changelog](https://github.com/pocketbase/pocketbase/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/pocketbase/compare/v0.35.0...v0.36.0)

---
updated-dependencies:
- dependency-name: github.com/pocketbase/pocketbase
  dependency-version: 0.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-16 09:33:35 +00:00
dependabot[bot] c759a14160 npm-dep: bump svelte from 5.46.3 to 5.46.4 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.46.3 to 5.46.4.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.46.4/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.46.4
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-15 20:18:48 +00:00
dependabot[bot] ec533cd47d npm-dep: bump @sveltejs/kit from 2.49.4 to 2.49.5 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.49.4 to 2.49.5.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.49.5/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.49.5
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-15 18:14:24 +00:00
dependabot[bot] ed7afbead1 npm-dep: bump @inlang/cli from 3.1.2 to 3.1.3 in /frontend
Bumps [@inlang/cli](https://github.com/opral/inlang) from 3.1.2 to 3.1.3.
- [Commits](https://github.com/opral/inlang/commits)

---
updated-dependencies:
- dependency-name: "@inlang/cli"
  dependency-version: 3.1.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-15 09:35:37 +00:00
dependabot[bot] c204c18be2 npm-dep: bump pocketbase from 0.26.5 to 0.26.6 in /frontend
Bumps [pocketbase](https://github.com/pocketbase/js-sdk) from 0.26.5 to 0.26.6.
- [Release notes](https://github.com/pocketbase/js-sdk/releases)
- [Changelog](https://github.com/pocketbase/js-sdk/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/js-sdk/compare/v0.26.5...v0.26.6)

---
updated-dependencies:
- dependency-name: pocketbase
  dependency-version: 0.26.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-15 09:34:40 +00:00
dependabot[bot] 05e266dc8d npm-dep: bump @inlang/paraglide-js from 2.8.0 to 2.9.0 in /frontend
Bumps [@inlang/paraglide-js](https://github.com/opral/paraglide-js) from 2.8.0 to 2.9.0.
- [Changelog](https://github.com/opral/paraglide-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opral/paraglide-js/commits)

---
updated-dependencies:
- dependency-name: "@inlang/paraglide-js"
  dependency-version: 2.9.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-15 09:34:15 +00:00
dependabot[bot] 88d1edb617 npm-dep: bump prettier from 3.7.4 to 3.8.0 in /frontend
Bumps [prettier](https://github.com/prettier/prettier) from 3.7.4 to 3.8.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.7.4...3.8.0)

---
updated-dependencies:
- dependency-name: prettier
  dependency-version: 3.8.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-15 09:34:00 +00:00
invario b50951bfa3 add clarity for UPSNAP_PING_PRIVILEGED setting (#1575)
Signed-off-by: invario <67800603+invario@users.noreply.github.com>
2026-01-13 13:57:34 +01:00
dependabot[bot] c57f12eb61 npm-dep: bump svelte from 5.46.1 to 5.46.3 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.46.1 to 5.46.3.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.46.3/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.46.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-13 09:37:53 +00:00
dependabot[bot] 4299799be5 npm-dep: bump typescript-eslint from 8.52.0 to 8.53.0 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.52.0 to 8.53.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.53.0/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.53.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-13 09:37:30 +00:00
dependabot[bot] 3e645d4d6a npm-dep: bump @inlang/cli from 3.0.12 to 3.1.2 in /frontend
Bumps [@inlang/cli](https://github.com/opral/inlang) from 3.0.12 to 3.1.2.
- [Commits](https://github.com/opral/inlang/commits)

---
updated-dependencies:
- dependency-name: "@inlang/cli"
  dependency-version: 3.1.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-12 11:26:40 +00:00
dependabot[bot] c0668bfb3b npm-dep: bump @inlang/paraglide-js from 2.7.2 to 2.8.0 in /frontend
Bumps [@inlang/paraglide-js](https://github.com/opral/paraglide-js) from 2.7.2 to 2.8.0.
- [Changelog](https://github.com/opral/paraglide-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opral/paraglide-js/commits)

---
updated-dependencies:
- dependency-name: "@inlang/paraglide-js"
  dependency-version: 2.8.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-12 11:25:25 +00:00
dependabot[bot] 02b4f2099b npm-dep: bump @sveltejs/kit from 2.49.3 to 2.49.4 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.49.3 to 2.49.4.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.49.4/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.49.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-09 09:55:37 +00:00
dependabot[bot] 7afdc41c17 go-dep: bump golang.org/x/sys from 0.39.0 to 0.40.0 in /backend
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.39.0 to 0.40.0.
- [Commits](https://github.com/golang/sys/compare/v0.39.0...v0.40.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-version: 0.40.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-09 09:55:20 +00:00
dependabot[bot] 04b3e27d8e npm-dep: bump eslint-plugin-svelte from 3.13.1 to 3.14.0 in /frontend
Bumps [eslint-plugin-svelte](https://github.com/sveltejs/eslint-plugin-svelte/tree/HEAD/packages/eslint-plugin-svelte) from 3.13.1 to 3.14.0.
- [Release notes](https://github.com/sveltejs/eslint-plugin-svelte/releases)
- [Changelog](https://github.com/sveltejs/eslint-plugin-svelte/blob/main/packages/eslint-plugin-svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/eslint-plugin-svelte/commits/eslint-plugin-svelte@3.14.0/packages/eslint-plugin-svelte)

---
updated-dependencies:
- dependency-name: eslint-plugin-svelte
  dependency-version: 3.14.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-08 09:33:40 +00:00
Maxi Quoß 7277f39f12 fix: listen on 0.0.0.0 by default, close #1570 2026-01-08 00:42:17 +01:00
Maxi Quoß 4bfc0576ee fix: remove test case 2026-01-07 15:51:35 +01:00
Maxi Quoß d18b54e7b6 fix: go tests 2026-01-07 15:48:28 +01:00
Maxi Quoß 212e1b6da6 Update go.sum 2026-01-07 15:43:34 +01:00
Maxi Quoß a85a7def6b update deps 2026-01-07 15:40:36 +01:00
Maxi Quoß 61da5f5bf6 feat: UPSNAP_HTTP_LISTEN: check for custom addr in go 2026-01-07 15:30:03 +01:00
xiagw c75679f238 fix: update HTTP_LISTEN configuration in Dockerfile and docker-compose.yml (#1563)
* fix: update HTTP_LISTEN configuration in Dockerfile and docker-compose.yml

* cleanup HTTP_LISTEN

---------

Co-authored-by: Maxi Quoß <maxi@quoss.org>
2026-01-07 15:08:16 +01:00
dependabot[bot] 8714f937d9 npm-dep: bump @inlang/paraglide-js from 2.7.1 to 2.7.2 in /frontend
Bumps [@inlang/paraglide-js](https://github.com/opral/paraglide-js) from 2.7.1 to 2.7.2.
- [Changelog](https://github.com/opral/paraglide-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opral/paraglide-js/commits)

---
updated-dependencies:
- dependency-name: "@inlang/paraglide-js"
  dependency-version: 2.7.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-07 09:09:59 +00:00
dependabot[bot] d1c6ee5b11 npm-dep: bump @sveltejs/kit from 2.49.2 to 2.49.3 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.49.2 to 2.49.3.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.49.3/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.49.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-06 09:11:55 +00:00
dependabot[bot] 341d6b712c npm-dep: bump typescript-eslint from 8.51.0 to 8.52.0 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.51.0 to 8.52.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.52.0/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.52.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-06 09:11:34 +00:00
dependabot[bot] dbcdd2b56f npm-dep: bump typescript-eslint from 8.50.1 to 8.51.0 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.50.1 to 8.51.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.51.0/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.51.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-30 09:08:51 +00:00
dependabot[bot] 3d68442ad6 npm-dep: bump @inlang/paraglide-js from 2.7.0 to 2.7.1 in /frontend
Bumps [@inlang/paraglide-js](https://github.com/opral/inlang-paraglide-js) from 2.7.0 to 2.7.1.
- [Changelog](https://github.com/opral/inlang-paraglide-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opral/inlang-paraglide-js/commits)

---
updated-dependencies:
- dependency-name: "@inlang/paraglide-js"
  dependency-version: 2.7.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-26 09:05:38 +00:00
Maxi Quoß dd9a00987c add sft to onlyBuiltDependencies 2025-12-25 10:15:52 +01:00
Maxi Quoß c7f15d3dcd pnpm update 2025-12-25 10:10:31 +01:00
Maxi Quoß 326cc1507c increase command input width 2025-12-25 10:06:24 +01:00
dependabot[bot] 1cbbe9b3d7 npm-dep: bump svelte-check from 4.3.4 to 4.3.5 in /frontend
Bumps [svelte-check](https://github.com/sveltejs/language-tools) from 4.3.4 to 4.3.5.
- [Release notes](https://github.com/sveltejs/language-tools/releases)
- [Commits](https://github.com/sveltejs/language-tools/compare/svelte-check@4.3.4...svelte-check@4.3.5)

---
updated-dependencies:
- dependency-name: svelte-check
  dependency-version: 4.3.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-24 09:08:52 +00:00
dependabot[bot] c2c7b3cbcc npm-dep: bump svelte from 5.46.0 to 5.46.1 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.46.0 to 5.46.1.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.46.1/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.46.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-24 09:07:14 +00:00
dependabot[bot] 258d4d6aa3 npm-dep: bump typescript-eslint from 8.50.0 to 8.50.1 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.50.0 to 8.50.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.50.1/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.50.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-23 09:07:12 +00:00
dependabot[bot] d3c0247abe go-dep: bump github.com/pocketbase/pocketbase in /backend
Bumps [github.com/pocketbase/pocketbase](https://github.com/pocketbase/pocketbase) from 0.34.2 to 0.35.0.
- [Release notes](https://github.com/pocketbase/pocketbase/releases)
- [Changelog](https://github.com/pocketbase/pocketbase/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/pocketbase/compare/v0.34.2...v0.35.0)

---
updated-dependencies:
- dependency-name: github.com/pocketbase/pocketbase
  dependency-version: 0.35.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-22 09:06:50 +00:00
dependabot[bot] d3a4b7c6c3 gh-action: bump actions/upload-artifact from 5 to 6 (#1547)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-18 22:13:09 +01:00
dependabot[bot] 76cf5fb028 npm-dep: bump typescript-eslint from 8.49.0 to 8.50.0 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.49.0 to 8.50.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.50.0/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.50.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-16 09:07:45 +00:00
dependabot[bot] aba6615adc npm-dep: bump prettier-plugin-svelte from 3.4.0 to 3.4.1 in /frontend
Bumps [prettier-plugin-svelte](https://github.com/sveltejs/prettier-plugin-svelte) from 3.4.0 to 3.4.1.
- [Changelog](https://github.com/sveltejs/prettier-plugin-svelte/blob/v3.4.1/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/prettier-plugin-svelte/commits/v3.4.1)

---
updated-dependencies:
- dependency-name: prettier-plugin-svelte
  dependency-version: 3.4.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-15 09:11:01 +00:00
dependabot[bot] 9f75e42a02 npm-dep: bump svelte from 5.45.10 to 5.46.0 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.45.10 to 5.46.0.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.46.0/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.46.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-15 09:09:24 +00:00
dependabot[bot] 3484bddb92 npm-dep: bump daisyui from 5.5.13 to 5.5.14 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.5.13 to 5.5.14.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.5.14/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.5.14
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-15 09:08:35 +00:00
dependabot[bot] 3c9e3e129a npm-dep: bump @eslint/js from 9.39.1 to 9.39.2 in /frontend
Bumps [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js) from 9.39.1 to 9.39.2.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/commits/v9.39.2/packages/js)

---
updated-dependencies:
- dependency-name: "@eslint/js"
  dependency-version: 9.39.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-15 09:07:55 +00:00
dependabot[bot] 6465130d6b gh-action: bump actions/download-artifact from 6 to 7
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 6 to 7.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-15 09:07:39 +00:00
dependabot[bot] 609b5e2671 npm-dep: bump eslint from 9.39.1 to 9.39.2 in /frontend
Bumps [eslint](https://github.com/eslint/eslint) from 9.39.1 to 9.39.2.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/compare/v9.39.1...v9.39.2)

---
updated-dependencies:
- dependency-name: eslint
  dependency-version: 9.39.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-15 09:07:15 +00:00
dependabot[bot] 2a738cda87 npm-dep: bump @tailwindcss/postcss from 4.1.17 to 4.1.18 in /frontend
Bumps [@tailwindcss/postcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/@tailwindcss-postcss) from 4.1.17 to 4.1.18.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.1.18/packages/@tailwindcss-postcss)

---
updated-dependencies:
- dependency-name: "@tailwindcss/postcss"
  dependency-version: 4.1.18
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-12 09:09:50 +00:00
dependabot[bot] 4f6a9020a4 gh-action: bump actions/cache from 4 to 5
Bumps [actions/cache](https://github.com/actions/cache) from 4 to 5.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-12 09:09:04 +00:00
dependabot[bot] 0f290f8572 npm-dep: bump @inlang/paraglide-js from 2.6.0 to 2.7.0 in /frontend
Bumps [@inlang/paraglide-js](https://github.com/opral/inlang-paraglide-js) from 2.6.0 to 2.7.0.
- [Changelog](https://github.com/opral/inlang-paraglide-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opral/inlang-paraglide-js/commits)

---
updated-dependencies:
- dependency-name: "@inlang/paraglide-js"
  dependency-version: 2.7.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-12 09:08:43 +00:00
dependabot[bot] d1715b5d18 npm-dep: bump daisyui from 5.5.11 to 5.5.13 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.5.11 to 5.5.13.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.5.13/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.5.13
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-12 09:08:25 +00:00
dependabot[bot] 98081bde9e npm-dep: bump tailwindcss from 4.1.17 to 4.1.18 in /frontend
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/tailwindcss) from 4.1.17 to 4.1.18.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.1.18/packages/tailwindcss)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-version: 4.1.18
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-12 09:08:16 +00:00
dependabot[bot] 51498f7ea0 npm-dep: bump svelte from 5.45.8 to 5.45.10 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.45.8 to 5.45.10.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.45.10/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.45.10
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-12 09:07:45 +00:00
dependabot[bot] af28d0b0f9 npm-dep: bump daisyui from 5.5.8 to 5.5.11 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.5.8 to 5.5.11.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.5.11/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.5.11
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-10 09:07:07 +00:00
dependabot[bot] d6e47b1264 npm-dep: bump @sveltejs/kit from 2.49.1 to 2.49.2 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.49.1 to 2.49.2.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.49.2/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.49.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-09 09:09:09 +00:00
dependabot[bot] 3d3a536752 npm-dep: bump typescript-eslint from 8.48.1 to 8.49.0 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.48.1 to 8.49.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.49.0/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.49.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-09 09:07:50 +00:00
dependabot[bot] 17736369d3 npm-dep: bump svelte from 5.45.6 to 5.45.8 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.45.6 to 5.45.8.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.45.8/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.45.8
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-09 09:07:37 +00:00
dependabot[bot] c670ff9099 npm-dep: bump svelte from 5.45.5 to 5.45.6 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.45.5 to 5.45.6.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.45.6/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.45.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-08 09:09:13 +00:00
dependabot[bot] 5b6dfffc22 npm-dep: bump @inlang/paraglide-js from 2.5.0 to 2.6.0 in /frontend
Bumps [@inlang/paraglide-js](https://github.com/opral/inlang-paraglide-js) from 2.5.0 to 2.6.0.
- [Changelog](https://github.com/opral/inlang-paraglide-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opral/inlang-paraglide-js/commits)

---
updated-dependencies:
- dependency-name: "@inlang/paraglide-js"
  dependency-version: 2.6.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-08 09:07:37 +00:00
dependabot[bot] 28d2db9b5e npm-dep: bump eslint-plugin-svelte from 3.13.0 to 3.13.1 in /frontend
Bumps [eslint-plugin-svelte](https://github.com/sveltejs/eslint-plugin-svelte/tree/HEAD/packages/eslint-plugin-svelte) from 3.13.0 to 3.13.1.
- [Release notes](https://github.com/sveltejs/eslint-plugin-svelte/releases)
- [Changelog](https://github.com/sveltejs/eslint-plugin-svelte/blob/main/packages/eslint-plugin-svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/eslint-plugin-svelte/commits/eslint-plugin-svelte@3.13.1/packages/eslint-plugin-svelte)

---
updated-dependencies:
- dependency-name: eslint-plugin-svelte
  dependency-version: 3.13.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-08 09:07:02 +00:00
dependabot[bot] 1a8ee6bb07 npm-dep: bump pocketbase from 0.26.4 to 0.26.5 in /frontend
Bumps [pocketbase](https://github.com/pocketbase/js-sdk) from 0.26.4 to 0.26.5.
- [Release notes](https://github.com/pocketbase/js-sdk/releases)
- [Changelog](https://github.com/pocketbase/js-sdk/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/js-sdk/compare/v0.26.4...v0.26.5)

---
updated-dependencies:
- dependency-name: pocketbase
  dependency-version: 0.26.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-08 09:06:48 +00:00
dependabot[bot] 451dc1d566 go-dep: bump github.com/pocketbase/pocketbase in /backend
Bumps [github.com/pocketbase/pocketbase](https://github.com/pocketbase/pocketbase) from 0.34.1 to 0.34.2.
- [Release notes](https://github.com/pocketbase/pocketbase/releases)
- [Changelog](https://github.com/pocketbase/pocketbase/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/pocketbase/compare/v0.34.1...v0.34.2)

---
updated-dependencies:
- dependency-name: github.com/pocketbase/pocketbase
  dependency-version: 0.34.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-05 09:06:10 +00:00
dependabot[bot] 178f34bfdc npm-dep: bump svelte from 5.45.4 to 5.45.5 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.45.4 to 5.45.5.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.45.5/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.45.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-04 09:08:41 +00:00
dependabot[bot] 636da1998a npm-dep: bump daisyui from 5.5.5 to 5.5.8 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.5.5 to 5.5.8.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.5.8/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.5.8
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-04 09:08:28 +00:00
dependabot[bot] 3c48888964 npm-dep: bump @sveltejs/kit from 2.49.0 to 2.49.1 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.49.0 to 2.49.1.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.49.1/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.49.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-03 09:13:32 +00:00
dependabot[bot] ed6062e8db npm-dep: bump svelte from 5.45.2 to 5.45.4 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.45.2 to 5.45.4.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.45.4/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.45.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-03 09:12:01 +00:00
dependabot[bot] 12b294a900 npm-dep: bump prettier-plugin-tailwindcss in /frontend
Bumps [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) from 0.7.1 to 0.7.2.
- [Release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/compare/v0.7.1...v0.7.2)

---
updated-dependencies:
- dependency-name: prettier-plugin-tailwindcss
  dependency-version: 0.7.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-03 09:10:30 +00:00
dependabot[bot] cc4bae80ae go-dep: bump github.com/pocketbase/pocketbase in /backend
Bumps [github.com/pocketbase/pocketbase](https://github.com/pocketbase/pocketbase) from 0.34.0 to 0.34.1.
- [Release notes](https://github.com/pocketbase/pocketbase/releases)
- [Changelog](https://github.com/pocketbase/pocketbase/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/pocketbase/compare/v0.34.0...v0.34.1)

---
updated-dependencies:
- dependency-name: github.com/pocketbase/pocketbase
  dependency-version: 0.34.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-03 09:09:18 +00:00
dependabot[bot] c6983d8ca3 npm-dep: bump pocketbase from 0.26.3 to 0.26.4 in /frontend
Bumps [pocketbase](https://github.com/pocketbase/js-sdk) from 0.26.3 to 0.26.4.
- [Release notes](https://github.com/pocketbase/js-sdk/releases)
- [Changelog](https://github.com/pocketbase/js-sdk/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/js-sdk/compare/v0.26.3...v0.26.4)

---
updated-dependencies:
- dependency-name: pocketbase
  dependency-version: 0.26.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-03 09:08:55 +00:00
dependabot[bot] 846a530212 npm-dep: bump prettier from 3.7.3 to 3.7.4 in /frontend
Bumps [prettier](https://github.com/prettier/prettier) from 3.7.3 to 3.7.4.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.7.3...3.7.4)

---
updated-dependencies:
- dependency-name: prettier
  dependency-version: 3.7.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-03 09:08:38 +00:00
dependabot[bot] bc27081b94 npm-dep: bump prettier from 3.7.1 to 3.7.3 in /frontend
Bumps [prettier](https://github.com/prettier/prettier) from 3.7.1 to 3.7.3.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.7.1...3.7.3)

---
updated-dependencies:
- dependency-name: prettier
  dependency-version: 3.7.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-02 09:07:37 +00:00
dependabot[bot] c72d63e01c npm-dep: bump typescript-eslint from 8.48.0 to 8.48.1 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.48.0 to 8.48.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.48.1/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.48.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-02 09:07:22 +00:00
dependabot[bot] c775ca2949 npm-dep: bump svelte from 5.44.1 to 5.45.2 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.44.1 to 5.45.2.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.45.2/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.45.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-28 09:09:49 +00:00
dependabot[bot] 7d6d60a227 npm-dep: bump prettier from 3.7.0 to 3.7.1 in /frontend
Bumps [prettier](https://github.com/prettier/prettier) from 3.7.0 to 3.7.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.7.0...3.7.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-version: 3.7.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-28 09:08:19 +00:00
dependabot[bot] 9300d66b78 npm-dep: bump prettier from 3.6.2 to 3.7.0 in /frontend
Bumps [prettier](https://github.com/prettier/prettier) from 3.6.2 to 3.7.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.6.2...3.7.0)

---
updated-dependencies:
- dependency-name: prettier
  dependency-version: 3.7.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-27 09:07:55 +00:00
dependabot[bot] e94c1012ae npm-dep: bump svelte from 5.43.14 to 5.44.1 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.43.14 to 5.44.1.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.44.1/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.44.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-26 09:07:12 +00:00
dependabot[bot] b29ad9ba1b npm-dep: bump typescript-eslint from 8.47.0 to 8.48.0 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.47.0 to 8.48.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.48.0/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.48.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-25 09:09:15 +00:00
dependabot[bot] 4583e8ae3b go-dep: bump github.com/pocketbase/pocketbase in /backend
Bumps [github.com/pocketbase/pocketbase](https://github.com/pocketbase/pocketbase) from 0.33.0 to 0.34.0.
- [Release notes](https://github.com/pocketbase/pocketbase/releases)
- [Changelog](https://github.com/pocketbase/pocketbase/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/pocketbase/compare/v0.33.0...v0.34.0)

---
updated-dependencies:
- dependency-name: github.com/pocketbase/pocketbase
  dependency-version: 0.34.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-24 09:19:36 +00:00
Maxi Quoß 6ce4dbe76f go-dep: update 2025-11-21 11:18:49 +01:00
Maxi Quoß 8a0c2ea29a npm-dep: update 2025-11-21 11:16:50 +01:00
Pavel Pikta 747859d05b feat: add crossorigin attribute to manifest link (#1503)
Signed-off-by: Pavel Pikta <pavel_pikta@epam.com>
2025-11-21 11:14:02 +01:00
dependabot[bot] a5a22c4020 gh-action: bump actions/checkout from 5 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-21 09:07:32 +00:00
dependabot[bot] 5cbda84c37 npm-dep: bump @sveltejs/kit from 2.48.5 to 2.49.0 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.48.5 to 2.49.0.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.49.0/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.49.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-21 09:07:19 +00:00
dependabot[bot] 26e573a0f5 go-dep: bump golang.org/x/crypto from 0.44.0 to 0.45.0 in /backend
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.44.0 to 0.45.0.
- [Commits](https://github.com/golang/crypto/compare/v0.44.0...v0.45.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.45.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-20 02:57:41 +00:00
dependabot[bot] 6357ada980 npm-dep: bump svelte from 5.43.10 to 5.43.12 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.43.10 to 5.43.12.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.43.12/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.43.12
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-19 09:07:33 +00:00
dependabot[bot] 309813bdff npm-dep: bump @sveltejs/kit from 2.48.4 to 2.48.5 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.48.4 to 2.48.5.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.48.5/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.48.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-18 09:11:29 +00:00
dependabot[bot] fcb5e037ac npm-dep: bump daisyui from 5.5.0 to 5.5.5 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.5.0 to 5.5.5.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.5.5/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.5.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-18 09:10:08 +00:00
dependabot[bot] 88db4cf158 npm-dep: bump typescript-eslint from 8.46.4 to 8.47.0 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.46.4 to 8.47.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.47.0/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.47.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-18 09:09:31 +00:00
dependabot[bot] fc4807b7f3 npm-dep: bump svelte from 5.43.6 to 5.43.10 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.43.6 to 5.43.10.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.43.10/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.43.10
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-18 09:09:17 +00:00
dependabot[bot] 83ae5141bc go-dep: bump github.com/pocketbase/pocketbase in /backend
Bumps [github.com/pocketbase/pocketbase](https://github.com/pocketbase/pocketbase) from 0.32.0 to 0.33.0.
- [Release notes](https://github.com/pocketbase/pocketbase/releases)
- [Changelog](https://github.com/pocketbase/pocketbase/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/pocketbase/compare/v0.32.0...v0.33.0)

---
updated-dependencies:
- dependency-name: github.com/pocketbase/pocketbase
  dependency-version: 0.33.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-14 09:08:12 +00:00
dependabot[bot] 153fe53ac6 npm-dep: bump @inlang/paraglide-js from 2.4.0 to 2.5.0 in /frontend
Bumps [@inlang/paraglide-js](https://github.com/opral/inlang-paraglide-js) from 2.4.0 to 2.5.0.
- [Commits](https://github.com/opral/inlang-paraglide-js/commits)

---
updated-dependencies:
- dependency-name: "@inlang/paraglide-js"
  dependency-version: 2.5.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-14 09:07:57 +00:00
dependabot[bot] 4ded3eb8ab npm-dep: bump daisyui from 5.4.7 to 5.5.0 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.4.7 to 5.5.0.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.5.0/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.5.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-12 09:08:02 +00:00
dependabot[bot] 1b030fb2a0 npm-dep: bump svelte-check from 4.3.3 to 4.3.4 in /frontend
Bumps [svelte-check](https://github.com/sveltejs/language-tools) from 4.3.3 to 4.3.4.
- [Release notes](https://github.com/sveltejs/language-tools/releases)
- [Commits](https://github.com/sveltejs/language-tools/compare/svelte-check@4.3.3...svelte-check@4.3.4)

---
updated-dependencies:
- dependency-name: svelte-check
  dependency-version: 4.3.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-12 09:07:39 +00:00
dependabot[bot] 731266a72a npm-dep: bump typescript-eslint from 8.46.3 to 8.46.4 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.46.3 to 8.46.4.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.46.4/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.46.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-11 09:09:16 +00:00
dependabot[bot] 0813faa233 npm-dep: bump svelte from 5.43.5 to 5.43.6 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.43.5 to 5.43.6.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.43.6/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.43.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-11 09:08:51 +00:00
dependabot[bot] 1b684936d5 go-dep: bump github.com/pocketbase/pocketbase in /backend
Bumps [github.com/pocketbase/pocketbase](https://github.com/pocketbase/pocketbase) from 0.31.0 to 0.32.0.
- [Release notes](https://github.com/pocketbase/pocketbase/releases)
- [Changelog](https://github.com/pocketbase/pocketbase/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/pocketbase/compare/v0.31.0...v0.32.0)

---
updated-dependencies:
- dependency-name: github.com/pocketbase/pocketbase
  dependency-version: 0.32.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-10 09:54:30 +00:00
dependabot[bot] 057f5e4770 go-dep: bump golang.org/x/sys from 0.37.0 to 0.38.0 in /backend
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.37.0 to 0.38.0.
- [Commits](https://github.com/golang/sys/compare/v0.37.0...v0.38.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-version: 0.38.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-10 09:54:22 +00:00
dependabot[bot] 583f031748 npm-dep: bump svelte from 5.43.4 to 5.43.5 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.43.4 to 5.43.5.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.43.5/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.43.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-10 09:20:00 +00:00
dependabot[bot] 5157ff4f48 gh-action: bump actions/download-artifact from 5 to 6 (#1462)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-09 21:40:07 +01:00
dependabot[bot] ddd52f2ac0 npm-dep: bump @tailwindcss/postcss from 4.1.16 to 4.1.17 in /frontend
Bumps [@tailwindcss/postcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/@tailwindcss-postcss) from 4.1.16 to 4.1.17.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.1.17/packages/@tailwindcss-postcss)

---
updated-dependencies:
- dependency-name: "@tailwindcss/postcss"
  dependency-version: 4.1.17
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-07 09:07:55 +00:00
dependabot[bot] 284c6a83b6 npm-dep: bump tailwindcss from 4.1.16 to 4.1.17 in /frontend
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/tailwindcss) from 4.1.16 to 4.1.17.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.1.17/packages/tailwindcss)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-version: 4.1.17
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-07 09:07:42 +00:00
dependabot[bot] 385ca62eb3 npm-dep: bump daisyui from 5.4.5 to 5.4.7 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.4.5 to 5.4.7.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.4.7/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.4.7
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-07 09:07:28 +00:00
dependabot[bot] c273370819 npm-dep: bump svelte from 5.43.3 to 5.43.4 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.43.3 to 5.43.4.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.43.4/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.43.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-07 09:07:14 +00:00
dependabot[bot] 78cad054e6 npm-dep: bump daisyui from 5.4.4 to 5.4.5 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.4.4 to 5.4.5.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.4.5/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.4.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-06 09:09:13 +00:00
dependabot[bot] aa3574281b npm-dep: bump daisyui from 5.4.3 to 5.4.4 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.4.3 to 5.4.4.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.4.4/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.4.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-05 09:06:48 +00:00
dependabot[bot] 387ff4c4c2 npm-dep: bump svelte from 5.43.2 to 5.43.3 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.43.2 to 5.43.3.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.43.3/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.43.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-04 09:12:38 +00:00
dependabot[bot] 9e6ecf1ed3 npm-dep: bump typescript-eslint from 8.46.2 to 8.46.3 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.46.2 to 8.46.3.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.46.3/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.46.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-04 09:11:01 +00:00
dependabot[bot] 633b08f096 npm-dep: bump daisyui from 5.3.10 to 5.4.3 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.3.10 to 5.4.3.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.4.3/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.4.3
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-04 09:10:49 +00:00
dependabot[bot] 4d20cc8ab3 npm-dep: bump @eslint/js from 9.38.0 to 9.39.1 in /frontend
Bumps [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js) from 9.38.0 to 9.39.1.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/commits/v9.39.1/packages/js)

---
updated-dependencies:
- dependency-name: "@eslint/js"
  dependency-version: 9.39.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-04 09:09:15 +00:00
dependabot[bot] 0cf7ee5b81 npm-dep: bump eslint from 9.38.0 to 9.39.1 in /frontend
Bumps [eslint](https://github.com/eslint/eslint) from 9.38.0 to 9.39.1.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/compare/v9.38.0...v9.39.1)

---
updated-dependencies:
- dependency-name: eslint
  dependency-version: 9.39.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-04 09:08:32 +00:00
dependabot[bot] fe67763712 npm-dep: bump globals from 16.4.0 to 16.5.0 in /frontend
Bumps [globals](https://github.com/sindresorhus/globals) from 16.4.0 to 16.5.0.
- [Release notes](https://github.com/sindresorhus/globals/releases)
- [Commits](https://github.com/sindresorhus/globals/compare/v16.4.0...v16.5.0)

---
updated-dependencies:
- dependency-name: globals
  dependency-version: 16.5.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-04 09:08:18 +00:00
dependabot[bot] 5f1f7c528e npm-dep: bump svelte from 5.43.0 to 5.43.2 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.43.0 to 5.43.2.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.43.2/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.43.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-31 09:08:42 +00:00
dependabot[bot] 30c7daddf1 npm-dep: bump @sveltejs/kit from 2.48.3 to 2.48.4 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.48.3 to 2.48.4.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.48.4/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.48.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-31 09:06:49 +00:00
dependabot[bot] 84678ed835 npm-dep: bump svelte from 5.42.3 to 5.43.0 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.42.3 to 5.43.0.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.43.0/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.43.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-30 09:10:20 +00:00
dependabot[bot] 489a309bd3 npm-dep: bump @eslint/compat from 1.4.0 to 1.4.1 in /frontend
Bumps [@eslint/compat](https://github.com/eslint/rewrite/tree/HEAD/packages/compat) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/eslint/rewrite/releases)
- [Changelog](https://github.com/eslint/rewrite/blob/main/packages/compat/CHANGELOG.md)
- [Commits](https://github.com/eslint/rewrite/commits/compat-v1.4.1/packages/compat)

---
updated-dependencies:
- dependency-name: "@eslint/compat"
  dependency-version: 1.4.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-30 09:09:16 +00:00
dependabot[bot] 453a352bc2 npm-dep: bump eslint-plugin-svelte from 3.12.5 to 3.13.0 in /frontend
Bumps [eslint-plugin-svelte](https://github.com/sveltejs/eslint-plugin-svelte/tree/HEAD/packages/eslint-plugin-svelte) from 3.12.5 to 3.13.0.
- [Release notes](https://github.com/sveltejs/eslint-plugin-svelte/releases)
- [Changelog](https://github.com/sveltejs/eslint-plugin-svelte/blob/main/packages/eslint-plugin-svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/eslint-plugin-svelte/commits/eslint-plugin-svelte@3.13.0/packages/eslint-plugin-svelte)

---
updated-dependencies:
- dependency-name: eslint-plugin-svelte
  dependency-version: 3.13.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-30 09:08:51 +00:00
dependabot[bot] 2c4a67413d npm-dep: bump @sveltejs/kit from 2.48.0 to 2.48.3 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.48.0 to 2.48.3.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.48.3/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.48.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-29 09:08:31 +00:00
dependabot[bot] 934d9556d0 npm-dep: bump svelte from 5.41.3 to 5.42.3 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.41.3 to 5.42.3.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.42.3/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.42.3
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-28 09:09:07 +00:00
dependabot[bot] 61f4616157 npm-dep: bump daisyui from 5.3.8 to 5.3.10 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.3.8 to 5.3.10.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.3.10/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.3.10
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-27 09:39:32 +00:00
dependabot[bot] f20093aaae gh-action: bump actions/upload-artifact from 4 to 5
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-27 09:31:18 +00:00
dependabot[bot] 97fdaa3fbb npm-dep: bump pocketbase from 0.26.2 to 0.26.3 in /frontend
Bumps [pocketbase](https://github.com/pocketbase/js-sdk) from 0.26.2 to 0.26.3.
- [Release notes](https://github.com/pocketbase/js-sdk/releases)
- [Changelog](https://github.com/pocketbase/js-sdk/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/js-sdk/compare/v0.26.2...v0.26.3)

---
updated-dependencies:
- dependency-name: pocketbase
  dependency-version: 0.26.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-27 09:26:33 +00:00
dependabot[bot] 5bd66ff6f2 npm-dep: bump @sveltejs/kit from 2.47.3 to 2.48.0 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.47.3 to 2.48.0.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.48.0/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.48.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-27 09:23:37 +00:00
dependabot[bot] 5f51ba02e9 go-dep: bump github.com/pocketbase/pocketbase in /backend
Bumps [github.com/pocketbase/pocketbase](https://github.com/pocketbase/pocketbase) from 0.30.4 to 0.31.0.
- [Release notes](https://github.com/pocketbase/pocketbase/releases)
- [Changelog](https://github.com/pocketbase/pocketbase/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/pocketbase/compare/v0.30.4...v0.31.0)

---
updated-dependencies:
- dependency-name: github.com/pocketbase/pocketbase
  dependency-version: 0.31.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-24 09:08:44 +00:00
dependabot[bot] 12ff07d022 npm-dep: bump svelte from 5.41.2 to 5.41.3 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.41.2 to 5.41.3.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.41.3/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.41.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-24 07:28:27 +00:00
dependabot[bot] 63417cbf01 npm-dep: bump tailwindcss from 4.1.15 to 4.1.16 in /frontend
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/tailwindcss) from 4.1.15 to 4.1.16.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.1.16/packages/tailwindcss)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-version: 4.1.16
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-24 07:28:03 +00:00
dependabot[bot] 354915eff2 npm-dep: bump @tailwindcss/postcss from 4.1.15 to 4.1.16 in /frontend
Bumps [@tailwindcss/postcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/@tailwindcss-postcss) from 4.1.15 to 4.1.16.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.1.16/packages/@tailwindcss-postcss)

---
updated-dependencies:
- dependency-name: "@tailwindcss/postcss"
  dependency-version: 4.1.16
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-24 07:27:51 +00:00
dependabot[bot] 85b37bf623 npm-dep: bump svelte from 5.41.1 to 5.41.2 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.41.1 to 5.41.2.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.41.2/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.41.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-23 09:10:41 +00:00
dependabot[bot] b98ce71293 npm-dep: bump @sveltejs/kit from 2.47.2 to 2.47.3 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.47.2 to 2.47.3.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.47.3/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.47.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-23 09:08:57 +00:00
dependabot[bot] 0ef1f5144d npm-dep: bump daisyui from 5.3.7 to 5.3.8 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.3.7 to 5.3.8.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.3.8/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.3.8
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-23 09:08:32 +00:00
dependabot[bot] b82614a759 npm-dep: bump svelte from 5.41.0 to 5.41.1 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.41.0 to 5.41.1.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.41.1/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.41.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-21 09:11:51 +00:00
dependabot[bot] 1accda28f7 npm-dep: bump vite from 6.4.0 to 6.4.1 in /frontend
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/create-vite@6.4.1/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 6.4.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-21 09:10:40 +00:00
dependabot[bot] a2e1c810a1 npm-dep: bump @tailwindcss/postcss from 4.1.14 to 4.1.15 in /frontend
Bumps [@tailwindcss/postcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/@tailwindcss-postcss) from 4.1.14 to 4.1.15.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.1.15/packages/@tailwindcss-postcss)

---
updated-dependencies:
- dependency-name: "@tailwindcss/postcss"
  dependency-version: 4.1.15
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-21 09:09:39 +00:00
dependabot[bot] d223200ac4 npm-dep: bump typescript-eslint from 8.46.1 to 8.46.2 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.46.1 to 8.46.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.46.2/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.46.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-21 09:08:02 +00:00
dependabot[bot] 702d03bfcd npm-dep: bump tailwindcss from 4.1.14 to 4.1.15 in /frontend
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/tailwindcss) from 4.1.14 to 4.1.15.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.1.15/packages/tailwindcss)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-version: 4.1.15
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-21 09:07:38 +00:00
dependabot[bot] 9c6213acdc npm-dep: bump @sveltejs/kit from 2.47.1 to 2.47.2 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.47.1 to 2.47.2.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.47.2/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.47.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-20 09:24:00 +00:00
Maxi Quoß c736561fab feat: add ip and mac variables to wake/shutdown commands 2025-10-19 22:42:27 +02:00
dependabot[bot] 9e8983d961 gh-action: bump actions/setup-node from 5 to 6 (#1430)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 5 to 6.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-19 22:26:42 +02:00
Roman Ondráček 99a13af022 feat: add Czech (cs-CZ) language (#1427)
Signed-off-by: Roman Ondráček <mail@romanondracek.cz>
2025-10-19 22:24:39 +02:00
Maxi Quoß 345a8c56e7 update deps 2025-10-19 22:21:36 +02:00
dependabot[bot] f0edf53a68 npm-dep: bump daisyui from 5.3.3 to 5.3.7 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.3.3 to 5.3.7.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.3.7/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.3.7
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-17 09:08:38 +00:00
dependabot[bot] ff36399ce4 npm-dep: bump @sveltejs/kit from 2.47.0 to 2.47.1 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.47.0 to 2.47.1.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.47.1/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.47.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-17 09:08:23 +00:00
dependabot[bot] bbbaadac62 npm-dep: bump @sveltejs/kit from 2.46.5 to 2.47.0 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.46.5 to 2.47.0.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.47.0/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.47.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-16 09:11:50 +00:00
dependabot[bot] 862741787d npm-dep: bump vite from 6.3.7 to 6.4.0 in /frontend
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.3.7 to 6.4.0.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/create-vite@6.4.0/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 6.4.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-16 09:10:01 +00:00
dependabot[bot] 78060b72dd npm-dep: bump daisyui from 5.3.2 to 5.3.3 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.3.2 to 5.3.3.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.3.3/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.3.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-16 09:08:29 +00:00
dependabot[bot] 08879bb179 go-dep: bump github.com/pocketbase/pocketbase in /backend
Bumps [github.com/pocketbase/pocketbase](https://github.com/pocketbase/pocketbase) from 0.30.2 to 0.30.3.
- [Release notes](https://github.com/pocketbase/pocketbase/releases)
- [Changelog](https://github.com/pocketbase/pocketbase/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/pocketbase/compare/v0.30.2...v0.30.3)

---
updated-dependencies:
- dependency-name: github.com/pocketbase/pocketbase
  dependency-version: 0.30.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-16 09:08:18 +00:00
dependabot[bot] 9fcede20c1 npm-dep: bump svelte from 5.40.0 to 5.40.1 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.40.0 to 5.40.1.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.40.1/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.40.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-16 09:08:01 +00:00
dependabot[bot] 3acac952c1 npm-dep: bump svelte from 5.39.12 to 5.40.0 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.39.12 to 5.40.0.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.40.0/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.40.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-15 09:10:32 +00:00
dependabot[bot] f85f1e181d npm-dep: bump prettier-plugin-tailwindcss in /frontend
Bumps [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) from 0.6.14 to 0.7.0.
- [Release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/compare/v0.6.14...v0.7.0)

---
updated-dependencies:
- dependency-name: prettier-plugin-tailwindcss
  dependency-version: 0.7.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-15 09:08:44 +00:00
dependabot[bot] 43fad60b15 npm-dep: bump daisyui from 5.3.0 to 5.3.2 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.3.0 to 5.3.2.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.3.2/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.3.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-15 09:08:35 +00:00
dependabot[bot] 50a4da0516 npm-dep: bump vite from 6.3.6 to 6.3.7 in /frontend
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.3.6 to 6.3.7.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v6.3.7/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.3.7/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 6.3.7
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-15 09:07:59 +00:00
dependabot[bot] d951c9a4d6 npm-dep: bump typescript-eslint from 8.46.0 to 8.46.1 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.46.0 to 8.46.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.46.1/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.46.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-14 09:09:39 +00:00
dependabot[bot] 6ae38f578f npm-dep: bump daisyui from 5.2.3 to 5.3.0 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.2.3 to 5.3.0.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.3.0/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-14 09:09:25 +00:00
dependabot[bot] ddab4a7db0 npm-dep: bump svelte from 5.39.11 to 5.39.12 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.39.11 to 5.39.12.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.39.12/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.39.12
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-14 09:09:05 +00:00
dependabot[bot] 29c5850327 npm-dep: bump daisyui from 5.1.30 to 5.2.3 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.1.30 to 5.2.3.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.2.3/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.2.3
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-13 09:29:32 +00:00
dependabot[bot] 23e9206080 npm-dep: bump @sveltejs/kit from 2.46.4 to 2.46.5 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.46.4 to 2.46.5.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.46.5/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.46.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-13 09:27:31 +00:00
dependabot[bot] 281aff7760 npm-dep: bump svelte-check from 4.3.2 to 4.3.3 in /frontend
Bumps [svelte-check](https://github.com/sveltejs/language-tools) from 4.3.2 to 4.3.3.
- [Release notes](https://github.com/sveltejs/language-tools/releases)
- [Commits](https://github.com/sveltejs/language-tools/compare/svelte-check@4.3.2...svelte-check@4.3.3)

---
updated-dependencies:
- dependency-name: svelte-check
  dependency-version: 4.3.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-10 09:11:17 +00:00
dependabot[bot] 9a3c7d1611 npm-dep: bump svelte from 5.39.10 to 5.39.11 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.39.10 to 5.39.11.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.39.11/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.39.11
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-10 09:09:38 +00:00
dependabot[bot] ebe8aa67f2 npm-dep: bump daisyui from 5.1.29 to 5.1.30 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.1.29 to 5.1.30.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.1.30/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.1.30
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-10 09:07:52 +00:00
dependabot[bot] 8b34ef8828 go-dep: bump golang.org/x/sys from 0.36.0 to 0.37.0 in /backend
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.36.0 to 0.37.0.
- [Commits](https://github.com/golang/sys/compare/v0.36.0...v0.37.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-version: 0.37.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-09 09:20:14 +00:00
dependabot[bot] c0d655f1c4 go-dep: bump github.com/pocketbase/pocketbase in /backend
Bumps [github.com/pocketbase/pocketbase](https://github.com/pocketbase/pocketbase) from 0.30.1 to 0.30.2.
- [Release notes](https://github.com/pocketbase/pocketbase/releases)
- [Changelog](https://github.com/pocketbase/pocketbase/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/pocketbase/compare/v0.30.1...v0.30.2)

---
updated-dependencies:
- dependency-name: github.com/pocketbase/pocketbase
  dependency-version: 0.30.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-09 09:18:50 +00:00
dependabot[bot] 264356a298 npm-dep: bump @sveltejs/kit from 2.46.2 to 2.46.4 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.46.2 to 2.46.4.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.46.4/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.46.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-09 09:18:23 +00:00
dependabot[bot] 57c5591e85 npm-dep: bump svelte from 5.39.9 to 5.39.10 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.39.9 to 5.39.10.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.39.10/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.39.10
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-08 09:10:05 +00:00
dependabot[bot] 090b153381 npm-dep: bump daisyui from 5.1.27 to 5.1.29 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.1.27 to 5.1.29.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.1.29/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.1.29
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-08 09:08:06 +00:00
dependabot[bot] 413c667d2a npm-dep: bump @sveltejs/kit from 2.45.0 to 2.46.2 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.45.0 to 2.46.2.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.46.2/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.46.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-08 09:07:37 +00:00
dependabot[bot] 51e375f2a0 npm-dep: bump @sveltejs/kit from 2.44.0 to 2.45.0 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.44.0 to 2.45.0.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.45.0/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.45.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-07 09:07:52 +00:00
dependabot[bot] 6fd6231ad4 npm-dep: bump typescript-eslint from 8.45.0 to 8.46.0 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.45.0 to 8.46.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.46.0/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.46.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-07 09:07:31 +00:00
dependabot[bot] a3969176bd npm-dep: bump svelte from 5.39.8 to 5.39.9 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.39.8 to 5.39.9.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.39.9/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.39.9
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-06 09:20:40 +00:00
dependabot[bot] a4904e78d0 npm-dep: bump @sveltejs/kit from 2.43.8 to 2.44.0 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.43.8 to 2.44.0.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.44.0/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.44.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-06 09:13:56 +00:00
Maxi Quoß 7c98f8116e temp remove aur build, as aur is down 2025-10-05 11:06:48 +02:00
Maxi Quoß dd0bfbf46f update deps 2025-10-05 10:26:43 +02:00
NickSkier f873772351 feat: Added Russian i18n Support (#1396)
* feat: add russian language (ru-RU)

* feat: update README to include russian

* fix: switch statement for ru-RU

* add "Wake Group" translation

---------

Co-authored-by: Maxi Quoß <maxi@quoss.org>
2025-10-05 10:19:57 +02:00
孤之界 f079f01a46 fix: improve zh-TW translations with Taiwan terminology (#1400) 2025-10-05 10:11:32 +02:00
dependabot[bot] 5e9387a259 go-dep: bump github.com/pocketbase/pocketbase in /backend
Bumps [github.com/pocketbase/pocketbase](https://github.com/pocketbase/pocketbase) from 0.30.0 to 0.30.1.
- [Release notes](https://github.com/pocketbase/pocketbase/releases)
- [Changelog](https://github.com/pocketbase/pocketbase/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/pocketbase/compare/v0.30.0...v0.30.1)

---
updated-dependencies:
- dependency-name: github.com/pocketbase/pocketbase
  dependency-version: 0.30.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-03 09:08:15 +00:00
dependabot[bot] 30913ebecd npm-dep: bump @sveltejs/adapter-static from 3.0.9 to 3.0.10 in /frontend
Bumps [@sveltejs/adapter-static](https://github.com/sveltejs/kit/tree/HEAD/packages/adapter-static) from 3.0.9 to 3.0.10.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/adapter-static/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/adapter-static@3.0.10/packages/adapter-static)

---
updated-dependencies:
- dependency-name: "@sveltejs/adapter-static"
  dependency-version: 3.0.10
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-03 09:07:43 +00:00
dependabot[bot] 74830115fb npm-dep: bump svelte from 5.39.7 to 5.39.8 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.39.7 to 5.39.8.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.39.8/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.39.8
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-02 09:11:29 +00:00
dependabot[bot] 64e672315a npm-dep: bump @sveltejs/kit from 2.43.6 to 2.43.7 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.43.6 to 2.43.7.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.43.7/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.43.7
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-02 09:09:35 +00:00
dependabot[bot] 3fc0780b0d npm-dep: bump tailwindcss from 4.1.13 to 4.1.14 in /frontend
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/tailwindcss) from 4.1.13 to 4.1.14.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.1.14/packages/tailwindcss)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-version: 4.1.14
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-02 09:07:28 +00:00
dependabot[bot] 423c8afc24 npm-dep: bump @tailwindcss/postcss from 4.1.13 to 4.1.14 in /frontend
Bumps [@tailwindcss/postcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/@tailwindcss-postcss) from 4.1.13 to 4.1.14.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.1.14/packages/@tailwindcss-postcss)

---
updated-dependencies:
- dependency-name: "@tailwindcss/postcss"
  dependency-version: 4.1.14
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-02 09:06:43 +00:00
dependabot[bot] 2fee69ea2f npm-dep: bump @inlang/paraglide-js from 2.3.2 to 2.4.0 in /frontend
Bumps [@inlang/paraglide-js](https://github.com/opral/inlang-paraglide-js) from 2.3.2 to 2.4.0.
- [Commits](https://github.com/opral/inlang-paraglide-js/commits)

---
updated-dependencies:
- dependency-name: "@inlang/paraglide-js"
  dependency-version: 2.4.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-01 09:44:49 +00:00
dependabot[bot] 206e9e0959 npm-dep: bump @sveltejs/kit from 2.43.5 to 2.43.6 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.43.5 to 2.43.6.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.43.6/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.43.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-01 09:43:12 +00:00
dependabot[bot] ee7cf4e59e npm-dep: bump typescript from 5.9.2 to 5.9.3 in /frontend
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.9.2 to 5.9.3.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release-publish.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.9.2...v5.9.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-version: 5.9.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-01 09:33:19 +00:00
dependabot[bot] c92ea013a9 npm-dep: bump daisyui from 5.1.25 to 5.1.26 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.1.25 to 5.1.26.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.1.26/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.1.26
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-01 09:14:54 +00:00
dependabot[bot] 8a28d138d9 npm-dep: bump svelte from 5.39.6 to 5.39.7 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.39.6 to 5.39.7.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.39.7/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.39.7
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-01 09:14:24 +00:00
dependabot[bot] e5d91d7cc9 npm-dep: bump typescript-eslint from 8.44.1 to 8.45.0 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.44.1 to 8.45.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.45.0/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.45.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-30 09:06:55 +00:00
dependabot[bot] 718be00850 npm-dep: bump daisyui from 5.1.23 to 5.1.25 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.1.23 to 5.1.25.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.1.25/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.1.25
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-29 10:47:29 +00:00
rioradio c432008deb feat: support X-Forwarded-Proto for manifest URL (#1395) 2025-09-28 11:28:36 +02:00
dependabot[bot] 935e2fbf61 npm-dep: bump daisyui from 5.1.18 to 5.1.23 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.1.18 to 5.1.23.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.1.23/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.1.23
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-26 09:10:34 +00:00
dependabot[bot] 8a009ce225 npm-dep: bump @sveltejs/kit from 2.43.4 to 2.43.5 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.43.4 to 2.43.5.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.43.5/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.43.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-26 09:09:29 +00:00
dependabot[bot] 735b79e9a2 npm-dep: bump svelte from 5.39.5 to 5.39.6 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.39.5 to 5.39.6.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.39.6/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.39.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-25 09:10:01 +00:00
dependabot[bot] d9e802cf73 npm-dep: bump daisyui from 5.1.14 to 5.1.18 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.1.14 to 5.1.18.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.1.18/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.1.18
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-25 09:08:24 +00:00
dependabot[bot] 97438e945e npm-dep: bump @sveltejs/kit from 2.43.1 to 2.43.4 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.43.1 to 2.43.4.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.43.4/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.43.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-25 09:07:50 +00:00
dependabot[bot] 3b135e0982 npm-dep: bump svelte from 5.39.4 to 5.39.5 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.39.4 to 5.39.5.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.39.5/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.39.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-24 09:08:39 +00:00
dependabot[bot] 1380281bfe npm-dep: bump svelte-check from 4.3.1 to 4.3.2 in /frontend
Bumps [svelte-check](https://github.com/sveltejs/language-tools) from 4.3.1 to 4.3.2.
- [Release notes](https://github.com/sveltejs/language-tools/releases)
- [Commits](https://github.com/sveltejs/language-tools/compare/svelte-check-4.3.1...svelte-check@4.3.2)

---
updated-dependencies:
- dependency-name: svelte-check
  dependency-version: 4.3.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-23 09:08:37 +00:00
dependabot[bot] fad4d75ce2 npm-dep: bump typescript-eslint from 8.44.0 to 8.44.1 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.44.0 to 8.44.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.44.1/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.44.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-23 09:08:22 +00:00
dependabot[bot] 6afa5f28ce npm-dep: bump @sveltejs/kit from 2.42.2 to 2.43.1 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.42.2 to 2.43.1.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.43.1/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.43.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-23 09:08:09 +00:00
dependabot[bot] e87a930ccc npm-dep: bump @eslint/compat from 1.3.2 to 1.4.0 in /frontend
Bumps [@eslint/compat](https://github.com/eslint/rewrite/tree/HEAD/packages/compat) from 1.3.2 to 1.4.0.
- [Release notes](https://github.com/eslint/rewrite/releases)
- [Changelog](https://github.com/eslint/rewrite/blob/main/packages/compat/CHANGELOG.md)
- [Commits](https://github.com/eslint/rewrite/commits/compat-v1.4.0/packages/compat)

---
updated-dependencies:
- dependency-name: "@eslint/compat"
  dependency-version: 1.4.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-23 09:07:51 +00:00
dependabot[bot] 45b6097a2f npm-dep: bump daisyui from 5.1.13 to 5.1.14 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.1.13 to 5.1.14.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.1.14/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.1.14
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-22 09:34:58 +00:00
dependabot[bot] abd8a63dc7 npm-dep: bump @eslint/js from 9.35.0 to 9.36.0 in /frontend
Bumps [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js) from 9.35.0 to 9.36.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/commits/v9.36.0/packages/js)

---
updated-dependencies:
- dependency-name: "@eslint/js"
  dependency-version: 9.36.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-22 09:32:06 +00:00
dependabot[bot] 8f5d004647 npm-dep: bump svelte from 5.39.2 to 5.39.4 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.39.2 to 5.39.4.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.39.4/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.39.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-22 09:31:54 +00:00
dependabot[bot] 071d964e3f npm-dep: bump @sveltejs/kit from 2.42.1 to 2.42.2 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.42.1 to 2.42.2.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.42.2/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.42.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-19 09:07:07 +00:00
dependabot[bot] e98c384520 npm-dep: bump daisyui from 5.1.12 to 5.1.13 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.1.12 to 5.1.13.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.1.13/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.1.13
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-18 09:07:24 +00:00
dependabot[bot] 16e33793ef npm-dep: bump svelte from 5.38.10 to 5.39.2 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.38.10 to 5.39.2.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.39.2/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.39.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-18 09:07:00 +00:00
dependabot[bot] 285c745ca4 npm-dep: bump @sveltejs/kit from 2.41.0 to 2.42.1 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.41.0 to 2.42.1.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.42.1/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.42.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-17 09:08:37 +00:00
dependabot[bot] eb5e3e9149 npm-dep: bump @sveltejs/kit from 2.39.1 to 2.41.0 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.39.1 to 2.41.0.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.41.0/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.41.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-16 09:07:40 +00:00
Maxi Quoß cbec23b1f8 fix: cannot reset settings icon 2025-09-15 23:20:47 +02:00
Maxi Quoß 43ebe5f86c fix: ignore static file error 404 on build 2025-09-15 22:52:45 +02:00
Maxi Quoß 5e4664356d fix: icon sometimes gets removed 2025-09-15 22:49:22 +02:00
Maxi Quoß ef75531a6f fix: generate manifest in go backend 2025-09-15 22:45:33 +02:00
Maxi Quoß bd6038720b fix: generate manifest in go backend 2025-09-15 22:21:00 +02:00
Maxi Quoß 41cc546b81 update deps 2025-09-15 21:35:47 +02:00
Maxi Quoß 25a67af29d spelling 2025-09-15 21:32:57 +02:00
Maxi Quoß 3f3ef10fbc feat: custom manifest data from backend, close #1351 2025-09-15 21:31:58 +02:00
Maxi Quoß f9f73da80a fix: pwa website rotation #1350 2025-09-15 20:23:11 +02:00
dependabot[bot] 00d1659474 npm-dep: bump @sveltejs/kit from 2.38.1 to 2.39.1 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.38.1 to 2.39.1.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.39.1/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.39.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-15 10:00:48 +00:00
dependabot[bot] 36abd34f07 npm-dep: bump @inlang/paraglide-js from 2.3.0 to 2.3.2 in /frontend
Bumps [@inlang/paraglide-js](https://github.com/opral/inlang-paraglide-js) from 2.3.0 to 2.3.2.
- [Commits](https://github.com/opral/inlang-paraglide-js/commits)

---
updated-dependencies:
- dependency-name: "@inlang/paraglide-js"
  dependency-version: 2.3.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-15 09:59:29 +00:00
dependabot[bot] ba997ba94f npm-dep: bump daisyui from 5.1.10 to 5.1.12 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.1.10 to 5.1.12.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.1.12/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.1.12
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-15 09:57:37 +00:00
Maxi Quoß 56b25b708e fix: gopher on welcome page for sub paths 2025-09-12 11:51:25 +02:00
Maxi Quoß 8297498902 add nginx example for sub path 2025-09-12 11:50:59 +02:00
dependabot[bot] 8e63cbe42d npm-dep: bump svelte from 5.38.8 to 5.38.10 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.38.8 to 5.38.10.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.38.10/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.38.10
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-12 09:09:02 +00:00
dependabot[bot] b0c6696c97 npm-dep: bump eslint-plugin-svelte from 3.12.2 to 3.12.3 in /frontend
Bumps [eslint-plugin-svelte](https://github.com/sveltejs/eslint-plugin-svelte/tree/HEAD/packages/eslint-plugin-svelte) from 3.12.2 to 3.12.3.
- [Release notes](https://github.com/sveltejs/eslint-plugin-svelte/releases)
- [Changelog](https://github.com/sveltejs/eslint-plugin-svelte/blob/main/packages/eslint-plugin-svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/eslint-plugin-svelte/commits/eslint-plugin-svelte@3.12.3/packages/eslint-plugin-svelte)

---
updated-dependencies:
- dependency-name: eslint-plugin-svelte
  dependency-version: 3.12.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-11 09:08:04 +00:00
dependabot[bot] 010e306b07 npm-dep: bump daisyui from 5.1.9 to 5.1.10 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.1.9 to 5.1.10.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.1.10/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.1.10
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-11 09:07:54 +00:00
dependabot[bot] 5b755990fa npm-dep: bump @sveltejs/kit from 2.37.1 to 2.38.1 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.37.1 to 2.38.1.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.38.1/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.38.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-11 09:07:42 +00:00
dependabot[bot] b4c30a4eaa npm-dep: bump @inlang/paraglide-js from 2.2.0 to 2.3.0 in /frontend
Bumps [@inlang/paraglide-js](https://github.com/opral/inlang-paraglide-js) from 2.2.0 to 2.3.0.
- [Commits](https://github.com/opral/inlang-paraglide-js/commits)

---
updated-dependencies:
- dependency-name: "@inlang/paraglide-js"
  dependency-version: 2.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-11 09:07:25 +00:00
dependabot[bot] a6d582bc53 npm-dep: bump globals from 16.3.0 to 16.4.0 in /frontend
Bumps [globals](https://github.com/sindresorhus/globals) from 16.3.0 to 16.4.0.
- [Release notes](https://github.com/sindresorhus/globals/releases)
- [Commits](https://github.com/sindresorhus/globals/compare/v16.3.0...v16.4.0)

---
updated-dependencies:
- dependency-name: globals
  dependency-version: 16.4.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-10 09:07:46 +00:00
dependabot[bot] 24ceac63e1 npm-dep: bump svelte from 5.38.7 to 5.38.8 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.38.7 to 5.38.8.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.38.8/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.38.8
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-10 09:07:24 +00:00
dependabot[bot] 05c2765a3c npm-dep: bump daisyui from 5.1.8 to 5.1.9 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.1.8 to 5.1.9.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.1.9/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.1.9
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-09 09:09:57 +00:00
dependabot[bot] 6ce67831f9 npm-dep: bump typescript-eslint from 8.42.0 to 8.43.0 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.42.0 to 8.43.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.43.0/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.43.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-09 09:09:37 +00:00
dependabot[bot] 97774b8e70 npm-dep: bump vite from 6.3.5 to 6.3.6 in /frontend
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.3.5 to 6.3.6.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v6.3.6/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v6.3.6/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 6.3.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 09:19:41 +00:00
dependabot[bot] a103c62a72 npm-dep: bump eslint from 9.34.0 to 9.35.0 in /frontend
Bumps [eslint](https://github.com/eslint/eslint) from 9.34.0 to 9.35.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v9.34.0...v9.35.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-version: 9.35.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 09:19:15 +00:00
dependabot[bot] 5bc4f94f3d npm-dep: bump eslint-plugin-svelte from 3.12.1 to 3.12.2 in /frontend
Bumps [eslint-plugin-svelte](https://github.com/sveltejs/eslint-plugin-svelte) from 3.12.1 to 3.12.2.
- [Release notes](https://github.com/sveltejs/eslint-plugin-svelte/releases)
- [Commits](https://github.com/sveltejs/eslint-plugin-svelte/compare/eslint-plugin-svelte@3.12.1...eslint-plugin-svelte@3.12.2)

---
updated-dependencies:
- dependency-name: eslint-plugin-svelte
  dependency-version: 3.12.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 09:15:32 +00:00
dependabot[bot] 0724942481 npm-dep: bump @eslint/js from 9.34.0 to 9.35.0 in /frontend
Bumps [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js) from 9.34.0 to 9.35.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/commits/v9.35.0/packages/js)

---
updated-dependencies:
- dependency-name: "@eslint/js"
  dependency-version: 9.35.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 09:14:44 +00:00
dependabot[bot] b66bb2b1ea npm-dep: bump daisyui from 5.1.7 to 5.1.8 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.1.7 to 5.1.8.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.1.8/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.1.8
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 09:13:03 +00:00
dependabot[bot] 57e0285761 go-dep: bump golang.org/x/sys from 0.35.0 to 0.36.0 in /backend
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.35.0 to 0.36.0.
- [Commits](https://github.com/golang/sys/compare/v0.35.0...v0.36.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-version: 0.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 09:12:33 +00:00
dependabot[bot] a10a5bf575 npm-dep: bump @sveltejs/kit from 2.37.0 to 2.37.1 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.37.0 to 2.37.1.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.37.1/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.37.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 09:12:04 +00:00
dependabot[bot] 4a874f01d9 go-dep: bump github.com/pocketbase/pocketbase in /backend
Bumps [github.com/pocketbase/pocketbase](https://github.com/pocketbase/pocketbase) from 0.29.3 to 0.30.0.
- [Release notes](https://github.com/pocketbase/pocketbase/releases)
- [Changelog](https://github.com/pocketbase/pocketbase/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/pocketbase/compare/v0.29.3...v0.30.0)

---
updated-dependencies:
- dependency-name: github.com/pocketbase/pocketbase
  dependency-version: 0.30.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-08 09:11:46 +00:00
dependabot[bot] dd8df050e3 npm-dep: bump svelte from 5.38.6 to 5.38.7 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.38.6 to 5.38.7.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.38.7/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.38.7
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-05 09:08:44 +00:00
dependabot[bot] da91bd3e53 npm-dep: bump daisyui from 5.1.6 to 5.1.7 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.1.6 to 5.1.7.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.1.7/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.1.7
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-05 09:06:56 +00:00
dependabot[bot] bf621749cf gh-action: bump actions/download-artifact from 4 to 5
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-05 09:06:37 +00:00
Maxi Quoß 3ecec817b5 gh-action: fix goreleaser dirty state 2025-09-05 03:15:49 +02:00
Maxi Quoß 2729424b01 gh-action: fix goreleaser args 2025-09-05 03:10:04 +02:00
Maxi Quoß 03b3e67aa4 gh-action: use more caching 2025-09-05 03:06:59 +02:00
Maxi Quoß 2657a3b119 go-dep: use go 1.24.1 2025-09-04 23:36:33 +02:00
Maxi Quoß 81e9319873 gh-action: setup pnpm via action 2025-09-04 23:28:46 +02:00
Maxi Quoß b35544a455 gh-action: update setup-node and use cache pnpm 2025-09-04 23:21:50 +02:00
Maxi Quoß 7c640ac32e feat: support for sub path hosting 2025-09-04 23:12:50 +02:00
Maxi Quoß 75969b037e fix: improve device group logic
fix: timeout not updating
feat: use resolve() for internal paths
2025-09-04 20:36:05 +02:00
dependabot[bot] b1a4a6ce14 npm-dep: bump eslint-plugin-svelte from 3.11.0 to 3.12.1 in /frontend
Bumps [eslint-plugin-svelte](https://github.com/sveltejs/eslint-plugin-svelte) from 3.11.0 to 3.12.1.
- [Release notes](https://github.com/sveltejs/eslint-plugin-svelte/releases)
- [Commits](https://github.com/sveltejs/eslint-plugin-svelte/compare/eslint-plugin-svelte@3.11.0...eslint-plugin-svelte@3.12.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-svelte
  dependency-version: 3.12.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-04 12:51:19 +00:00
dependabot[bot] 24ccf1f277 gh-action: bump actions/setup-go from 5 to 6
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5 to 6.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-04 10:28:10 +00:00
dependabot[bot] 7910f10005 npm-dep: bump daisyui from 5.1.3 to 5.1.6 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.1.3 to 5.1.6.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.1.6/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.1.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-03 23:56:09 +00:00
dependabot[bot] 6094ba2e6d npm-dep: bump typescript-eslint from 8.41.0 to 8.42.0 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.41.0 to 8.42.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.42.0/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.42.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-03 23:55:54 +00:00
dependabot[bot] bf5861561c npm-dep: bump daisyui from 5.0.54 to 5.1.3 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.0.54 to 5.1.3.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.1.3/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.1.3
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-03 08:05:04 +00:00
dependabot[bot] c77e76b502 npm-dep: bump cron-parser from 5.3.0 to 5.3.1 in /frontend
Bumps [cron-parser](https://github.com/harrisiirak/cron-parser) from 5.3.0 to 5.3.1.
- [Release notes](https://github.com/harrisiirak/cron-parser/releases)
- [Commits](https://github.com/harrisiirak/cron-parser/compare/v5.3.0...v5.3.1)

---
updated-dependencies:
- dependency-name: cron-parser
  dependency-version: 5.3.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-01 17:48:11 +00:00
Roshan Studley 6ce669d643 Update README.md (#1337) 2025-09-01 11:34:17 +02:00
Maxi Quoß ab5fa0e961 feat: add hindi language (hi-IN) 2025-08-31 10:36:55 +02:00
Maxi Quoß 9ad53148b4 update deps 2025-08-31 10:06:38 +02:00
Maxi Quoß f6a208f4d6 feat: use new svelte 5 syntax 2025-08-31 10:05:25 +02:00
dependabot[bot] 2d1c64c9b4 npm-dep: bump @sveltejs/kit from 2.36.3 to 2.37.0 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.36.3 to 2.37.0.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.37.0/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.37.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-29 09:07:22 +00:00
dependabot[bot] 05a6a544f0 npm-dep: bump daisyui from 5.0.51 to 5.0.54 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.0.51 to 5.0.54.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.0.54/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.0.54
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-28 10:55:47 +00:00
dependabot[bot] 10469c8f10 npm-dep: bump svelte from 5.38.3 to 5.38.6 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.38.3 to 5.38.6.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.38.6/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.38.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-28 10:37:24 +00:00
dependabot[bot] b5ecd4be83 npm-dep: bump typescript-eslint from 8.40.0 to 8.41.0 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.40.0 to 8.41.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.41.0/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.41.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-27 17:04:49 +00:00
dependabot[bot] 7d5fa685e5 npm-dep: bump @sveltejs/kit from 2.36.2 to 2.36.3 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.36.2 to 2.36.3.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.36.3/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.36.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-27 17:03:18 +00:00
dependabot[bot] 6eadc5b48e npm-dep: bump daisyui from 5.0.50 to 5.0.51 in /frontend
Bumps [daisyui](https://github.com/saadeghi/daisyui/tree/HEAD/packages/daisyui) from 5.0.50 to 5.0.51.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/commits/v5.0.51/packages/daisyui)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-version: 5.0.51
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-27 01:25:13 +00:00
Maxi Quoß 7ab8170f8c remove log 2025-08-26 16:56:11 +02:00
Maxi Quoß 0fcd04884f fix: device cards not updating 2025-08-26 16:55:09 +02:00
Maxi Quoß c9e924813d add vi-VN 2025-08-26 10:30:46 +02:00
Huynh Khac Thao 954c9648e7 feat: Add i18n vi-VN (#1324)
* Create vi.json

* Rename vi.json to vi-VN.json

* Update settings.json for vi-VN

* Update locale.ts for vi-VN

* Update +page.svelte for vi-VN
2025-08-26 10:28:07 +02:00
Maxi Quoß 8afe2f1449 fix: change device.link to string 2025-08-26 10:24:42 +02:00
Maxi Quoß 2aef9806ec fix: search not working, close #1325 2025-08-26 10:22:19 +02:00
dependabot[bot] d028e2d6b1 go-dep: bump github.com/pocketbase/pocketbase in /backend
Bumps [github.com/pocketbase/pocketbase](https://github.com/pocketbase/pocketbase) from 0.29.2 to 0.29.3.
- [Release notes](https://github.com/pocketbase/pocketbase/releases)
- [Changelog](https://github.com/pocketbase/pocketbase/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/pocketbase/compare/v0.29.2...v0.29.3)

---
updated-dependencies:
- dependency-name: github.com/pocketbase/pocketbase
  dependency-version: 0.29.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-25 16:38:30 +00:00
Maxi Quoß bb8a854761 npm-dep: update 2025-08-24 22:36:21 +02:00
Georgi Ivanov 7ef8ba64b7 feat: Add Bulgarian language (#1319)
* Add Bulgarian language

* changed a terminology word and fixed a typo

* add to readme

---------

Co-authored-by: Maxi Quoß <maxi@quoss.org>
2025-08-22 09:35:25 +02:00
dependabot[bot] 9205590555 npm-dep: bump @sveltejs/kit from 2.34.0 to 2.36.1 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.34.0 to 2.36.1.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.36.1/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.36.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-21 09:26:23 +00:00
Maxi Quoß 8b8cc96412 update deps 2025-08-20 00:19:25 +02:00
Maxi Quoß e8c900528e add note 2025-08-20 00:17:47 +02:00
Dmitro 37b219bd90 feat: Add i18n Ukrainian (#1307)
* add lang

* Update uk-UA.json

* fix: locale uk-UA

* add uk-UA to readme

---------

Co-authored-by: Maxi Quoß <maxi@quoss.org>
2025-08-19 23:49:12 +02:00
dependabot[bot] 313a2dff41 npm-dep: bump svelte from 5.38.1 to 5.38.2 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.38.1 to 5.38.2.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.38.2/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.38.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-19 19:24:27 +00:00
dependabot[bot] 83fb7d398b npm-dep: bump typescript-eslint from 8.39.1 to 8.40.0 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.39.1 to 8.40.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.40.0/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.40.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-19 19:22:45 +00:00
dependabot[bot] 6d39733a90 npm-dep: bump @sveltejs/kit from 2.31.1 to 2.33.0 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.31.1 to 2.33.0.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.33.0/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.33.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-19 16:23:37 +00:00
dependabot[bot] 0c5d14d608 npm-dep: bump @sveltejs/kit from 2.30.1 to 2.31.1 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.30.1 to 2.31.1.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.31.1/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.31.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-18 14:12:22 +00:00
dependabot[bot] b4f33ea8d3 npm-dep: bump @sveltejs/kit from 2.29.1 to 2.30.1 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.29.1 to 2.30.1.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.30.1/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.30.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-15 10:02:59 +00:00
dependabot[bot] ac1dbb6d41 npm-dep: bump @tailwindcss/postcss from 4.1.11 to 4.1.12 in /frontend
Bumps [@tailwindcss/postcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/@tailwindcss-postcss) from 4.1.11 to 4.1.12.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.1.12/packages/@tailwindcss-postcss)

---
updated-dependencies:
- dependency-name: "@tailwindcss/postcss"
  dependency-version: 4.1.12
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-15 10:01:55 +00:00
dependabot[bot] e47102311b npm-dep: bump tailwindcss from 4.1.11 to 4.1.12 in /frontend
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/tailwindcss) from 4.1.11 to 4.1.12.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.1.12/packages/tailwindcss)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-version: 4.1.12
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-15 09:58:15 +00:00
dependabot[bot] 97b1447681 npm-dep: bump @sveltejs/kit from 2.28.0 to 2.29.1 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.28.0 to 2.29.1.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.29.1/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.29.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-14 09:20:19 +00:00
dependabot[bot] 0ea7815ae3 npm-dep: bump svelte from 5.38.0 to 5.38.1 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.38.0 to 5.38.1.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.38.1/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.38.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-12 19:27:58 +00:00
dependabot[bot] a5bddd1f25 npm-dep: bump typescript-eslint from 8.39.0 to 8.39.1 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.39.0 to 8.39.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.39.1/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.39.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-12 19:26:27 +00:00
dependabot[bot] 28561b6181 npm-dep: bump @sveltejs/kit from 2.27.3 to 2.28.0 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.27.3 to 2.28.0.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.28.0/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.28.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-12 15:58:55 +00:00
dependabot[bot] 6628048bd8 gh-action: bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-12 15:55:44 +00:00
dependabot[bot] 9bd073c4d3 npm-dep: bump @eslint/js from 9.32.0 to 9.33.0 in /frontend
Bumps [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js) from 9.32.0 to 9.33.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/commits/v9.33.0/packages/js)

---
updated-dependencies:
- dependency-name: "@eslint/js"
  dependency-version: 9.33.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-11 14:49:07 +00:00
dependabot[bot] cb6e7d3a71 npm-dep: bump @eslint/compat from 1.3.1 to 1.3.2 in /frontend
Bumps [@eslint/compat](https://github.com/eslint/rewrite/tree/HEAD/packages/compat) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/eslint/rewrite/releases)
- [Changelog](https://github.com/eslint/rewrite/blob/main/packages/compat/CHANGELOG.md)
- [Commits](https://github.com/eslint/rewrite/commits/compat-v1.3.2/packages/compat)

---
updated-dependencies:
- dependency-name: "@eslint/compat"
  dependency-version: 1.3.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-11 14:46:13 +00:00
dependabot[bot] 44040192d7 npm-dep: bump @sveltejs/adapter-static from 3.0.8 to 3.0.9 in /frontend
Bumps [@sveltejs/adapter-static](https://github.com/sveltejs/kit/tree/HEAD/packages/adapter-static) from 3.0.8 to 3.0.9.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/adapter-static/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/adapter-static@3.0.9/packages/adapter-static)

---
updated-dependencies:
- dependency-name: "@sveltejs/adapter-static"
  dependency-version: 3.0.9
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-11 14:44:01 +00:00
dependabot[bot] 570d35dc51 npm-dep: bump eslint from 9.32.0 to 9.33.0 in /frontend
Bumps [eslint](https://github.com/eslint/eslint) from 9.32.0 to 9.33.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v9.32.0...v9.33.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-version: 9.33.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-11 14:42:23 +00:00
dependabot[bot] 9e387b9eed go-dep: bump github.com/pocketbase/pocketbase in /backend
Bumps [github.com/pocketbase/pocketbase](https://github.com/pocketbase/pocketbase) from 0.29.1 to 0.29.2.
- [Release notes](https://github.com/pocketbase/pocketbase/releases)
- [Changelog](https://github.com/pocketbase/pocketbase/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pocketbase/pocketbase/compare/v0.29.1...v0.29.2)

---
updated-dependencies:
- dependency-name: github.com/pocketbase/pocketbase
  dependency-version: 0.29.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-11 13:42:43 +00:00
dependabot[bot] c3299bad6a npm-dep: bump @sveltejs/kit from 2.27.1 to 2.27.3 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.27.1 to 2.27.3.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.27.3/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.27.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-08 09:51:54 +00:00
dependabot[bot] f5af123672 go-dep: bump golang.org/x/sys from 0.34.0 to 0.35.0 in /backend
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.34.0 to 0.35.0.
- [Commits](https://github.com/golang/sys/compare/v0.34.0...v0.35.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-version: 0.35.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-08 09:43:55 +00:00
dependabot[bot] 14ccf206b6 npm-dep: bump svelte from 5.37.3 to 5.38.0 in /frontend
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 5.37.3 to 5.38.0.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/main/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@5.38.0/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-version: 5.38.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-07 09:12:59 +00:00
dependabot[bot] aa1e8a0bce npm-dep: bump @sveltejs/kit from 2.27.0 to 2.27.1 in /frontend
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.27.0 to 2.27.1.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.27.1/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-version: 2.27.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-06 09:22:57 +00:00
dependabot[bot] 0a48aaae1e npm-dep: bump typescript-eslint from 8.38.0 to 8.39.0 in /frontend
Bumps [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) from 8.38.0 to 8.39.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.39.0/packages/typescript-eslint)

---
updated-dependencies:
- dependency-name: typescript-eslint
  dependency-version: 8.39.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-05 16:19:55 +00:00
121 changed files with 8708 additions and 4736 deletions
-30
View File
@@ -1,30 +0,0 @@
version: 2
updates:
- package-ecosystem: gomod
directory: "/backend"
schedule:
interval: daily
open-pull-requests-limit: 10
commit-message:
prefix: go-dep
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
- package-ecosystem: npm
directory: "/frontend"
schedule:
interval: daily
open-pull-requests-limit: 10
commit-message:
prefix: npm-dep
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
commit-message:
prefix: gh-action
+1 -1
View File
@@ -10,7 +10,7 @@ jobs:
codeberg:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: pixta-dev/repository-mirroring-action@v1
@@ -1,25 +0,0 @@
name: dependabot automerge
on:
pull_request:
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch'}} || ${{steps.metadata.outputs.update-type == 'version-update:semver-minor'}}
run: gh pr merge --auto --rebase "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
+2 -2
View File
@@ -25,9 +25,9 @@ jobs:
needs: check-runner
runs-on: ${{ needs.check-runner.outputs.runner-label }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@v6
with:
go-version-file: "./backend/go.mod"
cache-dependency-path: "./backend/go.sum"
+97 -41
View File
@@ -15,7 +15,9 @@ jobs:
- name: Set runner
id: set-runner
run: |
runners=$(curl -s -H "Accept: application/vnd.github+json" -H "Authorization: token ${{ secrets.REPO_ACCESS_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/actions/runners")
runners=$(curl -s -H "Accept: application/vnd.github+json" \
-H "Authorization: token ${{ secrets.REPO_ACCESS_TOKEN }}" \
"https://api.github.com/repos/${{ github.repository }}/actions/runners")
available=$(echo "$runners" | jq '.runners[] | select(.status == "online" and .busy == false and .labels[] .name == "self-hosted")')
if [ -n "$available" ]; then
echo "runner-label=self-hosted" >> "$GITHUB_OUTPUT"
@@ -23,41 +25,87 @@ jobs:
echo "runner-label=ubuntu-latest" >> "$GITHUB_OUTPUT"
fi
goreleaser:
frontend:
needs: check-runner
runs-on: ${{ needs.check-runner.outputs.runner-label }}
steps:
# pull code
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 1
- uses: pnpm/action-setup@v6
with:
version: latest
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: latest
cache: pnpm
cache-dependency-path: frontend/pnpm-lock.yaml
- name: Cache frontend build
uses: actions/cache@v5
with:
path: |
frontend/node_modules
frontend/.svelte-kit
key: ${{ runner.os }}-pnpm-${{ hashFiles('frontend/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Build frontend
run: |
pnpm --prefix=./frontend install --frozen-lockfile --prefer-offline
PUBLIC_VERSION=${GITHUB_REF##*/} pnpm --prefix=./frontend run build
tar -czf frontend-dist.tar.gz -C frontend/build .
- name: Upload frontend artifact
uses: actions/upload-artifact@v7
with:
name: frontend-dist
path: frontend-dist.tar.gz
goreleaser:
needs:
- check-runner
- frontend
runs-on: ${{ needs.check-runner.outputs.runner-label }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
# install latest node
- name: Set up Node.js
uses: actions/setup-node@v4
- name: Download frontend artifact
uses: actions/download-artifact@v8
with:
node-version: latest
name: frontend-dist
# build sveltekit frontend
- name: Build frontend
- name: Extract frontend into backend
run: |
npm i -g pnpm
pnpm --prefix=./frontend i
PUBLIC_VERSION=${GITHUB_REF##*/} pnpm --prefix=./frontend run build
cp -r ./frontend/build/* ./backend/pb_public/
mkdir -p backend/pb_public
tar -xzf frontend-dist.tar.gz -C backend/pb_public
git reset --hard
git clean -fd
# setup go
- name: Set up Go
uses: actions/setup-go@v5
uses: actions/setup-go@v6
with:
go-version-file: "./backend/go.mod"
cache-dependency-path: "./backend/go.sum"
go-version-file: backend/go.mod
cache-dependency-path: backend/go.sum
- name: Cache Go build
uses: actions/cache@v5
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('backend/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
# build
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
uses: goreleaser/goreleaser-action@v7
with:
distribution: goreleaser
version: "~> v2"
@@ -67,20 +115,32 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AUR_KEY: ${{ secrets.AUR_KEY }}
- name: Upload backend artifact
uses: actions/upload-artifact@v7
with:
name: backend-dist
path: backend/dist
docker:
needs:
- goreleaser
- check-runner
- frontend
- goreleaser
runs-on: ${{ needs.check-runner.outputs.runner-label }}
steps:
# pull code
- name: Check Out Repo
uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Download backend artifact
uses: actions/download-artifact@v8
with:
name: backend-dist
path: backend/dist
# image tags
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@v6
with:
images: |
ghcr.io/seriousm4x/UpSnap
@@ -91,39 +151,35 @@ jobs:
type=semver,pattern={{major}}
type=semver,pattern={{major}}.{{minor}}
# qemu
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
uses: docker/setup-qemu-action@v4
# docker buildx
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
uses: docker/setup-buildx-action@v4
# ghcr.io login
- name: Log in to the Container registry
uses: docker/login-action@v3
- name: Log in to GHCR
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# ducker hub login
- name: Login to Docker Hub
uses: docker/login-action@v3
- name: Log in to Docker Hub
uses: docker/login-action@v4
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# build and push
- name: Build and push
id: docker_build
uses: docker/build-push-action@v6
uses: docker/build-push-action@v7
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
VERSION=${{github.ref_name}}
VERSION=${{ github.ref_name }}
+1
View File
@@ -60,6 +60,7 @@ Temporary Items
### Node ###
# Logs
logs
!frontend/src/routes/logs/
*.log
npm-debug.log*
yarn-debug.log*
+11 -3
View File
@@ -11,14 +11,22 @@ RUN wget https://github.com/seriousm4x/UpSnap/releases/download/${VERSION}/UpSna
chmod +x upsnap &&\
apk update &&\
apk add --no-cache libcap &&\
setcap 'cap_net_raw=+ep' ./upsnap
setcap 'cap_net_raw=+p' ./upsnap
FROM alpine:3
ARG UPSNAP_HTTP_LISTEN=0.0.0.0:8090
ENV UPSNAP_HTTP_LISTEN=${UPSNAP_HTTP_LISTEN}
RUN apk update &&\
apk add --no-cache tzdata ca-certificates nmap samba samba-common-tools openssh sshpass curl &&\
rm -rf /var/cache/apk/*
RUN addgroup -g 1000 upsnap &&\
adduser -G upsnap -D -H -u 1000 upsnap -s /sbin/nologin
WORKDIR /app
COPY --from=downloader /app/upsnap upsnap
LABEL org.opencontainers.image.source="https://github.com/seriousm4x/UpSnap" \
org.opencontainers.image.url="https://github.com/seriousm4x/UpSnap" \
org.opencontainers.image.licenses="MIT"
HEALTHCHECK --interval=10s \
CMD curl -fs "http://localhost:8090/api/health" || exit 1
ENTRYPOINT ["./upsnap", "serve", "--http=0.0.0.0:8090"]
CMD curl -fs "http://${UPSNAP_HTTP_LISTEN}/api/health" || exit 1
CMD ["serve","--http","${UPSNAP_HTTP_LISTEN}"]
ENTRYPOINT ["/app/upsnap"]
+5 -3
View File
@@ -1,4 +1,4 @@
FROM node:alpine AS node
FROM node:bookworm AS node
WORKDIR /app
COPY frontend/ .
RUN npm i -g pnpm &&\
@@ -17,11 +17,13 @@ RUN go build -o upsnap main.go &&\
setcap 'cap_net_raw=+ep' ./upsnap
FROM alpine:3
ARG UPSNAP_HTTP_LISTEN=0.0.0.0:8090
ENV UPSNAP_HTTP_LISTEN=${UPSNAP_HTTP_LISTEN}
RUN apk update &&\
apk add --no-cache tzdata ca-certificates nmap samba samba-common-tools openssh sshpass curl &&\
rm -rf /var/cache/apk/*
WORKDIR /app
COPY --from=go /app/upsnap upsnap
HEALTHCHECK --interval=10s \
CMD curl -fs "http://localhost:8090/api/health" || exit 1
ENTRYPOINT ["./upsnap", "serve", "--http=0.0.0.0:8090"]
CMD curl -fs "http://${UPSNAP_HTTP_LISTEN}/api/health" || exit 1
ENTRYPOINT ["sh", "-c", "./upsnap serve --http ${UPSNAP_HTTP_LISTEN}"]
+75 -54
View File
@@ -7,7 +7,6 @@
<p>A simple wake on lan web app written with SvelteKit, Go and PocketBase.</p>
<div>
<a target="_blank" href="https://github.com/seriousm4x/upsnap"><img src="https://img.shields.io/github/stars/seriousm4x/UpSnap?style=flat&label=Stars" /></a>
<a target="_blank" href="https://github.com/seriousm4x/UpSnap/pkgs/container/upsnap"><img src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fipitio%2Fbackage%2Findex%2Fseriousm4x%2FUpSnap%2Fupsnap.json&query=downloads&label=ghcr.io%20pulls" /></a>
<a target="_blank" href="https://hub.docker.com/r/seriousm4x/upsnap"><img src="https://img.shields.io/docker/pulls/seriousm4x/upsnap?label=docker%20hub%20pulls" /></a>
<a target="_blank" href="https://github.com/seriousm4x/UpSnap/releases"><img src="https://img.shields.io/github/downloads/seriousm4x/upsnap/total?label=binary%20downloads" /></a>
</div>
@@ -25,7 +24,11 @@
- ⏰ Timed Events via Cron for Automation
- 🔌 Ping Any Port You Choose
- 🔍 Discover Devices with Network Scanning (nmap required)
- 📌 Optional IP Address Tracking per Device via periodic ARP scan (nmap required, no extra privileges beyond network scanning)
- 📡 Support using a Fully Qualified Domain Name for a device (refer to the Wiki: [Use FQDN](https://github.com/seriousm4x/UpSnap/wiki/Use-FQDN))
- ❎️ Shutdown Devices with a Custom Command
- 👤 Secured User Management
- 📋 Superuser Logs Page
- 🌐 i18n support for [these](/frontend/translations) languages
- 🎨 35 Themes
- 🐳 [Docker images](https://github.com/seriousm4x/UpSnap/pkgs/container/upsnap) for amd64, arm64, arm/v7, arm/v6
@@ -46,58 +49,36 @@
Just download the latest binary from the [release page](https://github.com/seriousm4x/UpSnap/releases) and run it.
### Root:
```bash
sudo ./upsnap serve --http=0.0.0.0:8090
```
### Non-root:
```bash
sudo setcap cap_net_raw=+ep ./upsnap # only once after downloading
./upsnap serve --http=0.0.0.0:8090
```
To run as non-root (Linux only), refer to the Wiki: [Use non-root user](https://github.com/seriousm4x/UpSnap/wiki/Use-non%E2%80%90root-user)
For more options check `./upsnap --help` or visit [PocketBase documentation](https://pocketbase.io/docs).
If you want to use network discovery, make sure to have `nmap` installed and run UpSnap as root/admin.
## 🐳 Run in Docker
## 🐳 Run in docker
Just pull and run the image: `docker run --network=host seriousm4x/upsnap:latest` or you can use the [docker-compose](docker-compose.yml) example. See the comments in the file for customization.
You can use the [docker-compose](docker-compose.yml) example. See the comments in the file for customization.
To run as non-root, refer to the Wiki: [Use non-root user](https://github.com/seriousm4x/UpSnap/wiki/Use-non%E2%80%90root-user)
### Non-root docker user:
Set `UPSNAP_LOG_LEVEL` to `DEBUG`, `INFO`, `WARN`, `ERROR`, or `OFF` to control UpSnap console logs. Default is `INFO`. PocketBase log persistence and retention remain configurable in PocketBase settings. PocketBase's `--dev` mode prints all logs regardless of this setting.
You will loose the ability to add network devices via the scan page.
Create the mount point first:
```bash
mkdir data
```
Then add `user: 1000:1000` to the docker-compose file (or whatever your $UID:$GID is).
### Change port
### Change port (Docker)
If you want to change the port from 8090 to something else, change the following (5000 in this case):
```yml
entrypoint: /bin/sh -c "./upsnap serve --http 0.0.0.0:5000"
healthcheck:
test: curl -fs "http://localhost:5000/api/health" || exit 1
environment:
- UPSNAP_HTTP_LISTEN=0.0.0.0:5000
```
### Install additional packages for shutdown cmd
## ❎️ Shutting Down Devices
```yml
entrypoint: /bin/sh -c "apk update && apk add --no-cache <YOUR_PACKAGE> && rm -rf /var/cache/apk/* && ./upsnap serve --http 0.0.0.0:8090"
```
To shutdown devices, refer to the Wiki: [How to use shutdowns](https://github.com/seriousm4x/UpSnap/wiki/How-to-use-shutdowns)
You can search for your needed package [here](https://pkgs.alpinelinux.org/packages).
### Reverse Proxy
## Reverse Proxy
**Caddy example**
@@ -107,6 +88,40 @@ upsnap.example.com {
}
```
## Run in sub path
You can run UpSnap on a different path than `/`, e.g. `/upsnap-sub-path/`. To do this in caddy, set the following:
```
http://localhost:8091 {
handle /upsnap-sub-path/* {
uri strip_prefix /upsnap-sub-path
reverse_proxy localhost:8090
}
}
```
Or nginx:
```
http {
server {
listen 8091;
server_name localhost;
location /upsnap-sub-path/ {
proxy_pass http://localhost:8090/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
}
```
Paths must end with a trailing `/`.
## 🐧 Install from the [AUR](https://aur.archlinux.org/packages/upsnap-bin)
```bash
@@ -121,27 +136,37 @@ UpSnap offers unique access for each user, per device. While admins have all per
Although UpSnap has user authorisation, it is **not recommended to expose it to the open web** and make it accessible by everyone!
**Reason**: The shutdown device command is basically a command piped to #sh (root if you run docker). If anyone gains unauthorized access and can abuse this api route in any way, the attacker has access to a (root) shell on your local network.
**Reason**: The shutdown device command is basically a command piped to #sh (possibly as root user). If anyone gains unauthorized access and can abuse this API route in any way, the attacker has access to a (root) shell on your local network.
**Recommended**: If you need access from outside your network, please use a vpn. Wireguard or OpenVPN is your way to go.
**Recommended**: If you need access from outside your network, please use a VPN. Wireguard or OpenVPN is your way to go.
## 🌐 Help translating
UpSnap is available in the following languages so far:
- 🇩🇪 **German** (de-DE)
- 🇺🇸 **English** (en-US)
- 🇪🇸 **Spanish** (es-ES)
- 🇫🇷 **French** (fr-FR)
- 🇮🇩 **Bahasa Indonesia** (id-ID)
- 🇮🇹 **Italian** (it-IT)
- 🇯🇵 **Japanese** (ja-JP)
- 🇳🇱 **Dutch** (nl-NL)
- 🇳🇴 **Norwegian** (nb-NO)
- 🇵🇱 **Polish** (pl-PL)
- 🇵🇹 **Portuguese** (pt-PT)
- 🇸🇦 **Arabic (Saudi Arabia)** (ar-SA)
- 🇧🇬 **Bulgarian (Bulgaria)** (bg-BG)
- 🇨🇿 **Czech (Czech republic)** (cs-CZ)
- 🇩🇪 **German (Germany)** (de-DE)
- 🇬🇷 **Greek (Greece)** (el-GR)
- 🇺🇸 **English (United States)** (en-US)
- 🇪🇸 **Spanish (Spain)** (es-ES)
- 🇫🇷 **French (France)** (fr-FR)
- 🇮🇳 **Hindi (India)** (hi-IN)
- 🇮🇩 **Bahasa (Indonesia)** (id-ID)
- 🇮🇹 **Italian (Italy)** (it-IT)
- 🇯🇵 **Japanese (Japan)** (ja-JP)
- 🇰🇷 **Korean (Republic of Korea)** (ko-KR)
- 🇳🇴 **Norwegian (Norway)** (nb-NO)
- 🇳🇱 **Dutch (Netherlands)** (nl-NL)
- 🇵🇱 **Polish (Poland)** (pl-PL)
- 🇧🇷 **Portuguese (Brazil)** (pt-BR)
- 🇵🇹 **Portuguese (Portugal)** (pt-PT)
- 🇷🇺 **Russian (Russia)** (ru-RU)
- 🇺🇦 **Ukrainian (Ukrain)** (uk-UA)
- 🇻🇳 **Vietnamese (Vietnam)** (vi-VN)
- 🇨🇳 **Chinese (China)** (zh-CN)
- 🇹🇼 **Chinese (Taiwan)** (zh-TW)
- 🇨🇳 **Chinese** (zh-CN)
**If you want to contribute and help translating, check the wiki: [How to add languages](https://github.com/seriousm4x/UpSnap/wiki/How-to-add-languages)**
@@ -151,7 +176,7 @@ Fork this branch and clone it.
1. Start backend
```sh
```bash
cd backend
go mod tidy
go run main.go serve
@@ -159,14 +184,10 @@ go run main.go serve
2. Start frontend
```sh
```bash
cd frontend
pnpm i
pnpm run dev
```
Open up [http://localhost:5173/](http://localhost:5173/), create an admin user and add some devices.
## 🌟 Star History
[![Star History Chart](https://api.star-history.com/svg?repos=seriousm4x/UpSnap&type=Date&theme=dark)](https://star-history.com/#seriousm4x/UpSnap&Date)
+19 -18
View File
@@ -20,6 +20,7 @@ builds:
- amd64
- arm64
- arm
- riscv64
goarm:
- "6"
- "7"
@@ -31,7 +32,7 @@ builds:
- goos: freebsd
goarch: arm
archives:
- formats: [ 'zip' ]
- formats: ["zip"]
checksum:
name_template: "checksums.txt"
snapshot:
@@ -60,20 +61,20 @@ changelog:
git:
ignore_tags:
- "{{ if not .Prerelease}}*beta*{{ end }}"
aurs:
- name: upsnap-bin
homepage: https://github.com/seriousm4x/UpSnap
description: "A simple wake on lan web app written with SvelteKit, Go and PocketBase."
maintainers:
- "SeriousM4x <maxi at quoss dot org>"
license: "MIT"
private_key: "{{ .Env.AUR_KEY }}"
git_url: "ssh://aur@aur.archlinux.org/upsnap-bin.git"
package: |-
install -Dm755 "./upsnap" "${pkgdir}/usr/bin/upsnap"
skip_upload: auto
optdepends:
- "nmap: to scan for network devices"
commit_author:
name: goreleaserbot
email: bot@goreleaser.com
# aurs:
# - name: upsnap-bin
# homepage: https://github.com/seriousm4x/UpSnap
# description: "A simple wake on lan web app written with SvelteKit, Go and PocketBase."
# maintainers:
# - "SeriousM4x <maxi at quoss dot org>"
# license: "MIT"
# private_key: "{{ .Env.AUR_KEY }}"
# git_url: "ssh://aur@aur.archlinux.org/upsnap-bin.git"
# package: |-
# install -Dm755 "./upsnap" "${pkgdir}/usr/bin/upsnap"
# skip_upload: auto
# optdepends:
# - "nmap: to scan for network devices"
# commit_author:
# name: goreleaserbot
# email: bot@goreleaser.com
+73 -43
View File
@@ -1,10 +1,10 @@
package cronjobs
import (
"github.com/pocketbase/pocketbase"
"github.com/pocketbase/pocketbase/core"
"ganigeorgiev.com/pocketbase/pocketbase/core"
"github.com/robfig/cron/v3"
"github.com/seriousm4x/upsnap/logger"
"github.com/seriousm4x/upsnap/iptracking"
"github.com/seriousm4x/upsnap/logging"
"github.com/seriousm4x/upsnap/networking"
)
@@ -19,7 +19,8 @@ var (
)))
)
func SetPingJobs(app *pocketbase.PocketBase) {
func SetPingJobs(app core.App) {
log := logging.Logger(app)
// remove existing jobs
for _, job := range CronPing.Entries() {
CronPing.Remove(job.ID)
@@ -27,7 +28,8 @@ func SetPingJobs(app *pocketbase.PocketBase) {
settingsPrivateRecords, err := app.FindAllRecords("settings_private")
if err != nil {
logger.Error.Println(err)
log.Error("Failed to load private settings", "error", err)
return
}
CronPing.AddFunc(settingsPrivateRecords[0].GetString("interval"), func() {
@@ -39,7 +41,7 @@ func SetPingJobs(app *pocketbase.PocketBase) {
devices, err := app.FindAllRecords("devices")
if err != nil {
logger.Error.Println(err)
log.Error("Failed to load devices for ping job", "error", err)
return
}
@@ -49,6 +51,7 @@ func SetPingJobs(app *pocketbase.PocketBase) {
}
merr := app.ExpandRecords(devices, []string{"ports"}, expandFetchFunc)
if len(merr) > 0 {
log.Error("Failed to expand device ports", "errors", merr)
return
}
@@ -61,7 +64,7 @@ func SetPingJobs(app *pocketbase.PocketBase) {
}
isUp, err := networking.PingDevice(d)
if err != nil {
logger.Error.Println(err)
log.Error("Failed to ping device", "device", d.GetString("name"), "error", err)
}
if isUp {
if status == "online" {
@@ -69,7 +72,9 @@ func SetPingJobs(app *pocketbase.PocketBase) {
}
d.Set("status", "online")
if err := app.Save(d); err != nil {
logger.Error.Println("Failed to save record:", err)
log.Error("Failed to save device status", "device", d.GetString("name"), "error", err)
} else {
log.Info("Device turned on", "device", d.GetString("name"))
}
} else {
if status == "offline" {
@@ -77,7 +82,9 @@ func SetPingJobs(app *pocketbase.PocketBase) {
}
d.Set("status", "offline")
if err := app.Save(d); err != nil {
logger.Error.Println("Failed to save record:", err)
log.Error("Failed to save device status", "device", d.GetString("name"), "error", err)
} else {
log.Info("Device turned off", "device", d.GetString("name"))
}
}
}(device)
@@ -86,26 +93,50 @@ func SetPingJobs(app *pocketbase.PocketBase) {
go func(d *core.Record) {
ports, err := app.FindRecordsByIds("ports", d.GetStringSlice("ports"))
if err != nil {
logger.Error.Println(err)
log.Error("Failed to load device ports", "device", d.GetString("name"), "error", err)
return
}
deviceIP, resolveErr := networking.ResolveToIPAddr(d.GetString("ip"))
if resolveErr != nil {
log.Error("Failed to resolve device IP", "device", d.GetString("name"), "error", resolveErr)
}
for _, port := range ports {
isUp, err := networking.CheckPort(d.GetString("ip"), port.GetString("number"))
if err != nil {
logger.Error.Println("Failed to check port:", err)
isUp := false
// No IP found means the device is down.
if resolveErr == nil && deviceIP != "" {
var checkErr error
isUp, checkErr = networking.CheckPort(deviceIP, port.GetString("number"))
if checkErr != nil {
log.Error("Failed to check port", "device", d.GetString("name"), "port", port.GetString("number"), "error", checkErr)
}
}
if isUp != port.GetBool("status") {
port.Set("status", isUp)
if err := app.Save(port); err != nil {
logger.Error.Println("Failed to save record:", err)
log.Error("Failed to save port status", "device", d.GetString("name"), "port", port.GetString("number"), "error", err)
}
}
}
}(device)
}
})
// update ip addresses of opted-in devices from a periodic arp scan
trackIpInterval := settingsPrivateRecords[0].GetString("track_ip_interval")
if trackIpInterval != "" {
if _, err := CronPing.AddFunc(trackIpInterval, func() {
// pause scans if no realtime clients connected and lazy_ping is
// turned on; a catch-up sweep runs when the next client connects
realtimeClients := len(app.SubscriptionsBroker().Clients())
iptracking.PeriodicSweep(app, realtimeClients == 0 && settingsPrivateRecords[0].GetBool("lazy_ping"))
}); err != nil {
log.Error("Failed to add IP tracking cron job", "error", err)
}
}
}
func SetWakeShutdownJobs(app *pocketbase.PocketBase) {
func SetWakeShutdownJobs(app core.App) {
log := logging.Logger(app)
// remove existing jobs
for _, job := range CronWakeShutdown.Entries() {
CronWakeShutdown.Remove(job.ID)
@@ -113,7 +144,7 @@ func SetWakeShutdownJobs(app *pocketbase.PocketBase) {
devices, err := app.FindAllRecords("devices")
if err != nil {
logger.Error.Println(err)
log.Error("Failed to load devices for wake and shutdown jobs", "error", err)
return
}
for _, dev := range devices {
@@ -126,15 +157,15 @@ func SetWakeShutdownJobs(app *pocketbase.PocketBase) {
_, err := CronWakeShutdown.AddFunc(wake_cron, func() {
d, err := app.FindRecordById("devices", dev.Id)
if err != nil {
logger.Error.Println(err)
log.Error("Failed to load device for wake job", "device", dev.GetString("name"), "error", err)
return
}
if d.GetString("status") == "pending" {
return
}
isOnline, err := networking.PingDevice(dev)
isOnline, err := networking.PingDevice(d)
if err != nil {
logger.Error.Println(err)
log.Error("Failed to ping device before wake", "device", d.GetString("name"), "error", err)
return
}
if isOnline {
@@ -142,21 +173,21 @@ func SetWakeShutdownJobs(app *pocketbase.PocketBase) {
}
d.Set("status", "pending")
if err := app.Save(d); err != nil {
logger.Error.Println("Failed to save record:", err)
log.Error("Failed to save pending device status", "device", d.GetString("name"), "error", err)
return
}
if err := networking.WakeDevice(d); err != nil {
logger.Error.Println(err)
if err := networking.WakeDevice(app, d, "cron"); err != nil {
log.Error("Wake job failed", "device", d.GetString("name"), "error", err)
d.Set("status", "offline")
} else {
d.Set("status", "online")
}
if err := app.Save(d); err != nil {
logger.Error.Println("Failed to save record:", err)
log.Error("Failed to save device status after wake", "device", d.GetString("name"), "error", err)
}
})
if err != nil {
logger.Error.Printf("device %s: %+v", dev.GetString("name"), err)
log.Error("Failed to add wake cron job", "device", dev.GetString("name"), "error", err)
}
}
@@ -164,40 +195,39 @@ func SetWakeShutdownJobs(app *pocketbase.PocketBase) {
_, err := CronWakeShutdown.AddFunc(shutdown_cron, func() {
d, err := app.FindRecordById("devices", dev.Id)
if err != nil {
logger.Error.Println(err)
log.Error("Failed to load device for shutdown job", "device", dev.GetString("name"), "error", err)
return
}
if d.GetString("status") == "pending" {
return
}
isOnline, err := networking.PingDevice(dev)
isOnline, err := networking.PingDevice(d)
if err != nil {
logger.Error.Println(err)
log.Error("Failed to ping device before shutdown", "device", d.GetString("name"), "error", err)
return
}
if !isOnline {
return
}
status := d.GetString("status")
if status != "online" {
return
}
// The status can be stale when lazy ping marks devices offline after
// the last client disconnects. The reachability check above is the
// authoritative signal for whether a shutdown command may run.
d.Set("status", "pending")
if err := app.Save(d); err != nil {
logger.Error.Println("Failed to save record:", err)
log.Error("Failed to save pending device status", "device", d.GetString("name"), "error", err)
}
if err := networking.ShutdownDevice(d); err != nil {
logger.Error.Println(err)
if err := networking.ShutdownDevice(app, d, "cron"); err != nil {
log.Error("Shutdown job failed", "device", d.GetString("name"), "error", err)
d.Set("status", "online")
} else {
d.Set("status", "offline")
}
if err := app.Save(d); err != nil {
logger.Error.Println("Failed to save record:", err)
log.Error("Failed to save device status after shutdown", "device", d.GetString("name"), "error", err)
}
})
if err != nil {
logger.Error.Printf("device %s: %+v", dev.GetString("name"), err)
log.Error("Failed to add shutdown cron job", "device", dev.GetString("name"), "error", err)
}
}
}
@@ -209,9 +239,9 @@ func StartWakeShutdown() {
}
func StopWakeShutdown() {
func StopWakeShutdown(app core.App) {
if WakeShutdownRunning {
logger.Info.Println("Stopping wake/shutdown cronjob")
logging.Logger(app).Info("Stopping wake and shutdown cron jobs")
CronWakeShutdown.Stop()
}
WakeShutdownRunning = false
@@ -222,15 +252,15 @@ func StartPing() {
go CronPing.Run()
}
func StopPing() {
func StopPing(app core.App) {
if PingRunning {
logger.Info.Println("Stopping wake/shutdown cronjob")
logging.Logger(app).Info("Stopping ping cron jobs")
CronPing.Stop()
}
PingRunning = false
}
func StopAll() {
StopPing()
StopWakeShutdown()
func StopAll(app core.App) {
StopPing(app)
StopWakeShutdown(app)
}
+35 -33
View File
@@ -1,51 +1,53 @@
module github.com/seriousm4x/upsnap
go 1.24
go 1.27
require (
ganigeorgiev.com/pocketbase/dbx v1.13.0
ganigeorgiev.com/pocketbase/pocketbase v0.41.1
github.com/godbus/dbus/v5 v5.2.2
github.com/holoplot/go-avahi v1.0.1
github.com/mdlayher/wol v0.0.0-20220221231636-b763a792253a
github.com/pocketbase/dbx v1.11.0
github.com/pocketbase/pocketbase v0.29.1
github.com/prometheus-community/pro-bing v0.7.0
github.com/prometheus-community/pro-bing v0.9.1
github.com/robfig/cron/v3 v3.0.1
golang.org/x/sys v0.34.0
golang.org/x/net v0.62.0
golang.org/x/sys v0.49.0
kernel.org/pub/linux/libs/security/libcap/cap v1.2.78
)
require (
ganigeorgiev.com/fexpr v0.7.0 // indirect
ganigeorgiev.com/pocketbase/ozzo-validation/v4 v4.4.1 // indirect
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
github.com/disintegration/imaging v1.6.2 // indirect
github.com/domodwyer/mailyak/v3 v3.6.2 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/fatih/color v1.18.0 // indirect
github.com/gabriel-vasile/mimetype v1.4.9 // indirect
github.com/ganigeorgiev/fexpr v0.5.0 // indirect
github.com/go-ozzo/ozzo-validation/v4 v4.3.0 // indirect
github.com/go-sql-driver/mysql v1.8.1 // indirect
github.com/golang-jwt/jwt/v5 v5.3.0 // indirect
github.com/google/go-cmp v0.7.0 // indirect
github.com/dustin/go-humanize v1.1.0 // indirect
github.com/fatih/color v1.19.0 // indirect
github.com/fsnotify/fsnotify v1.10.1 // indirect
github.com/gabriel-vasile/mimetype v1.4.15 // indirect
github.com/go-sql-driver/mysql v1.9.3 // indirect
github.com/golang-jwt/jwt/v5 v5.3.1 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/josharian/native v1.1.0 // indirect
github.com/mattn/go-colorable v0.1.14 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-colorable v0.1.16 // indirect
github.com/mattn/go-isatty v0.0.24 // indirect
github.com/mdlayher/ethernet v0.0.0-20220221185849-529eae5b6118 // indirect
github.com/mdlayher/packet v1.1.2 // indirect
github.com/mdlayher/socket v0.5.1 // indirect
github.com/ncruces/go-strftime v0.1.9 // indirect
github.com/mdlayher/packet v1.2.0 // indirect
github.com/mdlayher/socket v0.7.0 // indirect
github.com/ncruces/go-strftime v1.1.0 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
github.com/spf13/cast v1.9.2 // indirect
github.com/spf13/cobra v1.9.1 // indirect
github.com/spf13/pflag v1.0.7 // indirect
github.com/stretchr/testify v1.8.1 // indirect
golang.org/x/crypto v0.40.0 // indirect
golang.org/x/exp v0.0.0-20250718183923-645b1fa84792 // indirect
golang.org/x/image v0.29.0 // indirect
golang.org/x/net v0.42.0 // indirect
golang.org/x/oauth2 v0.30.0 // indirect
golang.org/x/sync v0.16.0 // indirect
golang.org/x/text v0.27.0 // indirect
modernc.org/libc v1.66.3 // indirect
github.com/spf13/cast v1.10.0 // indirect
github.com/spf13/cobra v1.10.2 // indirect
github.com/spf13/pflag v1.0.10 // indirect
github.com/stretchr/testify v1.11.1 // indirect
golang.org/x/crypto v0.58.0 // indirect
golang.org/x/image v0.47.0 // indirect
golang.org/x/oauth2 v0.37.0 // indirect
golang.org/x/sync v0.24.0 // indirect
golang.org/x/text v0.43.0 // indirect
kernel.org/pub/linux/libs/security/libcap/psx v1.2.78 // indirect
modernc.org/libc v1.77.1 // indirect
modernc.org/mathutil v1.7.1 // indirect
modernc.org/memory v1.11.0 // indirect
modernc.org/sqlite v1.38.2 // indirect
modernc.org/memory v1.12.1 // indirect
modernc.org/sqlite v1.60.1 // indirect
)
+89 -83
View File
@@ -1,5 +1,13 @@
filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=
ganigeorgiev.com/fexpr v0.7.0 h1:Os5bP9dU13UNo5qDTsTPTTkodLM96kO52WIEmMmCt30=
ganigeorgiev.com/fexpr v0.7.0/go.mod h1:XrG5iYw+AGq55zq2+QY1zQvO+ovbEca08u7q0hucPdY=
ganigeorgiev.com/pocketbase/dbx v1.13.0 h1:t8S5CaMv93tEOqaOToFaVQ994zldshdhIrVHKmxRjwc=
ganigeorgiev.com/pocketbase/dbx v1.13.0/go.mod h1:QefEiWbbE/YoSipLGg33FbNc/GAX/2f3ymz02j2MGKo=
ganigeorgiev.com/pocketbase/ozzo-validation/v4 v4.4.1 h1:teL3Lw7HCGZRdIQdqE/gV5DueFaN5Wj+/r4Ewg3M2WA=
ganigeorgiev.com/pocketbase/ozzo-validation/v4 v4.4.1/go.mod h1:oV1SPPkS3PlKYYj+r9YDs48ooAWgC736cuFanXDXxbM=
ganigeorgiev.com/pocketbase/pocketbase v0.41.1 h1:qIDj5ZE8ysev7LJNcLR4eeYICme5hDF/Ry3bQ9nOcTA=
ganigeorgiev.com/pocketbase/pocketbase v0.41.1/go.mod h1:PBkQKVnCfL7Hi9MnXY9bJDME/sfEEbZ6VwAb+8xXQXE=
github.com/asaskevich/govalidator v0.0.0-20200108200545-475eaeb16496/go.mod h1:oGkLhpf+kjZl6xBf758TQhh5XrAeiJv/7FRz/2spLIg=
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so=
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw=
@@ -11,68 +19,67 @@ github.com/disintegration/imaging v1.6.2 h1:w1LecBlG2Lnp8B3jk5zSuNqd7b4DXhcjwek1
github.com/disintegration/imaging v1.6.2/go.mod h1:44/5580QXChDfwIclfc/PCwrr44amcmDAg8hxG0Ewe4=
github.com/domodwyer/mailyak/v3 v3.6.2 h1:x3tGMsyFhTCaxp6ycgR0FE/bu5QiNp+hetUuCOBXMn8=
github.com/domodwyer/mailyak/v3 v3.6.2/go.mod h1:lOm/u9CyCVWHeaAmHIdF4RiKVxKUT/H5XX10lIKAL6c=
github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=
github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=
github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU=
github.com/dustin/go-humanize v1.1.0 h1:dbKTrvD0klcbBV/h4AWJdMuZogJACoMlvWIWZ5b2xWg=
github.com/dustin/go-humanize v1.1.0/go.mod h1:hc1CvRkJMsgxqjmjMQF3QNRAZBwY8AXBAzKYoSX9sFI=
github.com/fatih/color v1.19.0 h1:Zp3PiM21/9Ld6FzSKyL5c/BULoe/ONr9KlbYVOfG8+w=
github.com/fatih/color v1.19.0/go.mod h1:zNk67I0ZUT1bEGsSGyCZYZNrHuTkJJB+r6Q9VuMi0LE=
github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=
github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
github.com/gabriel-vasile/mimetype v1.4.9 h1:5k+WDwEsD9eTLL8Tz3L0VnmVh9QxGjRmjBvAG7U/oYY=
github.com/gabriel-vasile/mimetype v1.4.9/go.mod h1:WnSQhFKJuBlRyLiKohA/2DtIlPFAbguNaG7QCHcyGok=
github.com/ganigeorgiev/fexpr v0.5.0 h1:XA9JxtTE/Xm+g/JFI6RfZEHSiQlk+1glLvRK1Lpv/Tk=
github.com/ganigeorgiev/fexpr v0.5.0/go.mod h1:RyGiGqmeXhEQ6+mlGdnUleLHgtzzu/VGO2WtJkF5drE=
github.com/go-ozzo/ozzo-validation/v4 v4.3.0 h1:byhDUpfEwjsVQb1vBunvIjh2BHQ9ead57VkAEY4V+Es=
github.com/go-ozzo/ozzo-validation/v4 v4.3.0/go.mod h1:2NKgrcHl3z6cJs+3Oo940FPRiTzuqKbvfrL2RxCj6Ew=
github.com/fsnotify/fsnotify v1.10.1 h1:b0/UzAf9yR5rhf3RPm9gf3ehBPpf0oZKIjtpKrx59Ho=
github.com/fsnotify/fsnotify v1.10.1/go.mod h1:TLheqan6HD6GBK6PrDWyDPBaEV8LspOxvPSjC+bVfgo=
github.com/gabriel-vasile/mimetype v1.4.15 h1:05iP/CYtZ/w455R/KZM6rZ5ieAdh99UPtd+d3YzLmaI=
github.com/gabriel-vasile/mimetype v1.4.15/go.mod h1:azpTcoLcDZRNgFou5j+APrqQx9HqVPWa6ijYQIIVswQ=
github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w=
github.com/go-sql-driver/mysql v1.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpvNJ1Y=
github.com/go-sql-driver/mysql v1.8.1/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqwuVSjsCm7DZg=
github.com/golang-jwt/jwt/v5 v5.3.0 h1:pv4AsKCKKZuqlgs5sUmn4x8UlGa0kEVt/puTpKx9vvo=
github.com/golang-jwt/jwt/v5 v5.3.0/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE=
github.com/go-sql-driver/mysql v1.9.3 h1:U/N249h2WzJ3Ukj8SowVFjdtZKfu9vlLZxjPXV1aweo=
github.com/go-sql-driver/mysql v1.9.3/go.mod h1:qn46aNg1333BRMNU69Lq93t8du/dwxI64Gl8i5p1WMU=
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/godbus/dbus/v5 v5.2.2 h1:TUR3TgtSVDmjiXOgAAyaZbYmIeP3DPkld3jgKGV8mXQ=
github.com/godbus/dbus/v5 v5.2.2/go.mod h1:3AAv2+hPq5rdnr5txxxRwiGjPXamgoIHgz9FPBfOp3c=
github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY=
github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE=
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE=
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
github.com/google/pprof v0.0.0-20250317173921-a4b03ec1a45e h1:ijClszYn+mADRFY17kjQEVQ1XRhq2/JR1M3sGqeJoxs=
github.com/google/pprof v0.0.0-20250317173921-a4b03ec1a45e/go.mod h1:boTsfXsheKC2y+lKOCMpSfarhxDeIzfZG1jqGcPl3cA=
github.com/google/pprof v0.0.0-20261016150608-1facf8f91b50 h1:PlNWJRxu5APSV0pWqfIsZ0qt9OOGHSWfZQ4zvx+WgWs=
github.com/google/pprof v0.0.0-20261016150608-1facf8f91b50/go.mod h1:yUo1AMMpsPIDFGuwDK8nLcf8+vvAd5l2O6JDZ6hpwrM=
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k=
github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM=
github.com/holoplot/go-avahi v1.0.1 h1:XcqR2keL4qWRnlxHD5CAOdWpLFZJ+EOUK0vEuylfvvk=
github.com/holoplot/go-avahi v1.0.1/go.mod h1:qH5psEKb0DK+BRplMfc+RY4VMOlbf6mqfxgpMy6aP0M=
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
github.com/josharian/native v1.0.0/go.mod h1:7X/raswPFr05uY3HiLlYeyQntB6OO7E/d2Cu7qoaN2w=
github.com/josharian/native v1.1.0 h1:uuaP0hAbW7Y4l0ZRQ6C9zfb7Mg1mbFKry/xzDAfmtLA=
github.com/josharian/native v1.1.0/go.mod h1:7X/raswPFr05uY3HiLlYeyQntB6OO7E/d2Cu7qoaN2w=
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE=
github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8=
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/mattn/go-colorable v0.1.16 h1:+2YjeAe7xP1OQbZW1jERPWWCDLlNqFNCvjiqGiAt84A=
github.com/mattn/go-colorable v0.1.16/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8=
github.com/mattn/go-isatty v0.0.24 h1:tGZZoVgT/KiqK1c8ocVLeDS8BSWMRd47J3Lbz7vsReI=
github.com/mattn/go-isatty v0.0.24/go.mod h1:nMCL3Zebbrt45jsMDgnfIwz6ydEQApk5oEI3HqDio6A=
github.com/mdlayher/ethernet v0.0.0-20190313224307-5b5fc417d966/go.mod h1:5s5p/sMJ6sNsFl6uCh85lkFGV8kLuIYJCRJLavVJwvg=
github.com/mdlayher/ethernet v0.0.0-20220221185849-529eae5b6118 h1:2oDp6OOhLxQ9JBoUuysVz9UZ9uI6oLUbvAZu0x8o+vE=
github.com/mdlayher/ethernet v0.0.0-20220221185849-529eae5b6118/go.mod h1:ZFUnHIVchZ9lJoWoEGUg8Q3M4U8aNNWA3CVSUTkW4og=
github.com/mdlayher/packet v1.0.0/go.mod h1:eE7/ctqDhoiRhQ44ko5JZU2zxB88g+JH/6jmnjzPjOU=
github.com/mdlayher/packet v1.1.2 h1:3Up1NG6LZrsgDVn6X4L9Ge/iyRyxFEFD9o6Pr3Q1nQY=
github.com/mdlayher/packet v1.1.2/go.mod h1:GEu1+n9sG5VtiRE4SydOmX5GTwyyYlteZiFU+x0kew4=
github.com/mdlayher/packet v1.2.0 h1:SX7/oY0+nkKo7p4Sv30+TIc3YuWgvDEf0eucTXRyPqk=
github.com/mdlayher/packet v1.2.0/go.mod h1:UtYVnQt+Zj6UD0F89HfzkqGXaYqys1NwkrS86wlLCv4=
github.com/mdlayher/raw v0.0.0-20190313224157-43dbcdd7739d/go.mod h1:r1fbeITl2xL/zLbVnNHFyOzQJTgr/3fpf1lJX/cjzR8=
github.com/mdlayher/socket v0.2.1/go.mod h1:QLlNPkFR88mRUNQIzRBMfXxwKal8H7u1h3bL1CV+f0E=
github.com/mdlayher/socket v0.5.1 h1:VZaqt6RkGkt2OE9l3GcC6nZkqD3xKeQLyfleW/uBcos=
github.com/mdlayher/socket v0.5.1/go.mod h1:TjPLHI1UgwEv5J1B5q0zTZq12A/6H7nKmtTanQE37IQ=
github.com/mdlayher/socket v0.7.0 h1:qVREPVwtUMg17pwvveQxpurq0PVisMxi3FGgpsorMYQ=
github.com/mdlayher/socket v0.7.0/go.mod h1:f7iKql2EK/rfsWYDKofKjk2Ig7I+6HQWdMIdn1tO4A4=
github.com/mdlayher/wol v0.0.0-20220221231636-b763a792253a h1:fpQi42PM6HzbHwNg6a7OvLbh5l49Rgr7GCARozjHwio=
github.com/mdlayher/wol v0.0.0-20220221231636-b763a792253a/go.mod h1:XX6nvyQpGc8E4KaQm62FyexOYd36ilpyfYf8wjgMDV8=
github.com/ncruces/go-strftime v0.1.9 h1:bY0MQC28UADQmHmaF5dgpLmImcShSi2kHU9XLdhx/f4=
github.com/ncruces/go-strftime v0.1.9/go.mod h1:Fwc5htZGVVkseilnfgOVb9mKy6w1naJmn9CehxcKcls=
github.com/ncruces/go-strftime v1.1.0 h1:vtPmPWMkb539RGV9WpWT9EwJGvrOCKvMNI4obWL47Hk=
github.com/ncruces/go-strftime v1.1.0/go.mod h1:yVaq7iwCN09vHRrKBrrflXT0M9tTMG2KmZ9Fj7xeG/g=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/pocketbase/dbx v1.11.0 h1:LpZezioMfT3K4tLrqA55wWFw1EtH1pM4tzSVa7kgszU=
github.com/pocketbase/dbx v1.11.0/go.mod h1:xXRCIAKTHMgUCyCKZm55pUOdvFziJjQfXaWKhu2vhMs=
github.com/pocketbase/pocketbase v0.29.1 h1:mqoLTkezSd+GXKpUoJpus/j6OS2M7RlWDNtPZbb8Kj0=
github.com/pocketbase/pocketbase v0.29.1/go.mod h1:QZPKtMCWfiDJb0aLhwgj7ZOr6O8tusbui2EhTFAHThU=
github.com/prometheus-community/pro-bing v0.7.0 h1:KFYFbxC2f2Fp6c+TyxbCOEarf7rbnzr9Gw8eIb0RfZA=
github.com/prometheus-community/pro-bing v0.7.0/go.mod h1:Moob9dvlY50Bfq6i88xIwfyw7xLFHH69LUgx9n5zqCE=
github.com/prometheus-community/pro-bing v0.9.1 h1:kpuAr6AU2oRtzGihJSUcetHtjc7ku7h6PxeuW9RVrQw=
github.com/prometheus-community/pro-bing v0.9.1/go.mod h1:z79wYTxAOf6FpTng0QdIhZ3j/Nd5l3+gnFSCIT+SiSQ=
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE=
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
github.com/robfig/cron/v3 v3.0.1 h1:WdRxkvbJztn8LMz/QEvLN5sBU+xKpSqwwUO1Pjr4qDs=
@@ -80,84 +87,83 @@ github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzG
github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/spf13/cast v1.9.2 h1:SsGfm7M8QOFtEzumm7UZrZdLLquNdzFYfIbEXntcFbE=
github.com/spf13/cast v1.9.2/go.mod h1:jNfB8QC9IA6ZuY2ZjDp0KtFO2LZZlg4S/7bzP6qqeHo=
github.com/spf13/cobra v1.9.1 h1:CXSaggrXdbHK9CF+8ywj8Amf7PBRmPCOJugH954Nnlo=
github.com/spf13/cobra v1.9.1/go.mod h1:nDyEzZ8ogv936Cinf6g1RU9MRY64Ir93oCnqb9wxYW0=
github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/spf13/pflag v1.0.7 h1:vN6T9TfwStFPFM5XzjsvmzZkLuaLX+HS+0SeFLRgU6M=
github.com/spf13/pflag v1.0.7/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/spf13/cast v1.10.0 h1:h2x0u2shc1QuLHfxi+cTJvs30+ZAHOGRic8uyGTDWxY=
github.com/spf13/cast v1.10.0/go.mod h1:jNfB8QC9IA6ZuY2ZjDp0KtFO2LZZlg4S/7bzP6qqeHo=
github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU=
github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4=
github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk=
github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.40.0 h1:r4x+VvoG5Fm+eJcxMaY8CQM7Lb0l1lsmjGBQ6s8BfKM=
golang.org/x/crypto v0.40.0/go.mod h1:Qr1vMER5WyS2dfPHAlsOj01wgLbsyWtFn/aY+5+ZdxY=
golang.org/x/exp v0.0.0-20250718183923-645b1fa84792 h1:R9PFI6EUdfVKgwKjZef7QIwGcBKu86OEFpJ9nUEP2l4=
golang.org/x/exp v0.0.0-20250718183923-645b1fa84792/go.mod h1:A+z0yzpGtvnG90cToK5n2tu8UJVP2XUATh+r+sfOOOc=
golang.org/x/crypto v0.58.0 h1:COkYLr4k7nDI4r6QtMML2AfzeIswWHAJthLS6K/M/54=
golang.org/x/crypto v0.58.0/go.mod h1:Xh+kl5A+M0gMiWDytH2Hhr5Z7WbNCpv/eB/EFgfSk+w=
golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
golang.org/x/image v0.29.0 h1:HcdsyR4Gsuys/Axh0rDEmlBmB68rW1U9BUdB3UVHsas=
golang.org/x/image v0.29.0/go.mod h1:RVJROnf3SLK8d26OW91j4FrIHGbsJ8QnbEocVTOWQDA=
golang.org/x/mod v0.26.0 h1:EGMPT//Ezu+ylkCijjPc+f4Aih7sZvaAr+O3EHBxvZg=
golang.org/x/mod v0.26.0/go.mod h1:/j6NAhSk8iQ723BGAUyoAcn7SlD7s15Dp9Nd/SfeaFQ=
golang.org/x/image v0.47.0 h1:za/8gVz++PPZqmZJBNSISICN5Rrj5zixP/8K++fgmqo=
golang.org/x/image v0.47.0/go.mod h1:IkN5o4A7vq55vXN8FWjjnhg9Rs2GOtffqsSi9mWAKYE=
golang.org/x/mod v0.42.0 h1:ICeL3t2L30ljSPHHxDnR4fqVcBt/zR2zJAb9juavmQg=
golang.org/x/mod v0.42.0/go.mod h1:u5fzIrRInkL8MaO1cbRkUHT64v303YIT5KEqpNr7jRs=
golang.org/x/net v0.0.0-20190313220215-9f648a60d977/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
golang.org/x/net v0.42.0 h1:jzkYrhi3YQWD6MLBJcsklgQsoAcw89EcZbJw8Z614hs=
golang.org/x/net v0.42.0/go.mod h1:FF1RA5d3u7nAYA4z2TkclSCKh68eSXtiFwcWQpPXdt8=
golang.org/x/oauth2 v0.30.0 h1:dnDm7JmhM45NNpd8FDDeLhK6FwqbOf4MLCM9zb1BOHI=
golang.org/x/oauth2 v0.30.0/go.mod h1:B++QgG3ZKulg6sRPGD/mqlHQs5rB3Ml9erfeDY7xKlU=
golang.org/x/net v0.62.0 h1:18ELalfM5+XNRwzM2nYqXsZQ9ByS1uhj2O/U7+5jqRY=
golang.org/x/net v0.62.0/go.mod h1:WgDCOTH8iwtB66T4/GfI94AHo/hhdb7Hah9NDseQfiI=
golang.org/x/oauth2 v0.37.0 h1:JUlcxA8oAtauLfiH8FX2/FkAWHAdi0QtGCGc+hofE98=
golang.org/x/oauth2 v0.37.0/go.mod h1:IxwZNxUULJmpBFf9K/9NTMSIfZZuvuTy1gGxhigP/58=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.16.0 h1:ycBJEhp9p4vXvUZNszeOq0kGTPghopOL8q0fq3vstxw=
golang.org/x/sync v0.16.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
golang.org/x/sync v0.24.0 h1:iqiDrGoDgyuvAKrhLQthUEzU/R378N78gXbBjxed7oA=
golang.org/x/sync v0.24.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.34.0 h1:H5Y5sJ2L2JRdyv7ROF1he/lPdvFsd0mJHFw2ThKHxLA=
golang.org/x/sys v0.34.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
golang.org/x/sys v0.49.0 h1:XbzkgYJHdqh/8m2Uu0W/dQv8nktxx4BFHp1M0gROTXA=
golang.org/x/sys v0.49.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.27.0 h1:4fGWRpyh641NLlecmyl4LOe6yDdfaYNrGb2zdfo4JV4=
golang.org/x/text v0.27.0/go.mod h1:1D28KMCvyooCX9hBiosv5Tz/+YLxj0j7XhWjpSUF7CU=
golang.org/x/text v0.43.0 h1:1QivrlhwAsnMOcqgOdl9my7s9OyZl8O5/UGUTJVXoWc=
golang.org/x/text v0.43.0/go.mod h1:hbSIYA/amXcRXTFSZqh8tWHEoqRvvbKPJ2uz/KU+a+s=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.35.0 h1:mBffYraMEf7aa0sB+NuKnuCy8qI/9Bughn8dC2Gu5r0=
golang.org/x/tools v0.35.0/go.mod h1:NKdj5HkL/73byiZSJjqJgKn3ep7KjFkBOkR/Hps3VPw=
golang.org/x/tools v0.52.0 h1:ryxg4U63oaUYk7uOLTF37n43f4qgtGvqV4Ioit1BaEs=
golang.org/x/tools v0.52.0/go.mod h1:ItcP5UNaVGG+Yc4eIYmaFLNJ4soEopkx5Y2d4lcEurs=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
modernc.org/cc/v4 v4.26.2 h1:991HMkLjJzYBIfha6ECZdjrIYz2/1ayr+FL8GN+CNzM=
modernc.org/cc/v4 v4.26.2/go.mod h1:uVtb5OGqUKpoLWhqwNQo/8LwvoiEBLvZXIQ/SmO6mL0=
modernc.org/ccgo/v4 v4.28.0 h1:rjznn6WWehKq7dG4JtLRKxb52Ecv8OUGah8+Z/SfpNU=
modernc.org/ccgo/v4 v4.28.0/go.mod h1:JygV3+9AV6SmPhDasu4JgquwU81XAKLd3OKTUDNOiKE=
modernc.org/fileutil v1.3.8 h1:qtzNm7ED75pd1C7WgAGcK4edm4fvhtBsEiI/0NQ54YM=
modernc.org/fileutil v1.3.8/go.mod h1:HxmghZSZVAz/LXcMNwZPA/DRrQZEVP9VX0V4LQGQFOc=
kernel.org/pub/linux/libs/security/libcap/cap v1.2.78 h1:jgqg4gyu2BaYW9L6uzEtGLf8GNREwk/z4UFdwt5F3pE=
kernel.org/pub/linux/libs/security/libcap/cap v1.2.78/go.mod h1:VjuVda6m2qGkpCVfrFkpTGyvkdlZ2N5/yfo89tujlg8=
kernel.org/pub/linux/libs/security/libcap/psx v1.2.78 h1:PC3yNs51cX5LZ7U57a7xielBcoXB3xnV+rXD8V0H0DQ=
kernel.org/pub/linux/libs/security/libcap/psx v1.2.78/go.mod h1:+l6Ee2F59XiJ2I6WR5ObpC1utCQJZ/VLsEbQCD8RG24=
modernc.org/cc/v4 v4.29.7 h1:q+NXGJ0bK3b4TXFYQQVr9pYETGnmwFWkrUzJnMya/Tg=
modernc.org/cc/v4 v4.29.7/go.mod h1:OnovgIhbbMXMu1aISnJ0wvVD1KnW+cAUJkIrAWh+kVI=
modernc.org/ccgo/v4 v4.36.1 h1:ZNIUZAryN0UgnJwtyxrdEzcFc3yD4Cu4AzjfPXsLsIE=
modernc.org/ccgo/v4 v4.36.1/go.mod h1:rrtGc2QkS239nYb/mQNuBMyjq3/y3ZXWbBjPoV3wqzA=
modernc.org/fileutil v1.4.0 h1:j6ZzNTftVS054gi281TyLjHPp6CPHr2KCxEXjEbD6SM=
modernc.org/fileutil v1.4.0/go.mod h1:EqdKFDxiByqxLk8ozOxObDSfcVOv/54xDs/DUHdvCUU=
modernc.org/gc/v2 v2.6.5 h1:nyqdV8q46KvTpZlsw66kWqwXRHdjIlJOhG6kxiV/9xI=
modernc.org/gc/v2 v2.6.5/go.mod h1:YgIahr1ypgfe7chRuJi2gD7DBQiKSLMPgBQe9oIiito=
modernc.org/gc/v3 v3.1.5 h1:21ldfPfRYE31Tb7B3mwAK8gy1AxP4+dKjrOQPfqakoc=
modernc.org/gc/v3 v3.1.5/go.mod h1:HFK/6AGESC7Ex+EZJhJ2Gni6cTaYpSMmU/cT9RmlfYY=
modernc.org/goabi0 v0.2.0 h1:HvEowk7LxcPd0eq6mVOAEMai46V+i7Jrj13t4AzuNks=
modernc.org/goabi0 v0.2.0/go.mod h1:CEFRnnJhKvWT1c1JTI3Avm+tgOWbkOu5oPA8eH8LnMI=
modernc.org/libc v1.66.3 h1:cfCbjTUcdsKyyZZfEUKfoHcP3S0Wkvz3jgSzByEWVCQ=
modernc.org/libc v1.66.3/go.mod h1:XD9zO8kt59cANKvHPXpx7yS2ELPheAey0vjIuZOhOU8=
modernc.org/libc v1.77.1 h1:Ct8j47QtiZ1Enj2DtFXQtUqrPCAjdCmPjtCuvrYQ0Hs=
modernc.org/libc v1.77.1/go.mod h1:87/pZ4L6nD1zqW4nItuS12YO7hN1igAah34xjnQo/W0=
modernc.org/mathutil v1.7.1 h1:GCZVGXdaN8gTqB1Mf/usp1Y/hSqgI2vAGGP4jZMCxOU=
modernc.org/mathutil v1.7.1/go.mod h1:4p5IwJITfppl0G4sUEDtCr4DthTaT47/N3aT6MhfgJg=
modernc.org/memory v1.11.0 h1:o4QC8aMQzmcwCK3t3Ux/ZHmwFPzE6hf2Y5LbkRs+hbI=
modernc.org/memory v1.11.0/go.mod h1:/JP4VbVC+K5sU2wZi9bHoq2MAkCnrt2r98UGeSK7Mjw=
modernc.org/opt v0.1.4 h1:2kNGMRiUjrp4LcaPuLY2PzUfqM/w9N23quVwhKt5Qm8=
modernc.org/opt v0.1.4/go.mod h1:03fq9lsNfvkYSfxrfUhZCWPk1lm4cq4N+Bh//bEtgns=
modernc.org/memory v1.12.1 h1:nFMiWrpStgZczNl6XI9GnIk/rWhYIyHGUaR04pGbp9g=
modernc.org/memory v1.12.1/go.mod h1:/JP4VbVC+K5sU2wZi9bHoq2MAkCnrt2r98UGeSK7Mjw=
modernc.org/opt v0.2.0 h1:tGyef5ApycA7FSEOMraay9SaTk5zmbx7Tu+cJs4QKZg=
modernc.org/opt v0.2.0/go.mod h1:03fq9lsNfvkYSfxrfUhZCWPk1lm4cq4N+Bh//bEtgns=
modernc.org/sortutil v1.2.1 h1:+xyoGf15mM3NMlPDnFqrteY07klSFxLElE2PVuWIJ7w=
modernc.org/sortutil v1.2.1/go.mod h1:7ZI3a3REbai7gzCLcotuw9AC4VZVpYMjDzETGsSMqJE=
modernc.org/sqlite v1.38.2 h1:Aclu7+tgjgcQVShZqim41Bbw9Cho0y/7WzYptXqkEek=
modernc.org/sqlite v1.38.2/go.mod h1:cPTJYSlgg3Sfg046yBShXENNtPrWrDX8bsbAQBzgQ5E=
modernc.org/sqlite v1.60.1 h1:/blz53O951KWFOso4QQvEs/Fq6cDBKLtMVrYNSeJVKw=
modernc.org/sqlite v1.60.1/go.mod h1:1dIoEagfDE72QytD5scH1lxARtaUgKgHC/NuApA27r0=
modernc.org/strutil v1.2.1 h1:UneZBkQA+DX2Rp35KcM69cSsNES9ly8mQWD71HKlOA0=
modernc.org/strutil v1.2.1/go.mod h1:EHkiggD70koQxjVdSBM3JKM7k6L0FbGE5eymy9i3B9A=
modernc.org/token v1.1.0 h1:Xl7Ap9dKaEs5kLoOQeQmPWevfnk/DM5qcLcYlA8ys6Y=
+136
View File
@@ -0,0 +1,136 @@
// Package iptracking updates the stored ip addresses of opted-in devices by
// scanning their local subnets for their mac addresses.
package iptracking
import (
"net"
"sync/atomic"
"ganigeorgiev.com/pocketbase/pocketbase/core"
"github.com/seriousm4x/upsnap/logging"
"github.com/seriousm4x/upsnap/networking"
)
var sweepRunning atomic.Bool
// sweepOwed marks that a periodic sweep was skipped while no realtime
// clients were connected, so the next client to connect gets a catch-up
// sweep. Starts true so the first client after boot gets fresh ips.
var sweepOwed atomic.Bool
func init() {
sweepOwed.Store(true)
}
// nmapScan is a seam for tests to stub out the privileged nmap invocation
var nmapScan = networking.NmapScan
// TrackAllSubnets scans the local subnets of devices with ip tracking enabled
// and updates their ip address if their mac address is found at a different
// one. Non-scannable subnets are silently skipped, but their devices can
// still be updated by another subnet's scan that finds their mac address,
// as long as the new ip stays within the device's own subnet.
func TrackAllSubnets(app core.App) {
log := logging.Logger(app)
// skip if the previous sweep is still running
if !sweepRunning.CompareAndSwap(false, true) {
return
}
defer sweepRunning.Store(false)
devices, err := app.FindRecordsByFilter("devices", "track_ip = true", "", 0, 0)
if err != nil {
log.Error("Failed to load devices for IP tracking", "error", err)
return
}
// collect the unique scannable subnets of the tracked devices
subnets := make(map[string]*net.IPNet)
for _, device := range devices {
subnet, err := networking.DeviceSubnet(device.GetString("ip"), device.GetString("netmask"))
if err != nil {
log.Error("Failed to determine device subnet for IP tracking", "device", device.GetString("name"), "error", err)
continue
}
if networking.ValidateScannableSubnet(subnet) != nil {
continue
}
subnets[subnet.String()] = subnet
}
for cidr, subnet := range subnets {
if err := TrackOneSubnet(app, subnet); err != nil {
log.Error("IP tracking scan failed", "subnet", cidr, "error", err)
}
}
}
// PeriodicSweep runs the scheduled sweep, or skips it when paused — no
// realtime clients connected while lazy_ping is on — owing a catch-up
// sweep to the next client that connects.
func PeriodicSweep(app core.App, pause bool) {
if pause {
sweepOwed.Store(true)
return
}
TrackAllSubnets(app)
}
// CatchUpSweep runs a sweep if one is owed, i.e. the periodic sweep was
// skipped while nobody was connected or hasn't run since boot. Clients
// connecting while sweeps run on schedule trigger nothing.
func CatchUpSweep(app core.App) {
if !sweepOwed.CompareAndSwap(true, false) {
return
}
TrackAllSubnets(app)
}
// TrackOneSubnet runs an nmap scan of the given subnet and updates the ip
// address of any ip-tracked device whose mac address is found at a new
// address within its own subnet. Returns an error for a non-scannable subnet.
func TrackOneSubnet(app core.App, subnet *net.IPNet) error {
log := logging.Logger(app)
if err := networking.ValidateScannableSubnet(subnet); err != nil {
return err
}
scan, err := nmapScan(subnet.String())
if err != nil {
return err
}
macToIp := scan.MacToIP()
devices, err := app.FindRecordsByFilter("devices", "track_ip = true", "", 0, 0)
if err != nil {
return err
}
for _, device := range devices {
parsedMac, err := net.ParseMAC(device.GetString("mac"))
if err != nil {
continue
}
newIp, ok := macToIp[parsedMac.String()]
if !ok || newIp == device.GetString("ip") {
continue
}
// only move a device within its own subnet, so that a scan can't
// relocate devices tracked on other subnets that see the same mac
deviceSubnet, err := networking.DeviceSubnet(device.GetString("ip"), device.GetString("netmask"))
if err != nil || !deviceSubnet.Contains(net.ParseIP(newIp)) {
continue
}
oldIP := device.GetString("ip")
device.Set("ip", newIp)
// only write the changed ip field to avoid clobbering concurrent
// status updates from the ping and wake/shutdown cronjobs
device.IgnoreUnchangedFields(true)
if err := app.Save(device); err != nil {
log.Error("Failed to save tracked device IP", "device", device.GetString("name"), "error", err)
} else {
log.Info("Device IP changed", "device", device.GetString("name"), "from", oldIP, "to", newIp)
}
}
return nil
}
+347
View File
@@ -0,0 +1,347 @@
package iptracking
import (
"encoding/xml"
"fmt"
"net"
"strings"
"testing"
"ganigeorgiev.com/pocketbase/pocketbase/core"
"ganigeorgiev.com/pocketbase/pocketbase/tests"
"github.com/seriousm4x/upsnap/networking"
// register the app migrations so test apps get the real schema
_ "github.com/seriousm4x/upsnap/migrations"
)
// newTestApp returns a throwaway app with all migrations applied.
func newTestApp(t *testing.T) *tests.TestApp {
t.Helper()
app, err := tests.NewTestApp(t.TempDir())
if err != nil {
t.Fatalf("Got unexpected error: %v", err)
}
t.Cleanup(app.Cleanup)
return app
}
func buildDevice(t *testing.T, app core.App, name, ip, netmask, mac string, trackIp bool) *core.Record {
t.Helper()
collection, err := app.FindCollectionByNameOrId("devices")
if err != nil {
t.Fatalf("Got unexpected error: %v", err)
}
device := core.NewRecord(collection)
device.Set("name", name)
device.Set("ip", ip)
device.Set("netmask", netmask)
device.Set("mac", mac)
device.Set("track_ip", trackIp)
return device
}
func newDevice(t *testing.T, app core.App, name, ip, netmask, mac string, trackIp bool) *core.Record {
t.Helper()
device := buildDevice(t, app, name, ip, netmask, mac, trackIp)
if err := app.Save(device); err != nil {
t.Fatalf("Got unexpected error: %v", err)
}
return device
}
// newLegacyDevice saves a device bypassing field validation, like rows
// created before the ip and mac format rules existed.
func newLegacyDevice(t *testing.T, app core.App, name, ip, netmask, mac string, trackIp bool) *core.Record {
t.Helper()
device := buildDevice(t, app, name, ip, netmask, mac, trackIp)
if err := app.SaveNoValidate(device); err != nil {
t.Fatalf("Got unexpected error: %v", err)
}
return device
}
// stubScan replaces the nmap seam with a canned scan reporting the given
// mac addresses at the given ips, and returns the list of scanned ranges.
func stubScan(t *testing.T, macToHostIp map[string]string) *[]string {
t.Helper()
var sample strings.Builder
sample.WriteString("<nmaprun>")
for mac, ip := range macToHostIp {
fmt.Fprintf(&sample, `<host><address addr=%q addrtype="ipv4"/><address addr=%q addrtype="mac"/></host>`, ip, mac)
}
sample.WriteString("</nmaprun>")
scan := networking.Nmaprun{}
if err := xml.Unmarshal([]byte(sample.String()), &scan); err != nil {
t.Fatalf("Got unexpected error: %v", err)
}
var scanned []string
orig := nmapScan
nmapScan = func(scanRange string) (networking.Nmaprun, error) {
scanned = append(scanned, scanRange)
return scan, nil
}
t.Cleanup(func() { nmapScan = orig })
return &scanned
}
func mustSubnet(t *testing.T, cidr string) *net.IPNet {
t.Helper()
_, subnet, err := net.ParseCIDR(cidr)
if err != nil {
t.Fatalf("Got unexpected error: %v", err)
}
return subnet
}
// The loopback /16 passes the scannable checks on any host, making it the
// only subnet a test can scan without depending on the environment.
const (
testSubnet = "127.0.0.0/16"
testNetmask = "255.255.0.0"
)
func TestTrackOneSubnetSkipsUntrackedDevices(t *testing.T) {
app := newTestApp(t)
device := newDevice(t, app, "untracked", "127.0.0.50", testNetmask, "AA:BB:CC:DD:EE:01", false)
stubScan(t, map[string]string{"AA:BB:CC:DD:EE:01": "127.0.0.99"})
if err := TrackOneSubnet(app, mustSubnet(t, testSubnet)); err != nil {
t.Fatalf("Got unexpected error: %v", err)
}
fresh, err := app.FindRecordById("devices", device.Id)
if err != nil {
t.Fatalf("Got unexpected error: %v", err)
}
if ip := fresh.GetString("ip"); ip != "127.0.0.50" {
t.Errorf("Ip of device without track_ip changed to %s", ip)
}
}
func TestTrackOneSubnetSkipPaths(t *testing.T) {
app := newTestApp(t)
saves := 0
app.OnRecordUpdate("devices").BindFunc(func(e *core.RecordEvent) error {
saves++
return e.Next()
})
testCases := []struct {
name string
ip string
mac string
legacy bool
}{
// A device mac that can't be parsed never matches
{
name: "Invalid Mac",
ip: "127.0.0.50",
mac: "not-a-mac",
legacy: true,
},
// A device mac missing from the scan results is left alone
{
name: "Mac Not In Scan",
ip: "127.0.0.50",
mac: "AA:BB:CC:DD:EE:02",
},
// A device ip without a computable subnet is never moved
{
name: "Invalid Device Ip",
ip: "999.999.999.999",
mac: "AA:BB:CC:DD:EE:01",
legacy: true,
},
}
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
create := newDevice
if tc.legacy {
create = newLegacyDevice
}
device := create(t, app, tc.name, tc.ip, testNetmask, tc.mac, true)
stubScan(t, map[string]string{"AA:BB:CC:DD:EE:01": "127.0.0.99"})
if err := TrackOneSubnet(app, mustSubnet(t, testSubnet)); err != nil {
t.Fatalf("Got unexpected error: %v", err)
}
fresh, err := app.FindRecordById("devices", device.Id)
if err != nil {
t.Fatalf("Got unexpected error: %v", err)
}
if ip := fresh.GetString("ip"); ip != tc.ip {
t.Errorf("Ip mismatch: expected %s, got %s", tc.ip, ip)
}
if saves != 0 {
t.Errorf("Expected no record updates, got %d", saves)
}
})
}
}
func TestTrackOneSubnetUnscannable(t *testing.T) {
app := newTestApp(t)
// TEST-NET-1 (RFC 5737) is never assigned to an interface
scanned := stubScan(t, nil)
if err := TrackOneSubnet(app, mustSubnet(t, "192.0.2.0/24")); err == nil {
t.Error("Expected error but got none")
}
if len(*scanned) != 0 {
t.Errorf("Expected no scans of an unscannable subnet, got %v", *scanned)
}
}
func TestTrackOneSubnetSameSubnetGuard(t *testing.T) {
app := newTestApp(t)
testCases := []struct {
name string
ip string
netmask string
mac string
scanMac string
foundIp string
wantIp string
}{
// A move within the device's own subnet is applied, with the
// stored dashed lower case mac matching the scanned
// colon-separated upper case one
{
name: "Within Own Subnet",
ip: "127.0.0.50",
netmask: testNetmask,
mac: "aa-bb-cc-dd-01-01",
scanMac: "AA:BB:CC:DD:01:01",
foundIp: "127.0.0.99",
wantIp: "127.0.0.99",
},
// The device's own subnet bounds the move, not the scanned one
{
name: "Narrower Subnet Within Scan",
ip: "127.0.5.5",
netmask: "255.255.255.0",
mac: "AA:BB:CC:DD:01:02",
foundIp: "127.0.5.9",
wantIp: "127.0.5.9",
},
// A found ip outside the device's narrower subnet is not applied,
// even though it is inside the scanned subnet
{
name: "Outside Own Subnet",
ip: "127.0.5.5",
netmask: "255.255.255.0",
mac: "AA:BB:CC:DD:01:03",
foundIp: "127.0.6.9",
wantIp: "127.0.5.5",
},
// A device from a disjoint subnet is never moved into the scanned one
{
name: "Disjoint Subnet",
ip: "10.9.9.9",
netmask: "255.255.255.0",
mac: "AA:BB:CC:DD:01:04",
foundIp: "127.0.0.99",
wantIp: "10.9.9.9",
},
}
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
device := newDevice(t, app, tc.name, tc.ip, tc.netmask, tc.mac, true)
scanMac := tc.scanMac
if scanMac == "" {
scanMac = tc.mac
}
stubScan(t, map[string]string{scanMac: tc.foundIp})
if err := TrackOneSubnet(app, mustSubnet(t, testSubnet)); err != nil {
t.Fatalf("Got unexpected error: %v", err)
}
fresh, err := app.FindRecordById("devices", device.Id)
if err != nil {
t.Fatalf("Got unexpected error: %v", err)
}
if ip := fresh.GetString("ip"); ip != tc.wantIp {
t.Errorf("Ip mismatch: expected %s, got %s", tc.wantIp, ip)
}
})
}
}
// A paused periodic sweep scans nothing and owes a catch-up sweep, which
// runs at most once until the next pause; an unpaused sweep scans directly.
func TestPeriodicSweepAndCatchUp(t *testing.T) {
app := newTestApp(t)
newDevice(t, app, "tracked", "127.0.0.50", testNetmask, "AA:BB:CC:DD:09:01", true)
scanned := stubScan(t, map[string]string{"AA:BB:CC:DD:09:01": "127.0.0.99"})
PeriodicSweep(app, true)
if len(*scanned) != 0 {
t.Fatalf("Expected no scans while paused, got %v", *scanned)
}
CatchUpSweep(app)
if len(*scanned) != 1 {
t.Fatalf("Expected one scan after a paused sweep, got %v", *scanned)
}
CatchUpSweep(app)
if len(*scanned) != 1 {
t.Errorf("Expected no scan when none is owed, got %v", *scanned)
}
PeriodicSweep(app, false)
if len(*scanned) != 2 {
t.Errorf("Expected an unpaused sweep to scan, got %v", *scanned)
}
CatchUpSweep(app)
if len(*scanned) != 2 {
t.Errorf("Expected an unpaused sweep to owe nothing, got %v", *scanned)
}
}
// TrackAllSubnets scans each unique scannable subnet once, silently skips the
// rest, and updates any tracked device found at a new ip within its own
// subnet — even one whose own subnet couldn't be scanned.
func TestTrackAllSubnets(t *testing.T) {
app := newTestApp(t)
first := newDevice(t, app, "first", "127.0.0.10", testNetmask, "AA:BB:CC:DD:02:01", true)
second := newDevice(t, app, "second", "127.0.0.20", testNetmask, "AA:BB:CC:DD:02:02", true)
// TEST-NET-1 (RFC 5737) is never assigned to an interface
unscannable := newDevice(t, app, "unscannable", "192.0.2.5", "255.255.255.0", "AA:BB:CC:DD:02:03", true)
// a /8 subnet is too large to scan but contains the found ip
wide := newDevice(t, app, "wide", "127.0.0.60", "255.0.0.0", "AA:BB:CC:DD:02:04", true)
scanned := stubScan(t, map[string]string{
"AA:BB:CC:DD:02:01": "127.0.0.11",
"AA:BB:CC:DD:02:02": "127.0.0.21",
"AA:BB:CC:DD:02:04": "127.0.0.61",
})
TrackAllSubnets(app)
if len(*scanned) != 1 || (*scanned)[0] != testSubnet {
t.Errorf("Expected a single scan of %s, got %v", testSubnet, *scanned)
}
wantIps := map[string]string{
first.Id: "127.0.0.11",
second.Id: "127.0.0.21",
unscannable.Id: "192.0.2.5",
wide.Id: "127.0.0.61",
}
for id, wantIp := range wantIps {
fresh, err := app.FindRecordById("devices", id)
if err != nil {
t.Fatalf("Got unexpected error: %v", err)
}
if ip := fresh.GetString("ip"); ip != wantIp {
t.Errorf("Ip mismatch for %s: expected %s, got %s", fresh.GetString("name"), wantIp, ip)
}
}
}
-30
View File
@@ -1,30 +0,0 @@
package logger
import (
"log"
"os"
)
const (
flags = log.Ldate | log.Ltime | log.Lshortfile
)
var (
Info = log.New(os.Stdout, "[INFO] ", flags)
Debug = log.New(os.Stdout, "[DEBUG] ", flags)
Warning = log.New(os.Stdout, "[WARNING] ", flags)
Error = log.New(os.Stderr, "[ERROR] ", flags)
)
func init() {
// TODO: decide if you want to log to a file to max
// output := io.MultiWriter(os.Stdout, logFile)
output := os.Stdout
Info.SetOutput(output)
Error.SetOutput(output)
Debug.SetOutput(output)
log.SetOutput(Debug.Writer())
log.SetPrefix("[DEBUG]")
log.SetFlags(flags)
}
+102
View File
@@ -0,0 +1,102 @@
package logging
import (
"context"
"errors"
"fmt"
"log/slog"
"os"
"runtime"
"strconv"
"strings"
"ganigeorgiev.com/pocketbase/pocketbase/core"
)
var consoleHandler slog.Handler
// ConfigureConsole sets console output for UpSnap logs. PocketBase persistence
// remains controlled by PocketBase's built-in log settings.
func ConfigureConsole(level string) error {
level = strings.TrimSpace(level)
if level == "" {
level = "INFO"
}
if strings.EqualFold(level, "OFF") {
consoleHandler = nil
return nil
}
var parsed slog.Level
if err := parsed.UnmarshalText([]byte(strings.ToUpper(level))); err != nil {
return fmt.Errorf("invalid UPSNAP_LOG_LEVEL %q (expected DEBUG, INFO, WARN, ERROR, or OFF)", level)
}
consoleHandler = slog.NewTextHandler(os.Stdout, &slog.HandlerOptions{
Level: parsed,
})
return nil
}
func relativeSource(file string) string {
file = strings.ReplaceAll(file, "\\", "/")
if index := strings.LastIndex(file, "/backend/"); index >= 0 {
return file[index+1:]
}
return file
}
// Logger writes through PocketBase's logger and mirrors UpSnap logs to stdout.
func Logger(app core.App) *slog.Logger {
handlers := []slog.Handler{app.Logger().Handler()}
if consoleHandler != nil && !app.IsDev() {
handlers = append(handlers, consoleHandler)
}
return slog.New(multiHandler(handlers)).With("upsnap", true)
}
type multiHandler []slog.Handler
func (h multiHandler) Enabled(ctx context.Context, level slog.Level) bool {
for _, handler := range h {
if handler.Enabled(ctx, level) {
return true
}
}
return false
}
func (h multiHandler) Handle(ctx context.Context, record slog.Record) error {
if record.PC != 0 {
frames := runtime.CallersFrames([]uintptr{record.PC})
frame, _ := frames.Next()
record.AddAttrs(slog.String(slog.SourceKey, relativeSource(frame.File)+":"+strconv.Itoa(frame.Line)))
}
var errs []error
for _, handler := range h {
if handler.Enabled(ctx, record.Level) {
if err := handler.Handle(ctx, record.Clone()); err != nil {
errs = append(errs, err)
}
}
}
return errors.Join(errs...)
}
func (h multiHandler) WithAttrs(attrs []slog.Attr) slog.Handler {
handlers := make(multiHandler, len(h))
for i, handler := range h {
handlers[i] = handler.WithAttrs(attrs)
}
return handlers
}
func (h multiHandler) WithGroup(name string) slog.Handler {
handlers := make(multiHandler, len(h))
for i, handler := range h {
handlers[i] = handler.WithGroup(name)
}
return handlers
}
+5 -2
View File
@@ -2,8 +2,9 @@ package main
import (
"embed"
"log"
"github.com/pocketbase/pocketbase/apis"
"ganigeorgiev.com/pocketbase/pocketbase/apis"
"github.com/seriousm4x/upsnap/pb"
)
@@ -12,5 +13,7 @@ var distDir embed.FS
var distDirFS = apis.MustSubFS(distDir, "pb_public")
func main() {
pb.StartPocketBase(distDirFS)
if err := pb.StartPocketBase(distDirFS); err != nil {
log.Fatal(err)
}
}
@@ -1,8 +1,8 @@
package migrations
import (
"github.com/pocketbase/pocketbase/core"
m "github.com/pocketbase/pocketbase/migrations"
"ganigeorgiev.com/pocketbase/pocketbase/core"
m "ganigeorgiev.com/pocketbase/pocketbase/migrations"
)
func init() {
@@ -1,8 +1,8 @@
package migrations
import (
"github.com/pocketbase/pocketbase/core"
m "github.com/pocketbase/pocketbase/migrations"
"ganigeorgiev.com/pocketbase/pocketbase/core"
m "ganigeorgiev.com/pocketbase/pocketbase/migrations"
)
func init() {
@@ -1,8 +1,8 @@
package migrations
import (
"github.com/pocketbase/pocketbase/core"
m "github.com/pocketbase/pocketbase/migrations"
"ganigeorgiev.com/pocketbase/pocketbase/core"
m "ganigeorgiev.com/pocketbase/pocketbase/migrations"
)
func init() {
@@ -3,8 +3,8 @@ package migrations
import (
"encoding/json"
"github.com/pocketbase/pocketbase/core"
m "github.com/pocketbase/pocketbase/migrations"
"ganigeorgiev.com/pocketbase/pocketbase/core"
m "ganigeorgiev.com/pocketbase/pocketbase/migrations"
)
func init() {
@@ -1,8 +1,8 @@
package migrations
import (
"github.com/pocketbase/pocketbase/core"
m "github.com/pocketbase/pocketbase/migrations"
"ganigeorgiev.com/pocketbase/pocketbase/core"
m "ganigeorgiev.com/pocketbase/pocketbase/migrations"
)
func init() {
@@ -1,8 +1,8 @@
package migrations
import (
"github.com/pocketbase/pocketbase/core"
m "github.com/pocketbase/pocketbase/migrations"
"ganigeorgiev.com/pocketbase/pocketbase/core"
m "ganigeorgiev.com/pocketbase/pocketbase/migrations"
)
func init() {
@@ -1,8 +1,8 @@
package migrations
import (
"github.com/pocketbase/pocketbase/core"
m "github.com/pocketbase/pocketbase/migrations"
"ganigeorgiev.com/pocketbase/pocketbase/core"
m "ganigeorgiev.com/pocketbase/pocketbase/migrations"
)
func init() {
@@ -1,8 +1,8 @@
package migrations
import (
"github.com/pocketbase/pocketbase/core"
m "github.com/pocketbase/pocketbase/migrations"
"ganigeorgiev.com/pocketbase/pocketbase/core"
m "ganigeorgiev.com/pocketbase/pocketbase/migrations"
)
func init() {
@@ -1,8 +1,8 @@
package migrations
import (
"github.com/pocketbase/pocketbase/core"
m "github.com/pocketbase/pocketbase/migrations"
"ganigeorgiev.com/pocketbase/pocketbase/core"
m "ganigeorgiev.com/pocketbase/pocketbase/migrations"
)
func init() {
@@ -1,8 +1,8 @@
package migrations
import (
"github.com/pocketbase/pocketbase/core"
m "github.com/pocketbase/pocketbase/migrations"
"ganigeorgiev.com/pocketbase/pocketbase/core"
m "ganigeorgiev.com/pocketbase/pocketbase/migrations"
)
func init() {
@@ -0,0 +1,100 @@
package migrations
import (
"ganigeorgiev.com/pocketbase/pocketbase/core"
m "ganigeorgiev.com/pocketbase/pocketbase/migrations"
)
func init() {
m.Register(func(app core.App) error {
collection, err := app.FindCollectionByNameOrId("z5lghx2r3tm45n1")
if err != nil {
return err
}
// update field
if err := collection.Fields.AddMarshaledJSONAt(2, []byte(`{
"autogeneratePattern": "",
"help": "",
"hidden": false,
"id": "1si6ajha",
"max": 0,
"min": 0,
"name": "ip",
"pattern": "^((25[0-5]|(2[0-4]|1\\d|[1-9]|)\\d)\\.?\\b){4}$",
"presentable": false,
"primaryKey": false,
"required": true,
"system": false,
"type": "text"
}`)); err != nil {
return err
}
// update field
if err := collection.Fields.AddMarshaledJSONAt(3, []byte(`{
"autogeneratePattern": "",
"help": "",
"hidden": false,
"id": "fyqmpon6",
"max": 0,
"min": 0,
"name": "mac",
"pattern": "^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$",
"presentable": false,
"primaryKey": false,
"required": true,
"system": false,
"type": "text"
}`)); err != nil {
return err
}
return app.Save(collection)
}, func(app core.App) error {
collection, err := app.FindCollectionByNameOrId("z5lghx2r3tm45n1")
if err != nil {
return err
}
// update field
if err := collection.Fields.AddMarshaledJSONAt(2, []byte(`{
"autogeneratePattern": "",
"help": "",
"hidden": false,
"id": "1si6ajha",
"max": 0,
"min": 0,
"name": "ip",
"pattern": "",
"presentable": false,
"primaryKey": false,
"required": true,
"system": false,
"type": "text"
}`)); err != nil {
return err
}
// update field
if err := collection.Fields.AddMarshaledJSONAt(3, []byte(`{
"autogeneratePattern": "",
"help": "",
"hidden": false,
"id": "fyqmpon6",
"max": 0,
"min": 0,
"name": "mac",
"pattern": "",
"presentable": false,
"primaryKey": false,
"required": true,
"system": false,
"type": "text"
}`)); err != nil {
return err
}
return app.Save(collection)
})
}
@@ -0,0 +1,62 @@
package migrations
import (
"ganigeorgiev.com/pocketbase/pocketbase/core"
m "ganigeorgiev.com/pocketbase/pocketbase/migrations"
)
func init() {
m.Register(func(app core.App) error {
collection, err := app.FindCollectionByNameOrId("z5lghx2r3tm45n1")
if err != nil {
return err
}
// update field
if err := collection.Fields.AddMarshaledJSONAt(2, []byte(`{
"autogeneratePattern": "",
"help": "",
"hidden": false,
"id": "1si6ajha",
"max": 0,
"min": 0,
"name": "ip",
"pattern": "^(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}$",
"presentable": false,
"primaryKey": false,
"required": true,
"system": false,
"type": "text"
}`)); err != nil {
return err
}
return app.Save(collection)
}, func(app core.App) error {
collection, err := app.FindCollectionByNameOrId("z5lghx2r3tm45n1")
if err != nil {
return err
}
// update field
if err := collection.Fields.AddMarshaledJSONAt(2, []byte(`{
"autogeneratePattern": "",
"help": "",
"hidden": false,
"id": "1si6ajha",
"max": 0,
"min": 0,
"name": "ip",
"pattern": "^((25[0-5]|(2[0-4]|1\\d|[1-9]|)\\d)\\.?\\b){4}$",
"presentable": false,
"primaryKey": false,
"required": true,
"system": false,
"type": "text"
}`)); err != nil {
return err
}
return app.Save(collection)
})
}
@@ -0,0 +1,62 @@
package migrations
import (
"ganigeorgiev.com/pocketbase/pocketbase/core"
m "ganigeorgiev.com/pocketbase/pocketbase/migrations"
)
func init() {
m.Register(func(app core.App) error {
collection, err := app.FindCollectionByNameOrId("z5lghx2r3tm45n1")
if err != nil {
return err
}
// update field
if err := collection.Fields.AddMarshaledJSONAt(4, []byte(`{
"autogeneratePattern": "",
"help": "",
"hidden": false,
"id": "s8c5z7n0",
"max": 0,
"min": 0,
"name": "netmask",
"pattern": "^(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}$",
"presentable": false,
"primaryKey": false,
"required": true,
"system": false,
"type": "text"
}`)); err != nil {
return err
}
return app.Save(collection)
}, func(app core.App) error {
collection, err := app.FindCollectionByNameOrId("z5lghx2r3tm45n1")
if err != nil {
return err
}
// update field
if err := collection.Fields.AddMarshaledJSONAt(4, []byte(`{
"autogeneratePattern": "",
"help": "",
"hidden": false,
"id": "s8c5z7n0",
"max": 0,
"min": 0,
"name": "netmask",
"pattern": "",
"presentable": false,
"primaryKey": false,
"required": true,
"system": false,
"type": "text"
}`)); err != nil {
return err
}
return app.Save(collection)
})
}
@@ -0,0 +1,40 @@
package migrations
import (
"ganigeorgiev.com/pocketbase/pocketbase/core"
m "ganigeorgiev.com/pocketbase/pocketbase/migrations"
)
func init() {
m.Register(func(app core.App) error {
collection, err := app.FindCollectionByNameOrId("z5lghx2r3tm45n1")
if err != nil {
return err
}
// add field
if err := collection.Fields.AddMarshaledJSONAt(6, []byte(`{
"hidden": false,
"id": "bool2618032555",
"name": "track_ip",
"presentable": false,
"required": false,
"system": false,
"type": "bool"
}`)); err != nil {
return err
}
return app.Save(collection)
}, func(app core.App) error {
collection, err := app.FindCollectionByNameOrId("z5lghx2r3tm45n1")
if err != nil {
return err
}
// remove field
collection.Fields.RemoveById("bool2618032555")
return app.Save(collection)
})
}
@@ -0,0 +1,45 @@
package migrations
import (
"ganigeorgiev.com/pocketbase/pocketbase/core"
m "ganigeorgiev.com/pocketbase/pocketbase/migrations"
)
func init() {
m.Register(func(app core.App) error {
collection, err := app.FindCollectionByNameOrId("nmj3ko20gzkg8n3")
if err != nil {
return err
}
// add field
if err := collection.Fields.AddMarshaledJSONAt(4, []byte(`{
"autogeneratePattern": "",
"hidden": false,
"id": "text3846109882",
"max": 0,
"min": 0,
"name": "track_ip_interval",
"pattern": "",
"presentable": false,
"primaryKey": false,
"required": false,
"system": false,
"type": "text"
}`)); err != nil {
return err
}
return app.Save(collection)
}, func(app core.App) error {
collection, err := app.FindCollectionByNameOrId("nmj3ko20gzkg8n3")
if err != nil {
return err
}
// remove field
collection.Fields.RemoveById("text3846109882")
return app.Save(collection)
})
}
@@ -0,0 +1,100 @@
package migrations
import (
"ganigeorgiev.com/pocketbase/pocketbase/core"
m "ganigeorgiev.com/pocketbase/pocketbase/migrations"
)
func init() {
m.Register(func(app core.App) error {
collection, err := app.FindCollectionByNameOrId("z5lghx2r3tm45n1")
if err != nil {
return err
}
// update field
if err := collection.Fields.AddMarshaledJSONAt(2, []byte(`{
"autogeneratePattern": "",
"help": "",
"hidden": false,
"id": "1si6ajha",
"max": 0,
"min": 0,
"name": "ip",
"pattern": "^(?:(?:[\\p{L}\\p{N}](?:[\\p{L}\\p{N}-]{0,61}[\\p{L}\\p{N}])?\\.)+[\\p{L}\\p{N}](?:[\\p{L}\\p{N}-]{0,61}[\\p{L}\\p{N}])?|(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})$",
"presentable": false,
"primaryKey": false,
"required": true,
"system": false,
"type": "text"
}`)); err != nil {
return err
}
// update field
if err := collection.Fields.AddMarshaledJSONAt(4, []byte(`{
"autogeneratePattern": "",
"help": "",
"hidden": false,
"id": "s8c5z7n0",
"max": 0,
"min": 0,
"name": "netmask",
"pattern": "^(?:255\\.255\\.255\\.(?:255|254|252|248|240|224|192|128|0)|255\\.255\\.(?:255|254|252|248|240|224|192|128|0)\\.0|255\\.(?:255|254|252|248|240|224|192|128|0)\\.0\\.0|(?:255|254|252|248|240|224|192|128|0)\\.0\\.0\\.0)$",
"presentable": false,
"primaryKey": false,
"required": true,
"system": false,
"type": "text"
}`)); err != nil {
return err
}
return app.Save(collection)
}, func(app core.App) error {
collection, err := app.FindCollectionByNameOrId("z5lghx2r3tm45n1")
if err != nil {
return err
}
// update field
if err := collection.Fields.AddMarshaledJSONAt(2, []byte(`{
"autogeneratePattern": "",
"help": "",
"hidden": false,
"id": "1si6ajha",
"max": 0,
"min": 0,
"name": "ip",
"pattern": "^(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}$",
"presentable": false,
"primaryKey": false,
"required": true,
"system": false,
"type": "text"
}`)); err != nil {
return err
}
// update field
if err := collection.Fields.AddMarshaledJSONAt(4, []byte(`{
"autogeneratePattern": "",
"help": "",
"hidden": false,
"id": "s8c5z7n0",
"max": 0,
"min": 0,
"name": "netmask",
"pattern": "^(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}$",
"presentable": false,
"primaryKey": false,
"required": true,
"system": false,
"type": "text"
}`)); err != nil {
return err
}
return app.Save(collection)
})
}
+103 -35
View File
@@ -5,12 +5,15 @@ import (
"fmt"
"net"
"ganigeorgiev.com/pocketbase/pocketbase/core"
"github.com/mdlayher/wol"
"github.com/pocketbase/pocketbase/core"
)
func SendMagicPacket(device *core.Record) error {
ip := device.GetString("ip")
ip, err := ResolveToIPAddr(device.GetString("ip"))
if err != nil {
return err
}
mac := device.GetString("mac")
netmask := device.GetString("netmask")
password := device.GetString("password")
@@ -20,74 +23,100 @@ func SendMagicPacket(device *core.Record) error {
if err != nil {
return err
}
if !ValidateSubnetMask(netmask) {
return fmt.Errorf("%q is not a valid subnet mask", netmask)
}
// calculate broadcast IP, if possible
var broadcastIp string
// an IP was provided or FQDN resolved to an IP so calculate broadcast destination based on that
if ip != "" {
broadcastIp, err = getBroadcastIp(ip, netmask)
if err != nil {
return err
}
} else {
// No IP available, so no broadcast IP can be calculated. This occurs if FQDN is .local and the device is powered off
broadcastIp = ""
}
var bytePassword []byte
if len(password) == 0 || len(password) == 4 || len(password) == 6 {
bytePassword = []byte(password)
} else {
return fmt.Errorf("error: password must be 0, 4 or 6 characters long")
return errors.New("error: password must be 0, 4 or 6 characters long")
}
// get target addr
broadcastIp, err := getBroadcastIp(ip, netmask)
if err != nil {
// an IP was provided or FQDN resolved to an IP so calculate broadcast destination based on that
if ip != "" {
broadcastIp, err = getBroadcastIp(ip, netmask)
if err != nil {
return err
}
} else {
// No IP available, so no broadcast IP can be calculated. This occurs if FQDN is .local and the device is powered off
broadcastIp = ""
}
// send wake
if err := wakeUDP(broadcastIp, ip, parsedMac, bytePassword); err != nil {
return err
}
// send wake via udp port 9
if err := wakeUDP(broadcastIp, parsedMac, bytePassword); err != nil {
return err
}
return nil
}
func wakeUDP(broadcastIp string, target net.HardwareAddr, password []byte) error {
func wakeUDP(broadcastIp string, deviceIp string, target net.HardwareAddr, password []byte) error {
c, err := wol.NewClient()
if err != nil {
return err
}
defer c.Close()
// send 4 magic packets to different addresses to enhance change of waking up
destinations := []string{
// default user-calculated broadcast to port 9
fmt.Sprintf("%s:9", broadcastIp),
// user-calculated broadcast to port alternative port 7
fmt.Sprintf("%s:7", broadcastIp),
// broadcast to port 9
"255.255.255.255:9",
// broadcast to alternative port 7
"255.255.255.255:7",
var destinations []string
// Broadcast IP available, add to destinations
if broadcastIp != "" {
// user-calculated broadcast packet to port 9 and alternative port 7
destinations = append(destinations,
fmt.Sprintf("%s:9", broadcastIp),
fmt.Sprintf("%s:7", broadcastIp),
)
}
if deviceIp != "" {
// For routed network WOL, send a unicast packet to device IP on port 9 and alternative port 7
destinations = append(destinations,
fmt.Sprintf("%s:9", deviceIp),
fmt.Sprintf("%s:7", deviceIp),
)
}
// No IP for the device is available, broadcast WOL packet to all interfaces
if deviceIp == "" {
allBroadcastDests, err := getAllBroadcastDests()
if err != nil {
return err
}
destinations = append(destinations, allBroadcastDests...)
}
for _, dest := range destinations {
if err := c.WakePassword(dest, target, password); err != nil {
return err
}
}
return nil
}
func getBroadcastIp(ipStr, maskStr string) (string, error) {
ip := net.ParseIP(ipStr)
if ip == nil {
return "", errors.New("ip not a valid ipv4 address")
}
ip = ip.To4()
ip := net.ParseIP(ipStr).To4()
if ip == nil {
return "", errors.New("ip not a valid ipv4 address")
}
mask := net.ParseIP(maskStr)
mask := net.ParseIP(maskStr).To4()
if mask == nil {
return "", errors.New("subnet mask not a valid ipv4 address")
}
mask = mask.To4()
ip = ip.To4()
if ip == nil {
return "", errors.New("subnet mask not a valid ipv4 address")
}
broadcast := make(net.IP, 4)
for i := range ip {
@@ -96,3 +125,42 @@ func getBroadcastIp(ipStr, maskStr string) (string, error) {
return broadcast.String(), nil
}
// Returns a slice of all broadcast addresses for ports 9 and 7 using local interfaces
func getAllBroadcastDests() ([]string, error) {
var allIps []string
interfaces, err := net.Interfaces()
if err != nil {
return nil, err
}
// Iterate through all the interfaces
for _, iface := range interfaces {
isRunning := iface.Flags&net.FlagRunning != 0
isLoopback := iface.Flags&net.FlagLoopback != 0
isNotBroadcast := iface.Flags&net.FlagBroadcast == 0
// exclude interfaces that are not running, are loopback, or can't broadcast
if !isRunning || isLoopback || isNotBroadcast {
continue
}
addrs, err := iface.Addrs()
if err != nil {
return nil, err
}
// Iterate through each interface's address
for _, addr := range addrs {
if ipNet, ok := addr.(*net.IPNet); ok {
ip := ipNet.IP
// Only use IPv4
if ip.To4() != nil {
bcastip, err := getBroadcastIp(ip.String(), net.IP(ipNet.Mask).String())
if err != nil {
return nil, err
}
allIps = append(allIps, fmt.Sprintf("%s:9", bcastip), fmt.Sprintf("%s:7", bcastip))
}
}
}
}
return allIps, nil
}
+7 -2
View File
@@ -4,7 +4,7 @@ import (
"net"
"testing"
"github.com/pocketbase/pocketbase/core"
"ganigeorgiev.com/pocketbase/pocketbase/core"
)
type Device struct {
@@ -107,6 +107,7 @@ func TestSendMagicPacket(t *testing.T) {
func TestWakeUDP(t *testing.T) {
testCases := []struct {
name string
ip string
broadcastIp string
targetMac string
password string
@@ -115,6 +116,7 @@ func TestWakeUDP(t *testing.T) {
// Valid case: all inputs correct
{
name: "Valid Case",
ip: "192.168.1.10",
broadcastIp: "192.168.1.255",
targetMac: "00:11:22:33:44:55",
password: "secret",
@@ -123,6 +125,7 @@ func TestWakeUDP(t *testing.T) {
// Invalid MAC address
{
name: "Invalid MAC",
ip: "192.168.1.10",
broadcastIp: "192.168.1.255",
targetMac: "invalid",
password: "secret",
@@ -131,6 +134,7 @@ func TestWakeUDP(t *testing.T) {
// Password too short
{
name: "Password Too Short",
ip: "192.168.1.10",
broadcastIp: "192.168.1.255",
targetMac: "00:11:22:33:44:55",
password: "s", // length 1
@@ -139,6 +143,7 @@ func TestWakeUDP(t *testing.T) {
// Password too long
{
name: "Password Too Long",
ip: "192.168.1.10",
broadcastIp: "192.168.1.255",
targetMac: "00:11:22:33:44:55",
password: "password", // length 9
@@ -156,7 +161,7 @@ func TestWakeUDP(t *testing.T) {
}
// Now test the wakeUDP function
err = wakeUDP(tc.broadcastIp, mac, []byte(tc.password))
err = wakeUDP(tc.broadcastIp, tc.ip, mac, []byte(tc.password))
if tc.wantError {
if err == nil {
t.Errorf("Expected error but got none")
+1 -55
View File
@@ -4,14 +4,8 @@ import (
"errors"
"net"
"os"
"os/exec"
"runtime"
"strconv"
"syscall"
"time"
"github.com/pocketbase/pocketbase/core"
probing "github.com/prometheus-community/pro-bing"
)
func isNoRouteOrDownError(err error) bool {
@@ -26,60 +20,12 @@ func isNoRouteOrDownError(err error) bool {
return syscallErr.Err == syscall.EHOSTUNREACH || syscallErr.Err == syscall.EHOSTDOWN
}
func PingDevice(device *core.Record) (bool, error) {
ping_cmd := device.GetString("ping_cmd")
if ping_cmd == "" {
pinger, err := probing.NewPinger(device.GetString("ip"))
if err != nil {
return false, err
}
pinger.Count = 1
pinger.Timeout = 500 * time.Millisecond
privileged := isRoot()
privilegedEnv := os.Getenv("UPSNAP_PING_PRIVILEGED")
if privilegedEnv != "" {
privileged, err = strconv.ParseBool(privilegedEnv)
if err != nil {
privileged = false
}
}
pinger.SetPrivileged(privileged)
err = pinger.Run()
if err != nil {
if isNoRouteOrDownError(err) {
return false, nil
}
return false, err
}
stats := pinger.Statistics()
return stats.PacketLoss == 0, nil
} else {
var shell string
var shell_arg string
if runtime.GOOS == "windows" {
shell = "cmd"
shell_arg = "/C"
} else {
shell = "/bin/sh"
shell_arg = "-c"
}
cmd := exec.Command(shell, shell_arg, ping_cmd)
err := cmd.Run()
return err == nil, err
}
}
func CheckPort(host string, port string) (bool, error) {
timeout := 500 * time.Millisecond
conn, err := net.DialTimeout("tcp", net.JoinHostPort(host, port), timeout)
if err != nil {
// treat "host unreachable", "connection refused" and "timeout" as no error
var netErr *net.OpError
if errors.As(err, &netErr) {
if netErr, ok := errors.AsType[*net.OpError](err); ok {
if errors.Is(netErr.Err, syscall.EHOSTUNREACH) ||
errors.Is(netErr.Err, syscall.ECONNREFUSED) ||
netErr.Timeout() {
+4 -11
View File
@@ -3,7 +3,7 @@ package networking
import (
"testing"
"github.com/pocketbase/pocketbase/core"
"ganigeorgiev.com/pocketbase/pocketbase/core"
)
func TestPingDevice(t *testing.T) {
@@ -25,7 +25,7 @@ func TestPingDevice(t *testing.T) {
name: "Invalid Ping Command",
ip: "8.8.8.8",
ping_cmd: "exit 1",
wantError: true,
wantError: false,
},
}
@@ -57,7 +57,7 @@ func TestCheckPort(t *testing.T) {
// Valid case: all inputs correct
{
name: "Valid Case",
host: "8.8.8.8",
host: "0.0.0.0",
port: "443",
wantError: false,
},
@@ -71,17 +71,10 @@ func TestCheckPort(t *testing.T) {
// Invalid port number
{
name: "Invalid Port",
host: "8.8.8.8",
host: "0.0.0.0",
port: "70000", // invalid
wantError: true,
},
// Port zero
{
name: "Port Zero",
host: "8.8.8.8",
port: "0",
wantError: false,
},
}
for _, tc := range testCases {
+92
View File
@@ -0,0 +1,92 @@
//go:build linux
package networking
import (
"fmt"
"os"
"os/exec"
"strconv"
"time"
"ganigeorgiev.com/pocketbase/pocketbase/core"
probing "github.com/prometheus-community/pro-bing"
"kernel.org/pub/linux/libs/security/libcap/cap"
)
func PingDevice(device *core.Record) (bool, error) {
ping_cmd := device.GetString("ping_cmd")
if ping_cmd == "" {
ip, err := ResolveToIPAddr(device.GetString("ip"))
if err != nil {
return false, err
}
if ip == "" {
return false, nil
}
pinger, err := probing.NewPinger(ip)
if err != nil {
return false, err
}
pinger.Count = 1
pinger.Timeout = 500 * time.Millisecond
privileged := true
privilegedEnv := os.Getenv("UPSNAP_PING_PRIVILEGED")
if privilegedEnv != "" {
privileged, err = strconv.ParseBool(privilegedEnv)
if err != nil {
privileged = false
}
}
if privileged {
orig := cap.GetProc()
defer orig.SetProc() // restore original caps on exit.
c, err := orig.Dup()
if err != nil {
return false, fmt.Errorf("Failed to dup existing capabilities: %v", err)
}
if on, _ := c.GetFlag(cap.Permitted, cap.NET_RAW); !on {
return false, fmt.Errorf("Privileged ping selected but NET_RAW capability not permitted")
}
if err := c.SetFlag(cap.Effective, true, cap.NET_RAW); err != nil {
return false, fmt.Errorf("unable to set NET_RAW capability")
}
if err := c.SetProc(); err != nil {
return false, fmt.Errorf("unable to raise NET_RAW capability")
}
}
pinger.SetPrivileged(privileged)
err = pinger.Run()
if err != nil {
if isNoRouteOrDownError(err) {
return false, nil
}
return false, err
}
stats := pinger.Statistics()
return stats.PacketLoss == 0, nil
} else {
var shell string
var shell_arg string
shell = "/bin/sh"
shell_arg = "-c"
cmd := exec.Command(shell, shell_arg, ping_cmd)
err := cmd.Run()
if err != nil {
if _, ok := err.(*exec.ExitError); ok {
return false, nil
}
return false, err
}
return true, nil
}
}
+75
View File
@@ -0,0 +1,75 @@
//go:build !linux
package networking
import (
"os"
"os/exec"
"runtime"
"strconv"
"time"
"ganigeorgiev.com/pocketbase/pocketbase/core"
probing "github.com/prometheus-community/pro-bing"
)
func PingDevice(device *core.Record) (bool, error) {
ping_cmd := device.GetString("ping_cmd")
if ping_cmd == "" {
ip, err := ResolveToIPAddr(device.GetString("ip"))
if err != nil || ip == "" {
return false, err
}
pinger, err := probing.NewPinger(ip)
if err != nil {
return false, err
}
pinger.Count = 1
pinger.Timeout = 500 * time.Millisecond
privileged := true // default to privileged ping, required by Windows
if runtime.GOOS == "darwin" {
// macOS pings will fail when using privileged ping as non root, but works with non-privileged.
privileged = false
}
privilegedEnv := os.Getenv("UPSNAP_PING_PRIVILEGED")
if privilegedEnv != "" {
privileged, err = strconv.ParseBool(privilegedEnv)
if err != nil {
privileged = false
}
}
pinger.SetPrivileged(privileged)
err = pinger.Run()
if err != nil {
if isNoRouteOrDownError(err) {
return false, nil
}
return false, err
}
stats := pinger.Statistics()
return stats.PacketLoss == 0, nil
} else {
var shell string
var shell_arg string
if runtime.GOOS == "windows" {
shell = "cmd"
shell_arg = "/C"
} else {
shell = "/bin/sh"
shell_arg = "-c"
}
cmd := exec.Command(shell, shell_arg, ping_cmd)
err := cmd.Run()
if err != nil {
if _, ok := err.(*exec.ExitError); ok {
return false, nil
}
return false, err
}
return true, nil
}
}
+57
View File
@@ -0,0 +1,57 @@
//go:build windows || darwin
package networking
import (
"context"
"errors"
"fmt"
"net"
"net/netip"
"strings"
"time"
)
/*
Takes one parameter 'host' and returns its IP. If 'host' is already formatted
as an IP, simply return it. If 'host' is formatted as an FQDN, attempt to
resolve it with mDNS (if .local suffix) or else use a DNS lookup with
net.DefaultResolver
Windows and MacOS can resolve mDNS/DNS with one call to net.DefaultResolver
*/
func ResolveToIPAddr(host string) (string, error) {
// If host is already an IP, simply return it
addr, err := netip.ParseAddr(host)
if err == nil && addr.Is4() {
return host, nil
}
if err := ValidateFQDN(host); err != nil {
return "", fmt.Errorf("%q is the host", host)
}
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
defer cancel()
ips, err := net.DefaultResolver.LookupNetIP(ctx, "ip4", host)
if err != nil {
if strings.HasSuffix(strings.ToLower(host), ".local") {
var dnsErr *net.DNSError
isNotFound := errors.As(err, &dnsErr) && dnsErr.IsNotFound
isTimeout := errors.Is(err, context.DeadlineExceeded) || ctx.Err() == context.DeadlineExceeded
if isTimeout || isNotFound {
return "", nil
}
}
return "", err
}
if len(ips) > 0 {
// only return one result
return ips[0].String(), nil
}
// No results, but it's expected for a .local FQDN device that is offline. Don't return an error.
if strings.HasSuffix(strings.ToLower(host), ".local") {
return "", nil
} else {
// No results, but FQDN should have resolved since it's not .local. Return an error.
return "", fmt.Errorf("No IP address found for %s", host)
}
}
+133
View File
@@ -0,0 +1,133 @@
//go:build linux || freebsd
package networking
import (
"context"
"errors"
"fmt"
"net"
"net/netip"
"strings"
"sync"
"time"
"github.com/godbus/dbus/v5"
"github.com/holoplot/go-avahi"
)
var (
avahiServer *avahi.Server
avahiErr error
avahiOnce sync.Once
)
// getAvahiServer initializes and returns a shared, long-lived Avahi client.
// It handles high throughput gracefully by using a single D-Bus socket connection.
func getAvahiServer() (*avahi.Server, error) {
avahiOnce.Do(func() {
// Using the cached system bus here is safe because we never call server.Close() on it.
conn, err := dbus.SystemBus()
if err != nil {
avahiErr = fmt.Errorf("failed to connect to dbus: %w", err)
return
}
server, err := avahi.ServerNew(conn)
if err != nil {
avahiErr = fmt.Errorf("failed to create avahi server: %w", err)
return
}
avahiServer = server
})
return avahiServer, avahiErr
}
/*
Takes one parameter 'host' and returns its IP. If 'host' is already formatted
as an IP, simply return it. If 'host' is formatted as an FQDN, attempt to
resolve it with mDNS (if .local suffix) or else use a DNS lookup with
net.DefaultResolver
Linux and FreeBSD require dbus and avahi for mDNS lookups
*/
func ResolveToIPAddr(host string) (string, error) {
// If host is already an IP, simply return it
addr, err := netip.ParseAddr(host)
if err == nil && addr.Is4() {
return host, nil
}
if err := ValidateFQDN(host); err != nil {
return "", err
}
// attempt mDNS query first
if strings.HasSuffix(strings.ToLower(host), ".local") {
// conn, err := dbus.Dial("unix:path=/var/run/dbus/system_bus_socket")
server, err := getAvahiServer()
if err != nil {
return "", fmt.Errorf("Failed to create connection: %w", err)
}
// defer conn.Close()
// server, err := avahi.ServerNew(conn)
// if err != nil {
// return "", fmt.Errorf("Failed to create avahi server: %w", err)
// }
// defer server.Close()
// set a context with 2 secs and only wait that long for an mDNS response. otherwise, avahi takes 5 secs
ctx1, cancel := context.WithTimeout(context.Background(), 2*time.Second)
defer cancel()
type result struct {
address string
err error
}
ch := make(chan result, 1)
go func() {
resolved, err := server.ResolveHostName(
avahi.InterfaceUnspec,
avahi.ProtoInet,
host,
avahi.ProtoInet,
0,
)
if err != nil {
ch <- result{"", err}
return
}
// mDNS result received
ch <- result{resolved.Address, nil}
}()
select {
case <-ctx1.Done():
// 2 second timeout reached,
return "", nil
case res := <-ch:
if res.err != nil {
var dbusErr *dbus.Error
// in theory we shouldn't encounter this error since the 2 second context always beats the race
if errors.As(res.err, &dbusErr) && dbusErr.Name == "org.freedesktop.Avahi.TimeoutError" {
return "", nil
}
return "", fmt.Errorf("%s: %w", host, res.err)
}
return res.address, nil
}
}
// Not .local, attempt unicast (regular) DNS lookup
ctx2, cancel2 := context.WithTimeout(context.Background(), 2*time.Second)
defer cancel2()
ips, err := net.DefaultResolver.LookupNetIP(ctx2, "ip4", host)
if err != nil {
return "", err
}
if len(ips) > 0 {
// only return one result
return ips[0].String(), nil
}
// No results, but FQDN should have resolved since it's not .local. Return an error.
return "", err
}
-9
View File
@@ -1,9 +0,0 @@
//go:build !windows
package networking
import "os"
func isRoot() bool {
return os.Geteuid() == 0
}
-16
View File
@@ -1,16 +0,0 @@
//go:build windows
package networking
import "golang.org/x/sys/windows"
func isRoot() bool {
var sid *windows.SID
sid, err := windows.CreateWellKnownSid(windows.WinBuiltinAdministratorsSid)
if err != nil {
return false
}
token := windows.GetCurrentProcessToken()
isAdmin, err := token.IsMember(sid)
return err == nil && isAdmin
}
+65
View File
@@ -0,0 +1,65 @@
package networking
import (
"encoding/xml"
"net"
"os"
"os/exec"
)
type Nmaprun struct {
Host []struct {
Address []struct {
Addr string `xml:"addr,attr" binding:"required"`
Addrtype string `xml:"addrtype,attr" binding:"required"`
Vendor string `xml:"vendor,attr"`
} `xml:"address"`
} `xml:"host"`
}
// MacToIP maps each scanned host's normalized mac address to its ipv4
// address, skipping hosts that lack either.
func (n Nmaprun) MacToIP() map[string]string {
macToIp := make(map[string]string)
for _, host := range n.Host {
var hostIp, hostMac string
for _, addr := range host.Address {
switch addr.Addrtype {
case "ipv4":
hostIp = addr.Addr
case "mac":
hostMac = addr.Addr
}
}
if parsedMac, err := net.ParseMAC(hostMac); hostIp != "" && err == nil {
macToIp[parsedMac.String()] = hostIp
}
}
return macToIp
}
func runNmap(scanRange string) (Nmaprun, error) {
nmapOutput := Nmaprun{}
nmap, err := exec.LookPath("nmap")
if err != nil {
return nmapOutput, err
}
timeout := os.Getenv("UPSNAP_SCAN_TIMEOUT")
if timeout == "" {
timeout = "500ms"
}
cmd := exec.Command(nmap, "-sn", "-oX", "-", scanRange, "--host-timeout", timeout, "--privileged")
cmdOutput, err := cmd.Output()
if err != nil {
return nmapOutput, err
}
if err := xml.Unmarshal(cmdOutput, &nmapOutput); err != nil {
return nmapOutput, err
}
return nmapOutput, nil
}
+41
View File
@@ -0,0 +1,41 @@
//go:build linux
package networking
import (
"fmt"
"kernel.org/pub/linux/libs/security/libcap/cap"
)
func NmapScan(scanRange string) (Nmaprun, error) {
orig := cap.GetProc()
defer orig.SetProc() // restore original caps on exit.
c, err := orig.Dup()
if err != nil {
return Nmaprun{}, fmt.Errorf("Failed to dup existing capabilities: %v", err)
}
if on, _ := c.GetFlag(cap.Permitted, cap.NET_RAW); !on {
return Nmaprun{}, fmt.Errorf("unable to get NET_RAW permissions")
}
if err := c.SetFlag(cap.Effective, true, cap.NET_RAW); err != nil {
return Nmaprun{}, fmt.Errorf("unable to set NET_RAW capability effective")
}
if err := c.SetFlag(cap.Inheritable, true, cap.NET_RAW); err != nil {
return Nmaprun{}, fmt.Errorf("unable to set NET_RAW capability inheritable")
}
if err := c.SetProc(); err != nil {
return Nmaprun{}, fmt.Errorf("unable to raise NET_RAW capability")
}
if err := cap.SetAmbient(true, cap.NET_RAW); err != nil {
return Nmaprun{}, fmt.Errorf("unable to set NET_RAW capability ambient")
}
return runNmap(scanRange)
}
+7
View File
@@ -0,0 +1,7 @@
//go:build !linux
package networking
func NmapScan(scanRange string) (Nmaprun, error) {
return runNmap(scanRange)
}
+65
View File
@@ -0,0 +1,65 @@
package networking
import (
"encoding/xml"
"testing"
)
// Trimmed from real `nmap -sn -oX -` output: one host with a mac (scanned
// with raw socket privileges), one without (the scanning host itself).
const nmapSample = `<?xml version="1.0" encoding="UTF-8"?>
<nmaprun scanner="nmap" args="nmap -sn -oX - 10.1.10.0/24" version="7.94">
<host><status state="up" reason="arp-response"/>
<address addr="10.1.10.1" addrtype="ipv4"/>
<address addr="AA:BB:CC:DD:EE:FF" addrtype="mac" vendor="Ubiquiti Networks"/>
<hostnames></hostnames>
</host>
<host><status state="up" reason="localhost-response"/>
<address addr="10.1.10.9" addrtype="ipv4"/>
<hostnames></hostnames>
</host>
<runstats><finished time="1754000000" exit="success"/></runstats>
</nmaprun>`
func TestNmaprunUnmarshal(t *testing.T) {
nmapOutput := Nmaprun{}
if err := xml.Unmarshal([]byte(nmapSample), &nmapOutput); err != nil {
t.Fatalf("Got unexpected error: %v", err)
}
if len(nmapOutput.Host) != 2 {
t.Fatalf("Host count mismatch: expected 2, got %d", len(nmapOutput.Host))
}
first := nmapOutput.Host[0].Address
if len(first) != 2 {
t.Fatalf("Address count mismatch: expected 2, got %d", len(first))
}
if first[0].Addrtype != "ipv4" || first[0].Addr != "10.1.10.1" {
t.Errorf("Unexpected ipv4 address: %+v", first[0])
}
if first[1].Addrtype != "mac" || first[1].Addr != "AA:BB:CC:DD:EE:FF" || first[1].Vendor != "Ubiquiti Networks" {
t.Errorf("Unexpected mac address: %+v", first[1])
}
second := nmapOutput.Host[1].Address
if len(second) != 1 || second[0].Addrtype != "ipv4" {
t.Errorf("Unexpected addresses for mac-less host: %+v", second)
}
}
func TestNmaprunMacToIP(t *testing.T) {
nmapOutput := Nmaprun{}
if err := xml.Unmarshal([]byte(nmapSample), &nmapOutput); err != nil {
t.Fatalf("Got unexpected error: %v", err)
}
macToIp := nmapOutput.MacToIP()
if len(macToIp) != 1 {
t.Fatalf("Entry count mismatch: expected 1, got %d", len(macToIp))
}
// the mac address is normalized to lower case, the mac-less host is skipped
if ip := macToIp["aa:bb:cc:dd:ee:ff"]; ip != "10.1.10.1" {
t.Errorf("Unexpected ip for aa:bb:cc:dd:ee:ff: %q", ip)
}
}
+55 -23
View File
@@ -4,19 +4,22 @@ import (
"bytes"
"context"
"fmt"
"net"
"os/exec"
"runtime"
"strings"
"time"
"github.com/pocketbase/pocketbase/core"
"github.com/seriousm4x/upsnap/logger"
"ganigeorgiev.com/pocketbase/pocketbase/core"
"github.com/seriousm4x/upsnap/logging"
)
func ShutdownDevice(device *core.Record) error {
logger.Info.Println("Shutdown triggered for", device.GetString("name"))
func ShutdownDevice(app core.App, device *core.Record, trigger string) error {
log := logging.Logger(app)
log.Info("Shutdown triggered", "device", device.GetString("name"), "trigger", trigger)
shutdown_cmd := device.GetString("shutdown_cmd")
if shutdown_cmd == "" {
return fmt.Errorf("%s: no shutdown_cmd definded", device.GetString("name"))
return fmt.Errorf("%s: no shutdown_cmd defined", device.GetString("name"))
}
var shell string
@@ -29,6 +32,20 @@ func ShutdownDevice(device *core.Record) error {
shell_arg = "-c"
}
// Validate IP or resolve FQDN to IP
deviceIP, err := ResolveToIPAddr(device.GetString("ip"))
if err != nil || deviceIP == "" {
return fmt.Errorf("Unable to resolve %s to an IP address", device.GetString("ip"))
}
// Validate MAC address before replacing placeholder to prevent command injection
deviceMAC := device.GetString("mac")
if _, err := net.ParseMAC(deviceMAC); err != nil {
return fmt.Errorf("invalid device MAC address: %q", deviceMAC)
}
shutdown_cmd = strings.ReplaceAll(shutdown_cmd, "{{ DEVICE_IP }}", deviceIP)
shutdown_cmd = strings.ReplaceAll(shutdown_cmd, "{{ DEVICE_MAC }}", deviceMAC)
ctx := context.Background()
ctx, cancel := context.WithCancel(ctx)
defer cancel()
@@ -40,7 +57,7 @@ func ShutdownDevice(device *core.Record) error {
cmd.Stderr = &stderr
if err := cmd.Start(); err != nil {
logger.Error.Println(err)
return err
}
done := make(chan error, 1)
@@ -57,31 +74,46 @@ func ShutdownDevice(device *core.Record) error {
for {
select {
case <-time.After(1 * time.Second):
case err := <-done:
if err != nil {
return fmt.Errorf("%s", stderr.String())
} else {
for {
isOnline, err := PingDevice(device)
if err != nil {
log.Error("Failed to ping device during shutdown", "error", err)
return err
}
if isOnline {
if time.Since(start) >= time.Duration(shutdownTimeout)*time.Second {
return fmt.Errorf("%s not offline after %d seconds", device.GetString("name"), shutdownTimeout)
}
}
if !isOnline {
return nil
}
time.Sleep(1 * time.Second)
}
}
default:
isOnline, err := PingDevice(device)
if err != nil {
log.Error("Failed to ping device during shutdown", "error", err)
return err
}
if time.Since(start) >= time.Duration(shutdownTimeout)*time.Second {
if err := KillProcess(cmd.Process); err != nil {
logger.Error.Println(err)
if err := KillProcess(app, cmd.Process); err != nil {
log.Error("Failed to kill shutdown command", "error", err)
}
return fmt.Errorf("%s not offline after %d seconds", device.GetString("name"), shutdownTimeout)
}
isOnline, err := PingDevice(device)
if err != nil {
logger.Error.Println(err)
return err
}
if !isOnline {
if err := KillProcess(cmd.Process); err != nil {
logger.Error.Println(err)
if err := KillProcess(app, cmd.Process); err != nil {
log.Error("Failed to kill shutdown command", "error", err)
}
return nil
}
case err := <-done:
if err != nil {
if err := KillProcess(cmd.Process); err != nil {
logger.Error.Println(err)
}
return fmt.Errorf("%s", stderr.String())
}
time.Sleep(1 * time.Second)
}
}
}
+4 -6
View File
@@ -1,5 +1,4 @@
//go:build !windows
// +build !windows
package networking
@@ -7,7 +6,8 @@ import (
"os"
"os/exec"
"github.com/seriousm4x/upsnap/logger"
"ganigeorgiev.com/pocketbase/pocketbase/core"
"github.com/seriousm4x/upsnap/logging"
"golang.org/x/sys/unix"
)
@@ -17,8 +17,8 @@ func SetProcessAttributes(cmd *exec.Cmd) {
}
// Kills child processes on Linux. Windows doesn't provide a direct way to kill child processes, so we kill just the main process.
func KillProcess(process *os.Process) error {
logger.Warning.Println("Your command didn't finish in time. It will be killed.")
func KillProcess(app core.App, process *os.Process) error {
logging.Logger(app).Warn("Command did not finish in time and will be killed")
pgid, err := unix.Getpgid(process.Pid)
if err != nil {
return err
@@ -29,7 +29,5 @@ func KillProcess(process *os.Process) error {
return unix.Kill(-pgid, unix.SIGKILL)
}
_, err = process.Wait()
return err
}
+3 -2
View File
@@ -1,5 +1,4 @@
//go:build windows
// +build windows
package networking
@@ -7,6 +6,8 @@ import (
"os"
"os/exec"
"ganigeorgiev.com/pocketbase/pocketbase/core"
"golang.org/x/sys/windows"
)
@@ -14,6 +15,6 @@ import (
func SetProcessAttributes(cmd *exec.Cmd) {}
// Kills child processes on Linux. Windows doesn't provide a direct way to kill child processes, so we kill just the main process.
func KillProcess(process *os.Process) error {
func KillProcess(_ core.App, process *os.Process) error {
return windows.GenerateConsoleCtrlEvent(windows.CTRL_BREAK_EVENT, uint32(process.Pid))
}
+10 -6
View File
@@ -7,25 +7,29 @@ import (
"io"
"net/http"
"github.com/pocketbase/pocketbase/core"
"github.com/seriousm4x/upsnap/logger"
"ganigeorgiev.com/pocketbase/pocketbase/core"
"github.com/seriousm4x/upsnap/logging"
)
type SolResponse struct {
Message string `json:"message"`
}
func SleepDevice(device *core.Record) (SolResponse, error) {
logger.Info.Println("Sleep triggered for", device.GetString("name"))
func SleepDevice(app core.App, device *core.Record) (SolResponse, error) {
logging.Logger(app).Info("Sleep triggered", "device", device.GetString("name"))
var solResp SolResponse
var url string
deviceIP, err := ResolveToIPAddr(device.GetString("ip"))
if err != nil || deviceIP == "" {
return solResp, fmt.Errorf("Unable to resolve %s to an IP address: %w", device.GetString("ip"), err)
}
if device.GetBool("sol_auth") {
url = fmt.Sprintf("http://%s:%s@%s:%d/sleep?format=JSON",
device.GetString("sol_user"), device.GetString("sol_password"), device.GetString("ip"), device.GetInt("sol_port"))
device.GetString("sol_user"), device.GetString("sol_password"), deviceIP, device.GetInt("sol_port"))
} else {
url = fmt.Sprintf("http://%s:%d/sleep?format=JSON", device.GetString("ip"), device.GetInt("sol_port"))
url = fmt.Sprintf("http://%s:%d/sleep?format=JSON", deviceIP, device.GetInt("sol_port"))
}
resp, err := http.Get(url)
+59
View File
@@ -0,0 +1,59 @@
package networking
import (
"errors"
"net"
)
// DeviceSubnet returns the device's IPv4 subnet computed from its ip and netmask.
func DeviceSubnet(ipStr, maskStr string) (*net.IPNet, error) {
ip := net.ParseIP(ipStr)
if ip == nil || ip.To4() == nil {
return nil, errors.New("ip not a valid ipv4 address")
}
ip = ip.To4()
mask := net.ParseIP(maskStr)
if mask == nil || mask.To4() == nil {
return nil, errors.New("subnet mask not a valid ipv4 address")
}
ipMask := net.IPMask(mask.To4())
return &net.IPNet{IP: ip.Mask(ipMask), Mask: ipMask}, nil
}
// ValidateScannableSubnet returns nil if the subnet is suitable for an nmap
// scan, or an error explaining why it isn't.
func ValidateScannableSubnet(subnet *net.IPNet) error {
ones, bits := subnet.Mask.Size()
if ones == 0 && bits == 0 {
// Size() returns 0,0 for a non-contiguous mask, which has no cidr
// notation to hand to nmap
return errors.New("netmask is not contiguous")
}
if ones == bits {
return errors.New("a single address has nothing to scan")
}
if ones < 16 {
return errors.New("subnets larger than a /16 take too long to scan")
}
// arp only answers on-link, so the subnet must overlap one of the
// host's attached ipv4 networks for a scan to find mac addresses
addrs, err := net.InterfaceAddrs()
if err != nil {
return err
}
for _, addr := range addrs {
attached, ok := addr.(*net.IPNet)
if !ok || attached.IP.To4() == nil {
continue
}
// subnets are either disjoint or nested, so checking containment
// in both directions covers overlap
if attached.Contains(subnet.IP) || subnet.Contains(attached.IP) {
return nil
}
}
return errors.New("subnet does not overlap a directly attached network")
}
+146
View File
@@ -0,0 +1,146 @@
package networking
import (
"testing"
)
func TestDeviceSubnet(t *testing.T) {
testCases := []struct {
name string
ip string
netmask string
wantCidr string
wantError bool
}{
// Valid case: address is masked down to the network
{
name: "Valid Case",
ip: "192.168.1.100",
netmask: "255.255.255.0",
wantCidr: "192.168.1.0/24",
wantError: false,
},
// Valid case: wider mask
{
name: "Valid /16",
ip: "10.1.10.142",
netmask: "255.255.0.0",
wantCidr: "10.1.0.0/16",
wantError: false,
},
// Valid case: host mask
{
name: "Valid /32",
ip: "192.168.1.5",
netmask: "255.255.255.255",
wantCidr: "192.168.1.5/32",
wantError: false,
},
// Invalid IP address
{
name: "Invalid IP",
ip: "256.1.1.1", // invalid
netmask: "255.255.255.0",
wantCidr: "",
wantError: true,
},
// Invalid netmask
{
name: "Invalid Netmask",
ip: "192.168.1.100",
netmask: "300.255.255.0", // invalid
wantCidr: "",
wantError: true,
},
// IPv6 address is not a valid device ip
{
name: "IPv6 IP",
ip: "fe80::1",
netmask: "255.255.255.0",
wantCidr: "",
wantError: true,
},
}
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
subnet, err := DeviceSubnet(tc.ip, tc.netmask)
if tc.wantError {
if err == nil {
t.Errorf("Expected error but got none")
}
} else {
if err != nil {
t.Errorf("Got unexpected error: %v", err)
} else if subnet.String() != tc.wantCidr {
t.Errorf("Subnet mismatch: expected %s, got %s", tc.wantCidr, subnet.String())
}
}
})
}
}
func TestValidateScannableSubnet(t *testing.T) {
testCases := []struct {
name string
ip string
netmask string
wantError bool
}{
// A /32 has nothing to scan
{
name: "Host Mask",
ip: "192.168.1.5",
netmask: "255.255.255.255",
wantError: true,
},
// A non-contiguous mask has no cidr notation to scan
{
name: "Non-contiguous Mask",
ip: "10.0.1.5",
netmask: "255.0.255.0",
wantError: true,
},
// Anything larger than a /16 takes too long to scan
{
name: "Too Large",
ip: "10.0.0.1",
netmask: "255.0.0.0",
wantError: true,
},
// The loopback address as a /16 is within limits and always attached
{
name: "Local /16",
ip: "127.0.0.1",
netmask: "255.255.0.0",
wantError: false,
},
// A sub-block of the attached loopback /8 is on-link even though
// it doesn't contain the host's own 127.0.0.1
{
name: "Nested In Attached",
ip: "127.0.1.5",
netmask: "255.255.255.0",
wantError: false,
},
// TEST-NET-1 (RFC 5737) is never assigned to an interface
{
name: "No Overlap",
ip: "192.0.2.1",
netmask: "255.255.255.0",
wantError: true,
},
}
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
subnet, err := DeviceSubnet(tc.ip, tc.netmask)
if err != nil {
t.Fatalf("Got unexpected error: %v", err)
}
if err := ValidateScannableSubnet(subnet); (err != nil) != tc.wantError {
t.Errorf("ValidateScannableSubnet(%s): expected error=%v, got %v", subnet.String(), tc.wantError, err)
}
})
}
}
+50
View File
@@ -0,0 +1,50 @@
package networking
import (
"fmt"
"net/netip"
"regexp"
"strings"
"golang.org/x/net/idna"
)
var fqdnRegex = regexp.MustCompile(`^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z0-9-]{2,63}$`)
/*
Validate's FQDN by converting it to Punycode and checking it against several criteria
*/
func ValidateFQDN(host string) error {
// Remove trailing . just in case, but DB and form validation should already prevent that
trimmedHost := strings.TrimSuffix(host, ".")
if len(trimmedHost) == 0 {
return fmt.Errorf("%q: invalid length of 0. original %q", trimmedHost, host)
}
// convert to punycode
punycodeHost, err := idna.Lookup.ToASCII(trimmedHost)
if err != nil {
return fmt.Errorf("%q: failed to convert to punycode - %w", trimmedHost, err)
}
if len(punycodeHost) < 1 || len(punycodeHost) > 253 {
return fmt.Errorf("%q -> %q: invalid length %d bytes. Must be 1-253 bytes (chars) after conversion.", trimmedHost, punycodeHost, len(punycodeHost))
}
if !fqdnRegex.MatchString(punycodeHost) {
return fmt.Errorf("%q -> %q: Failed validation.", trimmedHost, punycodeHost)
}
return nil
}
func ValidateSubnetMask(mask string) bool {
addr, err := netip.ParseAddr(mask)
if err != nil || !addr.Is4() {
return false
}
byteArray := addr.As4()
maskInt := uint32(byteArray[0])<<24 | uint32(byteArray[1])<<16 | uint32(byteArray[2])<<8 | uint32(byteArray[3])
inverted := ^maskInt
return (inverted & (inverted + 1)) == 0
}
+43 -14
View File
@@ -4,16 +4,19 @@ import (
"bytes"
"context"
"fmt"
"net"
"os/exec"
"runtime"
"strings"
"time"
"github.com/pocketbase/pocketbase/core"
"github.com/seriousm4x/upsnap/logger"
"ganigeorgiev.com/pocketbase/pocketbase/core"
"github.com/seriousm4x/upsnap/logging"
)
func WakeDevice(device *core.Record) error {
logger.Info.Println("Wake triggered for", device.GetString("name"))
func WakeDevice(app core.App, device *core.Record, trigger string) error {
log := logging.Logger(app)
log.Info("Wake triggered", "device", device.GetString("name"), "trigger", trigger)
wakeTimeout := device.GetInt("wake_timeout")
if wakeTimeout <= 0 {
@@ -32,6 +35,21 @@ func WakeDevice(device *core.Record) error {
shell_arg = "-c"
}
deviceIP, err := ResolveToIPAddr(device.GetString("ip"))
if err != nil {
return err
}
if deviceIP == "" {
deviceIP = device.GetString("ip")
}
// Validate MAC address before replacing placeholders to prevent command injection
deviceMAC := device.GetString("mac")
if _, err := net.ParseMAC(deviceMAC); err != nil {
return fmt.Errorf("invalid device MAC address: %q", deviceMAC)
}
wake_cmd = strings.ReplaceAll(wake_cmd, "{{ DEVICE_IP }}", deviceIP)
wake_cmd = strings.ReplaceAll(wake_cmd, "{{ DEVICE_MAC }}", deviceMAC)
ctx := context.Background()
ctx, cancel := context.WithCancel(ctx)
defer cancel()
@@ -43,7 +61,8 @@ func WakeDevice(device *core.Record) error {
cmd.Stderr = &stderr
if err := cmd.Start(); err != nil {
logger.Error.Println(err)
log.Error("Failed to start wake command", "error", err)
return err
}
done := make(chan error, 1)
@@ -52,34 +71,44 @@ func WakeDevice(device *core.Record) error {
}()
start := time.Now()
commandFinished := false
for {
select {
case <-time.After(1 * time.Second):
if time.Since(start) >= time.Duration(wakeTimeout)*time.Second {
if err := KillProcess(cmd.Process); err != nil {
logger.Error.Println(err)
if !commandFinished && cmd.Process != nil {
if err := KillProcess(app, cmd.Process); err != nil {
log.Error("Failed to kill wake command", "error", err)
}
}
return fmt.Errorf("%s not online after %d seconds", device.GetString("name"), wakeTimeout)
}
// Reachability alone does not mean a custom wake command has finished.
// For example, a Mac can respond to ping while it is still in DarkWake.
if !commandFinished {
continue
}
isOnline, err := PingDevice(device)
if err != nil {
logger.Error.Println(err)
log.Error("Failed to ping device after wake", "error", err)
return err
}
if isOnline {
if err := KillProcess(cmd.Process); err != nil {
logger.Error.Println(err)
}
return nil
}
case err := <-done:
if err != nil {
if err := KillProcess(cmd.Process); err != nil {
logger.Error.Println(err)
if cmd.Process != nil {
if err := KillProcess(app, cmd.Process); err != nil {
log.Error("Failed to kill wake command", "error", err)
}
}
return fmt.Errorf("%s", stderr.String())
}
commandFinished = true
done = nil
// Command finished successfully, but we continue the loop until device is online or timeout
}
}
} else {
@@ -93,7 +122,7 @@ func WakeDevice(device *core.Record) error {
time.Sleep(1 * time.Second)
isOnline, err := PingDevice(device)
if err != nil {
logger.Error.Println(err)
log.Error("Failed to ping device after wake", "error", err)
return err
}
if isOnline {
+92
View File
@@ -0,0 +1,92 @@
//go:build !windows
package networking
import (
"os"
"path/filepath"
"strings"
"testing"
"time"
"ganigeorgiev.com/pocketbase/pocketbase/core"
"ganigeorgiev.com/pocketbase/pocketbase/tests"
)
func newWakeTestDevice(t *testing.T, command, pingCommand string, timeout int) (core.App, *core.Record) {
t.Helper()
app, err := tests.NewTestApp(t.TempDir())
if err != nil {
t.Fatal(err)
}
t.Cleanup(app.Cleanup)
device := core.NewRecord(&core.Collection{})
device.Set("name", "test-device")
device.Set("ip", "127.0.0.1")
device.Set("mac", "02:00:00:00:00:01")
device.Set("wake_cmd", command)
device.Set("ping_cmd", pingCommand)
device.Set("wake_timeout", timeout)
return app, device
}
func TestCustomWakeWaitsForCommandWhenDeviceIsAlreadyOnline(t *testing.T) {
dir := t.TempDir()
t.Setenv("UPSNAP_WAKE_TEST_DIR", dir)
app, device := newWakeTestDevice(t,
`sleep 2; printf done > "$UPSNAP_WAKE_TEST_DIR/completed"`, "exit 0", 10)
if err := WakeDevice(app, device, "test"); err != nil {
t.Fatal(err)
}
data, err := os.ReadFile(filepath.Join(dir, "completed"))
if err != nil || string(data) != "done" {
t.Fatalf("wake command was interrupted despite successful ping: data=%q err=%v", data, err)
}
}
func TestCustomWakeReturnsFailureWhenDeviceIsAlreadyOnline(t *testing.T) {
app, device := newWakeTestDevice(t, "sleep 2; echo wake-failed >&2; exit 7", "exit 0", 10)
err := WakeDevice(app, device, "test")
if err == nil || !strings.Contains(err.Error(), "wake-failed") {
t.Fatalf("expected wake command failure despite successful ping, got %v", err)
}
}
func TestCustomWakeStillWaitsForReachabilityAfterCommandFinishes(t *testing.T) {
dir := t.TempDir()
t.Setenv("UPSNAP_WAKE_TEST_DIR", dir)
app, device := newWakeTestDevice(t, "exit 0",
`if [ -f "$UPSNAP_WAKE_TEST_DIR/pinged" ]; then exit 0; fi; touch "$UPSNAP_WAKE_TEST_DIR/pinged"; exit 1`, 10)
if err := WakeDevice(app, device, "test"); err != nil {
t.Fatal(err)
}
if _, err := os.Stat(filepath.Join(dir, "pinged")); err != nil {
t.Fatalf("wake returned without checking reachability: %v", err)
}
}
func TestCustomWakeTimesOutWhenCommandSucceedsButDeviceStaysOffline(t *testing.T) {
app, device := newWakeTestDevice(t, "exit 0", "exit 1", 2)
err := WakeDevice(app, device, "test")
if err == nil || !strings.Contains(err.Error(), "not online after 2 seconds") {
t.Fatalf("expected reachability timeout, got %v", err)
}
}
func TestCustomWakeTimeoutStillStopsRunningCommand(t *testing.T) {
dir := t.TempDir()
t.Setenv("UPSNAP_WAKE_TEST_DIR", dir)
app, device := newWakeTestDevice(t,
`sleep 3; touch "$UPSNAP_WAKE_TEST_DIR/completed"`, "exit 0", 1)
err := WakeDevice(app, device, "test")
if err == nil || !strings.Contains(err.Error(), "not online after 1 seconds") {
t.Fatalf("expected command timeout even though ping succeeds, got %v", err)
}
// A surviving shell/child would write this file after its sleep finishes.
time.Sleep(3 * time.Second)
if _, err := os.Stat(filepath.Join(dir, "completed")); !os.IsNotExist(err) {
t.Fatalf("timed-out wake command continued running: %v", err)
}
}
+153 -130
View File
@@ -1,21 +1,19 @@
package pb
import (
"encoding/xml"
"net"
"encoding/json"
"fmt"
"net/http"
"os"
"os/exec"
"strconv"
"strings"
"time"
"github.com/pocketbase/dbx"
"github.com/pocketbase/pocketbase/apis"
"github.com/pocketbase/pocketbase/core"
"github.com/pocketbase/pocketbase/tools/router"
"ganigeorgiev.com/pocketbase/dbx"
"ganigeorgiev.com/pocketbase/pocketbase/apis"
"ganigeorgiev.com/pocketbase/pocketbase/core"
"ganigeorgiev.com/pocketbase/pocketbase/tools/router"
"github.com/robfig/cron/v3"
"github.com/seriousm4x/upsnap/logger"
"github.com/seriousm4x/upsnap/logging"
"github.com/seriousm4x/upsnap/networking"
)
@@ -27,22 +25,22 @@ func HandlerWake(e *core.RequestEvent) error {
record.Set("status", "pending")
if err := e.App.Save(record); err != nil {
logger.Error.Println("Failed to save record:", err)
logging.Logger(e.App).Error("Failed to save pending device status", "device", record.GetString("name"), "error", err)
}
if err := asyncCall(e, func() *router.ApiError {
if err := networking.WakeDevice(record); err != nil {
logger.Error.Println(err)
if err := networking.WakeDevice(e.App, record, "manual"); err != nil {
logging.Logger(e.App).Error("Failed to wake device", "device", record.GetString("name"), "error", err)
record.Set("status", "offline")
if err := e.App.Save(record); err != nil {
logger.Error.Println("Failed to save record:", err)
logging.Logger(e.App).Error("Failed to save device status", "device", record.GetString("name"), "error", err)
}
return apis.NewBadRequestError(err.Error(), nil)
}
record.Set("status", "online")
if err := e.App.Save(record); err != nil {
logger.Error.Println("Failed to save record:", err)
logging.Logger(e.App).Error("Failed to save device status", "device", record.GetString("name"), "error", err)
}
return nil
@@ -61,23 +59,23 @@ func HandlerSleep(e *core.RequestEvent) error {
record.Set("status", "pending")
if err := e.App.Save(record); err != nil {
logger.Error.Println("Failed to save record:", err)
logging.Logger(e.App).Error("Failed to save pending device status", "device", record.GetString("name"), "error", err)
}
if err := asyncCall(e, func() *router.ApiError {
resp, err := networking.SleepDevice(record)
resp, err := networking.SleepDevice(e.App, record)
if err != nil {
logger.Error.Println(err)
logging.Logger(e.App).Error("Failed to sleep device", "device", record.GetString("name"), "error", err)
record.Set("status", "online")
if err := e.App.Save(record); err != nil {
logger.Error.Println("Failed to save record:", err)
logging.Logger(e.App).Error("Failed to save device status", "device", record.GetString("name"), "error", err)
}
return apis.NewBadRequestError(resp.Message, nil)
}
record.Set("status", "offline")
if err := e.App.Save(record); err != nil {
logger.Error.Println("Failed to save record:", err)
logging.Logger(e.App).Error("Failed to save device status", "device", record.GetString("name"), "error", err)
}
return nil
@@ -96,15 +94,15 @@ func HandlerReboot(e *core.RequestEvent) error {
record.Set("status", "pending")
if err := e.App.Save(record); err != nil {
logger.Error.Println("Failed to save record:", err)
logging.Logger(e.App).Error("Failed to save pending device status", "device", record.GetString("name"), "error", err)
}
if err := asyncCall(e, func() *router.ApiError {
if err := networking.ShutdownDevice(record); err != nil {
logger.Error.Println(err)
if err := networking.ShutdownDevice(e.App, record, "manual"); err != nil {
logging.Logger(e.App).Error("Failed to shut down device for reboot", "device", record.GetString("name"), "error", err)
record.Set("status", "online")
if err := e.App.Save(record); err != nil {
logger.Error.Println("Failed to save record:", err)
logging.Logger(e.App).Error("Failed to save device status", "device", record.GetString("name"), "error", err)
}
return apis.NewBadRequestError(err.Error(), nil)
}
@@ -114,18 +112,18 @@ func HandlerReboot(e *core.RequestEvent) error {
// so we wait a little to make sure the device has shut down completely and is ready to receive wake requests.
time.Sleep(15 * time.Second)
if err := networking.WakeDevice(record); err != nil {
logger.Error.Println(err)
if err := networking.WakeDevice(e.App, record, "manual"); err != nil {
logging.Logger(e.App).Error("Failed to wake device after reboot", "device", record.GetString("name"), "error", err)
record.Set("status", "offline")
if err := e.App.Save(record); err != nil {
logger.Error.Println("Failed to save record:", err)
logging.Logger(e.App).Error("Failed to save device status", "device", record.GetString("name"), "error", err)
}
return apis.NewBadRequestError(err.Error(), nil)
}
record.Set("status", "online")
if err := e.App.Save(record); err != nil {
logger.Error.Println("Failed to save record:", err)
logging.Logger(e.App).Error("Failed to save device status", "device", record.GetString("name"), "error", err)
}
return nil
@@ -144,22 +142,22 @@ func HandlerShutdown(e *core.RequestEvent) error {
record.Set("status", "pending")
if err := e.App.Save(record); err != nil {
logger.Error.Println("Failed to save record:", err)
logging.Logger(e.App).Error("Failed to save pending device status", "device", record.GetString("name"), "error", err)
}
if err := asyncCall(e, func() *router.ApiError {
if err := networking.ShutdownDevice(record); err != nil {
logger.Error.Println(err)
if err := networking.ShutdownDevice(e.App, record, "manual"); err != nil {
logging.Logger(e.App).Error("Failed to shut down device", "device", record.GetString("name"), "error", strings.ReplaceAll(err.Error(), "\n", ""))
record.Set("status", "online")
if err := e.App.Save(record); err != nil {
logger.Error.Println("Failed to save record:", err)
logging.Logger(e.App).Error("Failed to save device status", "device", record.GetString("name"), "error", err)
}
return apis.NewBadRequestError(err.Error(), nil)
}
record.Set("status", "offline")
if err := e.App.Save(record); err != nil {
logger.Error.Println("Failed to save record:", err)
logging.Logger(e.App).Error("Failed to save device status", "device", record.GetString("name"), "error", err)
}
return nil
@@ -171,7 +169,7 @@ func HandlerShutdown(e *core.RequestEvent) error {
}
func HandlerWakeGroup(e *core.RequestEvent) error {
records, err := e.App.FindRecordsByFilter("devices", "groups.id = {:grpId} && status = 'offline'", "", 0, 0,
records, err := e.App.FindRecordsByFilter("devices", "groups.id ?= {:grpId} && status = 'offline'", "", 0, 0,
dbx.Params{"grpId": e.Request.PathValue("id")},
)
if err != nil {
@@ -182,21 +180,55 @@ func HandlerWakeGroup(e *core.RequestEvent) error {
go func() {
record.Set("status", "pending")
if err := e.App.Save(record); err != nil {
logger.Error.Println("Failed to save record:", err)
logging.Logger(e.App).Error("Failed to save pending device status", "device", record.GetString("name"), "error", err)
}
if err := networking.WakeDevice(record); err != nil {
logger.Error.Println(err)
if err := networking.WakeDevice(e.App, record, "manual"); err != nil {
logging.Logger(e.App).Error("Failed to wake device", "device", record.GetString("name"), "error", err)
record.Set("status", "offline")
if err := e.App.Save(record); err != nil {
logger.Error.Println("Failed to save record:", err)
logging.Logger(e.App).Error("Failed to save device status", "device", record.GetString("name"), "error", err)
}
return
}
record.Set("status", "online")
if err := e.App.Save(record); err != nil {
logger.Error.Println("Failed to save record:", err)
logging.Logger(e.App).Error("Failed to save device status", "device", record.GetString("name"), "error", err)
}
}()
}
return e.JSON(http.StatusOK, records)
}
func HandlerShutdownGroup(e *core.RequestEvent) error {
records, err := e.App.FindRecordsByFilter("devices", "groups.id ?= {:grpId} && status = 'online'", "", 0, 0,
dbx.Params{"grpId": e.Request.PathValue("id")},
)
if err != nil {
return apis.NewNotFoundError("No devices in group", err)
}
for _, record := range records {
go func() {
record.Set("status", "pending")
if err := e.App.Save(record); err != nil {
logging.Logger(e.App).Error("Failed to save pending device status", "device", record.GetString("name"), "error", err)
}
if err := networking.ShutdownDevice(e.App, record, "manual"); err != nil {
logging.Logger(e.App).Error("Failed to shut down device", "device", record.GetString("name"), "error", err)
record.Set("status", "online")
if err := e.App.Save(record); err != nil {
logging.Logger(e.App).Error("Failed to save device status", "device", record.GetString("name"), "error", err)
}
return
}
record.Set("status", "offline")
if err := e.App.Save(record); err != nil {
logging.Logger(e.App).Error("Failed to save device status", "device", record.GetString("name"), "error", err)
}
}()
}
@@ -214,97 +246,6 @@ type Nmaprun struct {
} `xml:"host"`
}
func HandlerScan(e *core.RequestEvent) error {
// check if nmap installed
nmap, err := exec.LookPath("nmap")
if err != nil {
return apis.NewBadRequestError(err.Error(), nil)
}
// check if scan range is valid
allPrivateSettings, err := e.App.FindAllRecords("settings_private")
if err != nil {
return err
}
settingsPrivate := allPrivateSettings[0]
scanRange := settingsPrivate.GetString("scan_range")
_, ipNet, err := net.ParseCIDR(scanRange)
if err != nil {
return apis.NewBadRequestError(err.Error(), nil)
}
// run nmap
timeout := os.Getenv("UPSNAP_SCAN_TIMEOUT")
if timeout == "" {
timeout = "500ms"
}
cmd := exec.Command(nmap, "-sn", "-oX", "-", scanRange, "--host-timeout", timeout)
cmdOutput, err := cmd.Output()
if err != nil {
return err
}
// unmarshal xml
nmapOutput := Nmaprun{}
if err := xml.Unmarshal(cmdOutput, &nmapOutput); err != nil {
return err
}
type Device struct {
Name string `json:"name"`
IP string `json:"ip"`
MAC string `json:"mac"`
MACVendor string `json:"mac_vendor"`
}
// extract info from struct into data
type Response struct {
Netmask string `json:"netmask"`
Devices []Device `json:"devices"`
}
res := Response{}
var nm []string
for _, octet := range ipNet.Mask {
nm = append(nm, strconv.Itoa(int(octet)))
}
res.Netmask = strings.Join(nm, ".")
for _, host := range nmapOutput.Host {
dev := Device{}
for _, addr := range host.Address {
if addr.Addrtype == "ipv4" {
dev.IP = addr.Addr
} else if addr.Addrtype == "mac" {
dev.MAC = addr.Addr
}
if addr.Vendor != "" {
dev.MACVendor = addr.Vendor
} else {
dev.MACVendor = "Unknown"
}
}
if dev.IP == "" || dev.MAC == "" {
continue
}
names, err := net.LookupAddr(dev.IP)
if err != nil || len(names) == 0 {
dev.Name = dev.MACVendor
} else {
dev.Name = strings.TrimSuffix(names[0], ".")
}
if dev.Name == "" && dev.MACVendor == "" {
continue
}
res.Devices = append(res.Devices, dev)
}
return e.JSON(http.StatusOK, res)
}
func HandlerInitSuperuser(e *core.RequestEvent) error {
superusersCollection, err := e.App.FindCollectionByNameOrId(core.CollectionNameSuperusers)
if err != nil {
@@ -353,7 +294,7 @@ func HandlerValidateCron(e *core.RequestEvent) error {
var body ValidateCronRequest
if err := e.BindBody(&body); err != nil {
logger.Error.Println(err)
logging.Logger(e.App).Error("Failed to bind cron validation request", "error", err)
return e.BadRequestError("invalid request", err)
}
@@ -381,3 +322,85 @@ func asyncCall(e *core.RequestEvent, fn func() *router.ApiError) *router.ApiErro
return nil
}
func HandlerWebsiteManifest(e *core.RequestEvent) error {
scheme := "http"
if e.Request.TLS != nil || e.Request.Header.Get("X-Forwarded-Proto") == "https" {
scheme = "https"
}
baseUrl := fmt.Sprintf("%s://%s", scheme, e.Request.Host)
manifest := map[string]any{
"name": "UpSnap",
"short_name": "UpSnap",
"description": "A simple wake on lan web app written with SvelteKit, Go and PocketBase.",
"theme_color": "#55BCD9",
"background_color": "#55BCD9",
"display": "standalone",
"scope": baseUrl,
"start_url": baseUrl,
"icons": []map[string]string{
{
"src": "/icon_192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any",
},
{
"src": "/icon_512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any",
},
{
"src": "/maskable_192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable",
},
{
"src": "/maskable_512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable",
},
{
"src": "/gopher.svg",
"sizes": "any",
"type": "image/svg+xml",
},
},
}
publicSettings, err := e.App.FindFirstRecordByFilter("settings_public", "")
if err != nil {
return writeManifest(e, manifest)
}
// override title if set
if title := publicSettings.GetString("website_title"); title != "" {
manifest["name"] = title
manifest["short_name"] = title
}
// override icons if set
if favicon := publicSettings.GetString("favicon"); favicon != "" {
manifest["icons"] = []map[string]string{
{
"src": fmt.Sprintf("%s/api/files/settings_public/%s/%s", baseUrl, publicSettings.Id, favicon),
"sizes": "any",
"purpose": "any",
},
}
}
return writeManifest(e, manifest)
}
func writeManifest(e *core.RequestEvent, manifest map[string]any) error {
e.Response.Header().Set("Content-Type", "application/manifest+json")
e.Response.Header().Set("Cache-Control", "no-cache, no-store")
enc := json.NewEncoder(e.Response)
return enc.Encode(manifest)
}
+137
View File
@@ -0,0 +1,137 @@
//go:build linux
package pb
import (
"encoding/xml"
"fmt"
"net"
"net/http"
"os"
"os/exec"
"strconv"
"strings"
"ganigeorgiev.com/pocketbase/pocketbase/apis"
"ganigeorgiev.com/pocketbase/pocketbase/core"
"kernel.org/pub/linux/libs/security/libcap/cap"
)
func HandlerScan(e *core.RequestEvent) error {
// check if nmap installed
nmap, err := exec.LookPath("nmap")
if err != nil {
return apis.NewBadRequestError(err.Error(), nil)
}
// check if scan range is valid
allPrivateSettings, err := e.App.FindAllRecords("settings_private")
if err != nil {
return err
}
settingsPrivate := allPrivateSettings[0]
scanRange := settingsPrivate.GetString("scan_range")
_, ipNet, err := net.ParseCIDR(scanRange)
if err != nil {
return apis.NewBadRequestError(err.Error(), nil)
}
// run nmap
timeout := os.Getenv("UPSNAP_SCAN_TIMEOUT")
if timeout == "" {
timeout = "500ms"
}
orig := cap.GetProc()
defer orig.SetProc() // restore original caps on exit.
c, err := orig.Dup()
if err != nil {
return fmt.Errorf("Failed to dup existing capabilities: %v", err)
}
if on, _ := c.GetFlag(cap.Permitted, cap.NET_RAW); !on {
return fmt.Errorf("unable to get NET_RAW permissions")
}
if err := c.SetFlag(cap.Effective, true, cap.NET_RAW); err != nil {
return fmt.Errorf("unable to set NET_RAW capability effective")
}
if err := c.SetFlag(cap.Inheritable, true, cap.NET_RAW); err != nil {
return fmt.Errorf("unable to set NET_RAW capability inheritable")
}
if err := c.SetProc(); err != nil {
return fmt.Errorf("unable to raise NET_RAW capability")
}
if err := cap.SetAmbient(true, cap.NET_RAW); err != nil {
return fmt.Errorf("unable to set NET_RAW capability ambient")
}
cmd := exec.Command(nmap, "-sn", "-oX", "-", scanRange, "--host-timeout", timeout, "--privileged")
cmdOutput, err := cmd.Output()
if err != nil {
return err
}
// unmarshal xml
nmapOutput := Nmaprun{}
if err := xml.Unmarshal(cmdOutput, &nmapOutput); err != nil {
return err
}
type Device struct {
Name string `json:"name"`
IP string `json:"ip"`
MAC string `json:"mac"`
MACVendor string `json:"mac_vendor"`
}
// extract info from struct into data
type Response struct {
Netmask string `json:"netmask"`
Devices []Device `json:"devices"`
}
res := Response{}
var nm []string
for _, octet := range ipNet.Mask {
nm = append(nm, strconv.Itoa(int(octet)))
}
res.Netmask = strings.Join(nm, ".")
for _, host := range nmapOutput.Host {
dev := Device{}
for _, addr := range host.Address {
if addr.Addrtype == "ipv4" {
dev.IP = addr.Addr
} else if addr.Addrtype == "mac" {
dev.MAC = addr.Addr
}
if addr.Vendor != "" {
dev.MACVendor = addr.Vendor
} else {
dev.MACVendor = "Unknown"
}
}
if dev.IP == "" || dev.MAC == "" {
continue
}
names, err := net.LookupAddr(dev.IP)
if err != nil || len(names) == 0 {
dev.Name = dev.MACVendor
} else {
dev.Name = strings.TrimSuffix(names[0], ".")
}
if dev.Name == "" && dev.MACVendor == "" {
continue
}
res.Devices = append(res.Devices, dev)
}
return e.JSON(http.StatusOK, res)
}
+107
View File
@@ -0,0 +1,107 @@
//go:build !linux
package pb
import (
"encoding/xml"
"net"
"net/http"
"os"
"os/exec"
"strconv"
"strings"
"ganigeorgiev.com/pocketbase/pocketbase/apis"
"ganigeorgiev.com/pocketbase/pocketbase/core"
)
func HandlerScan(e *core.RequestEvent) error {
// check if nmap installed
nmap, err := exec.LookPath("nmap")
if err != nil {
return apis.NewBadRequestError(err.Error(), nil)
}
// check if scan range is valid
allPrivateSettings, err := e.App.FindAllRecords("settings_private")
if err != nil {
return err
}
settingsPrivate := allPrivateSettings[0]
scanRange := settingsPrivate.GetString("scan_range")
_, ipNet, err := net.ParseCIDR(scanRange)
if err != nil {
return apis.NewBadRequestError(err.Error(), nil)
}
// run nmap
timeout := os.Getenv("UPSNAP_SCAN_TIMEOUT")
if timeout == "" {
timeout = "500ms"
}
cmd := exec.Command(nmap, "-sn", "-oX", "-", scanRange, "--host-timeout", timeout, "--privileged")
cmdOutput, err := cmd.Output()
if err != nil {
return err
}
// unmarshal xml
nmapOutput := Nmaprun{}
if err := xml.Unmarshal(cmdOutput, &nmapOutput); err != nil {
return err
}
type Device struct {
Name string `json:"name"`
IP string `json:"ip"`
MAC string `json:"mac"`
MACVendor string `json:"mac_vendor"`
}
// extract info from struct into data
type Response struct {
Netmask string `json:"netmask"`
Devices []Device `json:"devices"`
}
res := Response{}
var nm []string
for _, octet := range ipNet.Mask {
nm = append(nm, strconv.Itoa(int(octet)))
}
res.Netmask = strings.Join(nm, ".")
for _, host := range nmapOutput.Host {
dev := Device{}
for _, addr := range host.Address {
if addr.Addrtype == "ipv4" {
dev.IP = addr.Addr
} else if addr.Addrtype == "mac" {
dev.MAC = addr.Addr
}
if addr.Vendor != "" {
dev.MACVendor = addr.Vendor
} else {
dev.MACVendor = "Unknown"
}
}
if dev.IP == "" || dev.MAC == "" {
continue
}
names, err := net.LookupAddr(dev.IP)
if err != nil || len(names) == 0 {
dev.Name = dev.MACVendor
} else {
dev.Name = strings.TrimSuffix(names[0], ".")
}
if dev.Name == "" && dev.MACVendor == "" {
continue
}
res.Devices = append(res.Devices, dev)
}
return e.JSON(http.StatusOK, res)
}
+40 -4
View File
@@ -1,12 +1,48 @@
package pb
import (
"github.com/pocketbase/dbx"
"github.com/pocketbase/pocketbase/apis"
"github.com/pocketbase/pocketbase/core"
"github.com/pocketbase/pocketbase/tools/hook"
"ganigeorgiev.com/pocketbase/dbx"
"ganigeorgiev.com/pocketbase/pocketbase/apis"
"ganigeorgiev.com/pocketbase/pocketbase/core"
"ganigeorgiev.com/pocketbase/pocketbase/tools/hook"
)
// SkipSuccessfulHealthCheckLog prevents routine Docker health checks from being
// persisted while retaining failed health checks for diagnostics.
func SkipSuccessfulHealthCheckLog(e *core.RequestEvent) error {
if e.Request.URL.Path == "/api/health" {
return apis.SkipSuccessActivityLog().Func(e)
}
return e.Next()
}
func RequireScanDevicesPermission() *hook.Handler[*core.RequestEvent] {
return &hook.Handler[*core.RequestEvent]{
Func: func(e *core.RequestEvent) error {
if e.HasSuperuserAuth() {
return e.Next()
}
user := e.Auth
if user == nil {
return apis.NewUnauthorizedError("The request requires superuser or record authorization token to be set.", nil)
}
res, err := e.App.FindFirstRecordByFilter(
"permissions",
"user.id = {:userId} && create = true",
dbx.Params{"userId": user.Id},
)
if res == nil || err != nil {
return apis.NewForbiddenError("You are not allowed to perform this request.", nil)
}
return e.Next()
},
}
}
func RequireUpSnapPermission() *hook.Handler[*core.RequestEvent] {
return &hook.Handler[*core.RequestEvent]{
Func: func(e *core.RequestEvent) error {
+150 -42
View File
@@ -1,33 +1,40 @@
package pb
import (
"errors"
"fmt"
"io/fs"
"os"
"path"
"time"
"github.com/pocketbase/pocketbase"
"github.com/pocketbase/pocketbase/apis"
"github.com/pocketbase/pocketbase/core"
"github.com/pocketbase/pocketbase/plugins/ghupdate"
"github.com/pocketbase/pocketbase/plugins/migratecmd"
"ganigeorgiev.com/pocketbase/dbx"
"ganigeorgiev.com/pocketbase/pocketbase"
"ganigeorgiev.com/pocketbase/pocketbase/apis"
"ganigeorgiev.com/pocketbase/pocketbase/core"
"ganigeorgiev.com/pocketbase/pocketbase/plugins/ghupdate"
"ganigeorgiev.com/pocketbase/pocketbase/plugins/migratecmd"
"github.com/robfig/cron/v3"
"github.com/seriousm4x/upsnap/cronjobs"
"github.com/seriousm4x/upsnap/logger"
"github.com/seriousm4x/upsnap/iptracking"
"github.com/seriousm4x/upsnap/logging"
_ "github.com/seriousm4x/upsnap/migrations"
"github.com/seriousm4x/upsnap/networking"
)
var Version = "(untracked)"
func StartPocketBase(distDirFS fs.FS) {
func StartPocketBase(distDirFS fs.FS) error {
if err := logging.ConfigureConsole(os.Getenv("UPSNAP_LOG_LEVEL")); err != nil {
return err
}
// set data dir
// use "./pb_data" if it's in the same dir as upsnap binary
// else use os.UserConfigDir() / upsnap
var dataDir string
baseDir, err := os.Getwd()
if err != nil {
logger.Error.Fatalln(err)
return err
}
pb_data := path.Join(baseDir, "pb_data")
if _, err = os.Stat(pb_data); err == nil {
@@ -35,14 +42,14 @@ func StartPocketBase(distDirFS fs.FS) {
} else if os.IsNotExist(err) {
userConfigDir, err := os.UserConfigDir()
if err != nil {
logger.Error.Fatalln(err)
return err
}
upsnap_data := path.Join(userConfigDir, "upsnap")
if _, err = os.Stat(upsnap_data); err == nil {
dataDir = upsnap_data
} else if os.IsNotExist(err) {
if err := os.MkdirAll(upsnap_data, 0700); err != nil {
logger.Error.Fatalln(err)
return err
}
}
}
@@ -68,16 +75,17 @@ func StartPocketBase(distDirFS fs.FS) {
// event hooks
app.OnServe().BindFunc(func(se *core.ServeEvent) error {
se.Router.BindFunc(SkipSuccessfulHealthCheckLog)
se.Router.GET("/{path...}", apis.Static(distDirFS, true))
se.Router.GET("/api/upsnap/wake/{id}", HandlerWake).Bind(RequireUpSnapPermission())
se.Router.GET("/api/upsnap/wakegroup/{id}", HandlerWakeGroup).Bind(RequireUpSnapPermission())
se.Router.GET("/api/upsnap/sleep/{id}", HandlerSleep).Bind(RequireUpSnapPermission())
se.Router.GET("/api/upsnap/reboot/{id}", HandlerReboot).Bind(RequireUpSnapPermission())
se.Router.GET("/api/upsnap/shutdown/{id}", HandlerShutdown).Bind(RequireUpSnapPermission())
se.Router.GET("/api/upsnap/scan", HandlerScan).Bind(apis.RequireSuperuserAuth())
se.Router.POST("/api/upsnap/init-superuser", HandlerInitSuperuser) // https://github.com/pocketbase/pocketbase/discussions/6198
se.Router.GET("/api/upsnap/shutdowngroup/{id}", HandlerShutdownGroup).Bind(RequireUpSnapPermission())
se.Router.GET("/api/upsnap/scan", HandlerScan).Bind(RequireScanDevicesPermission())
se.Router.POST("/api/upsnap/validate-cron", HandlerValidateCron)
se.Router.GET("/api/upsnap/manifest.webmanifest", HandlerWebsiteManifest)
if err := importSettings(app); err != nil {
return err
@@ -118,12 +126,19 @@ func StartPocketBase(distDirFS fs.FS) {
oldShutdownCmd := oldRecord.GetString("shutdown_cmd")
oldShutdownCronEnabled := oldRecord.GetBool("shutdown_cron_enabled")
newIp := newRecord.GetString("ip")
oldIp := oldRecord.GetString("ip")
newPingCmd := newRecord.GetString("ping_cmd")
oldPingCmd := oldRecord.GetString("ping_cmd")
if newWakeCron != oldWakeCron ||
newWakeCmd != oldWakeCmd ||
newWakeCronEnabled != oldWakeCronEnabled ||
newShutdownCron != oldShutdownCron ||
newShutdownCronEnabled != oldShutdownCronEnabled ||
newShutdownCmd != oldShutdownCmd {
newShutdownCmd != oldShutdownCmd ||
newIp != oldIp ||
newPingCmd != oldPingCmd {
cronjobs.SetWakeShutdownJobs(app)
}
}
@@ -132,10 +147,14 @@ func StartPocketBase(distDirFS fs.FS) {
return se.Next()
})
app.OnModelAfterCreateSuccess().BindFunc(func(e *core.ModelEvent) error {
app.OnModelAfterCreateSuccess("_superusers", "devices").BindFunc(func(e *core.ModelEvent) error {
if e.Model.TableName() == "_superusers" {
// when pocketbase creates it's default superuser, do not trigger setSetupCompleted()
if e.Model.(*core.Record).Email() == core.DefaultInstallerEmail {
return e.Next()
}
if err := setSetupCompleted(e.App); err != nil {
logger.Error.Println(err)
logging.Logger(e.App).Error("Failed to update setup state", "error", err)
return err
}
return e.Next()
@@ -148,7 +167,7 @@ func StartPocketBase(distDirFS fs.FS) {
permissionRec, err := app.FindFirstRecordByFilter("permissions",
fmt.Sprintf("user.id = '%s'", userId))
if err != nil && err.Error() != "sql: no rows in result set" {
logger.Error.Println(err)
logging.Logger(e.App).Error("Failed to load permissions for new device", "error", err)
return err
} else if permissionRec != nil {
permissionRec.Set("read", append(permissionRec.GetStringSlice("read"), deviceRec.Id))
@@ -156,7 +175,7 @@ func StartPocketBase(distDirFS fs.FS) {
permissionRec.Set("delete", append(permissionRec.GetStringSlice("delete"), deviceRec.Id))
permissionRec.Set("power", append(permissionRec.GetStringSlice("power"), deviceRec.Id))
if err := app.Save(permissionRec); err != nil {
logger.Error.Println(err)
logging.Logger(e.App).Error("Failed to grant permissions for new device", "error", err)
return err
}
}
@@ -164,35 +183,120 @@ func StartPocketBase(distDirFS fs.FS) {
return e.Next()
})
app.OnModelAfterDeleteSuccess().BindFunc(func(e *core.ModelEvent) error {
if e.Model.TableName() == "_superusers" {
if err := setSetupCompleted(e.App); err != nil {
logger.Error.Println(err)
return err
app.OnModelAfterDeleteSuccess("_superusers").BindFunc(func(e *core.ModelEvent) error {
if err := setSetupCompleted(e.App); err != nil {
logging.Logger(e.App).Error("Failed to update setup state", "error", err)
return err
}
return e.Next()
})
app.OnRecordValidate("devices").BindFunc(func(e *core.RecordEvent) error {
if !networking.ValidateSubnetMask(e.Record.GetString("netmask")) {
logging.Logger(e.App).Warn("Device has invalid netmask; using broadcast default", "device", e.Record.GetString("name"), "netmask", "255.255.255.255")
e.Record.Set("netmask", "255.255.255.255")
saveErr := e.App.Save(e.Record)
if saveErr != nil {
return saveErr
}
}
return e.Next()
})
// prevent new superuser bahavior introduced in pocketbase 0.23
app.OnRecordCreate(core.CollectionNameSuperusers).BindFunc(func(e *core.RecordEvent) error {
if e.Record.Email() == core.DefaultInstallerEmail {
return errors.New("skip default PocketBase installer")
app.OnRealtimeConnectRequest().BindFunc(func(e *core.RealtimeConnectRequestEvent) error {
// a client just became active: catch up on any tracking sweep that
// was skipped while nobody was connected
settings, err := e.App.FindFirstRecordByFilter("settings_private", "")
if err != nil {
logging.Logger(e.App).Error("Failed to load private settings on realtime connection", "error", err)
} else if settings.GetBool("lazy_ping") && settings.GetString("track_ip_interval") != "" {
go iptracking.CatchUpSweep(e.App)
}
return e.Next()
})
app.OnTerminate().BindFunc(func(e *core.TerminateEvent) error {
cronjobs.StopAll()
app.OnRealtimeConnectRequest().BindFunc(func(e *core.RealtimeConnectRequestEvent) error {
// PocketBase has no realtime disconnect hook. When a browser refreshes,
// the old client may disappear before the new connection is registered.
// Delay the offline transition and use the connecting client's id to
// distinguish a refresh from a genuine disconnect.
clientID := e.Client.Id()
defer func() {
// with lazy ping disabled the ping cron keeps updating device
// statuses while no clients are connected, so there is nothing
// to compensate for here
settings, err := e.App.FindFirstRecordByFilter("settings_private", "")
if err != nil {
logging.Logger(e.App).Error("Failed to load private settings for offline transition", "error", err)
return
}
if !settings.GetBool("lazy_ping") {
return
}
if len(e.App.SubscriptionsBroker().Clients()) != 0 {
return
}
time.AfterFunc(2*time.Second, func() {
if _, err := e.App.SubscriptionsBroker().ClientById(clientID); err == nil {
return
}
if len(e.App.SubscriptionsBroker().Clients()) != 0 {
return
}
allDevices, err := app.FindAllRecords("devices", dbx.NewExp("shutdown_cmd != ''"))
if err != nil {
logging.Logger(app).Error("Failed to load devices for offline transition", "error", err)
return
}
marked := 0
for _, device := range allDevices {
// leave devices that are already offline alone so the
// "offline since" timestamp keeps its real meaning
if device.GetString("status") == "offline" {
continue
}
device.Set("status", "offline")
if err := app.Save(device); err != nil {
logging.Logger(app).Error("Failed to save offline device status", "device", device.GetString("name"), "error", err)
return
}
marked++
}
if marked > 0 {
logging.Logger(app).Info("Marked devices offline after the last client disconnected", "count", marked)
}
})
}()
return e.Next()
})
if err := app.Start(); err != nil {
logger.Error.Fatalln(err)
app.OnTerminate().BindFunc(func(e *core.TerminateEvent) error {
cronjobs.StopAll(e.App)
return e.Next()
})
// check for custom http listen address in env var, else use default
httpListen := os.Getenv("UPSNAP_HTTP_LISTEN")
if httpListen != "" {
if err := app.Bootstrap(); err != nil {
return err
}
if err := apis.Serve(app, apis.ServeConfig{
HttpAddr: httpListen,
ShowStartBanner: true,
}); err != nil {
return err
}
} else {
if err := app.Start(); err != nil {
return err
}
}
return nil
}
func importSettings(app *pocketbase.PocketBase) error {
func importSettings(app core.App) error {
settingsPrivateRecords, err := app.FindAllRecords("settings_private")
if err != nil {
return err
@@ -238,12 +342,10 @@ func importSettings(app *pocketbase.PocketBase) error {
if interval == "*/3 * * * *" || interval == "@every 3s" {
settingsPrivate.Set("interval", defaultInterval)
if e := app.Save(settingsPrivate); e != nil {
logger.Error.Println(e)
logging.Logger(app).Error("Failed to save default ping interval", "error", e)
}
} else {
logger.Error.Printf("'%s' ping interval is not valid.\n", interval)
logger.Error.Println("Please go to '/settings/' and change your ping interval.")
logger.Error.Println("Falling back to default interval: " + defaultInterval)
logging.Logger(app).Error("Invalid ping interval; using default", "interval", interval, "default", defaultInterval)
}
interval = defaultInterval
}
@@ -264,15 +366,14 @@ func importSettings(app *pocketbase.PocketBase) error {
return err
}
if err := setSetupCompleted(app); err != nil {
logger.Error.Println(err)
logging.Logger(app).Error("Failed to update setup state", "error", err)
return err
}
logger.Info.Println("Ping interval set to", interval)
return nil
}
func resetDeviceStates(app *pocketbase.PocketBase) error {
func resetDeviceStates(app core.App) error {
devices, err := app.FindAllRecords("devices")
if err != nil {
return err
@@ -287,15 +388,22 @@ func resetDeviceStates(app *pocketbase.PocketBase) error {
}
func setSetupCompleted(app core.App) error {
totalAdmins, err := app.CountRecords(core.CollectionNameSuperusers)
allSuperusers, err := app.FindAllRecords(core.CollectionNameSuperusers)
if err != nil {
return err
}
realSuperusers := 0
for _, r := range allSuperusers {
// exclude the temporary PocketBase installer account from the count
if r.Email() != core.DefaultInstallerEmail {
realSuperusers++
}
}
settingsPublicRecords, err := app.FindAllRecords("settings_public")
if err != nil {
return err
}
if totalAdmins > 0 {
if realSuperusers > 0 {
settingsPublicRecords[0].Set("setup_completed", true)
} else {
settingsPublicRecords[0].Set("setup_completed", false)
+11 -1
View File
@@ -1,5 +1,9 @@
services:
upsnap:
cap_add:
- NET_RAW # Required for privileged ping, network device scan, and IP address tracking (nmap)
cap_drop:
- ALL
container_name: upsnap
build:
dockerfile: Dockerfile.dev
@@ -7,12 +11,18 @@ services:
restart: unless-stopped
volumes:
- ./data:/app/pb_data
# # If you want to use FQDN instead of an IP and it is a ".local" domain, avahi and dbus must be installed on
# # the host, and the host dbus must be mounted in the container.
# # Before uncommmenting, ensure you are familiar with potential security implications of mounting dbus
# - /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket:ro
# # To use a non-root user, create the mountpoint first before starting
# # the container (mkdir data) so that it has the right permissions.
# user: 1000:1000
# environment:
# - TZ=Europe/Berlin # Set container timezone for cron schedules
# - UPSNAP_HTTP_LISTEN=127.0.0.1:8090
# - UPSNAP_INTERVAL=*/10 * * * * * # Sets the interval in which the devices are pinged
# - UPSNAP_LOG_LEVEL=INFO # Console level for UpSnap logs: DEBUG, INFO, WARN, ERROR, or OFF
# - UPSNAP_SCAN_RANGE=192.168.1.0/24 # Scan range is used for device discovery on local network
# - UPSNAP_WEBSITE_TITLE=Custom name # Custom website title
# # dns is used for name resolution during network scan
@@ -25,4 +35,4 @@ services:
# test: curl -fs "http://localhost:5000/api/health" || exit 1
# interval: 10s
# # or install custom packages for shutdown
# entrypoint: /bin/sh -c "apk update && apk add --no-cache <YOUR_PACKAGE> && rm -rf /var/cache/apk/* && ./upsnap serve --http 0.0.0.0:8090"
# entrypoint: /bin/sh -c "apk update && apk add --no-cache <YOUR_PACKAGE> && rm -rf /var/cache/apk/* && ./upsnap serve"
+17 -9
View File
@@ -1,28 +1,36 @@
services:
upsnap:
cap_add:
- NET_RAW # NET_RAW is required for privileged ping, network device scan and ip address tracking (nmap)
cap_drop:
- ALL
container_name: upsnap
image: ghcr.io/seriousm4x/upsnap:5 # images are also available on docker hub: seriousm4x/upsnap:5
network_mode: host
network_mode: host # host is required for WOL magic packets
restart: unless-stopped
volumes:
- ./data:/app/pb_data
# # If you want to use FQDN instead of an IP and it is a ".local" domain, avahi and dbus must be installed on
# # the host, and the host dbus must be mounted in the container.
# # Before uncommmenting, ensure you are familiar with potential security implications of mounting dbus
# - /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket:ro
# # To use a non-root user, create the mountpoint first (mkdir data) so that it has the right permission.
# user: 1000:1000
# environment:
# - TZ=Europe/Berlin # Set container timezone for cron schedules
# - UPSNAP_HTTP_LISTEN=127.0.0.1:8090
# - UPSNAP_INTERVAL=*/10 * * * * * # Sets the interval in which the devices are pinged
# - UPSNAP_LOG_LEVEL=INFO # Console level for UpSnap logs: DEBUG, INFO, WARN, ERROR, or OFF
# - UPSNAP_SCAN_RANGE=192.168.1.0/24 # Scan range is used for device discovery on local network
# - UPSNAP_SCAN_TIMEOUT=500ms # Scan timeout is nmap's --host-timeout value to wait for devices (https://nmap.org/book/man-performance.html)
# - UPSNAP_PING_PRIVILEGED=true # Set to false if you don't have root user permissions
# - UPSNAP_PING_PRIVILEGED=true # Default is true. Set to false for unprivileged ping
# For Linux hosts, unprivileged pings REQUIRES the host to set 'sysctl net.ipv4.ping_group_range="0 2147483647"'
# or another suitable value to grant the group access to send ping and WOL magic packets.
# - UPSNAP_WEBSITE_TITLE=Custom name # Custom website title
# security_opt:
# - no-new-privileges=true
# # dns is used for name resolution during network scan
# dns:
# - 192.18.0.1
# - 192.18.0.2
# # you can change the listen ip:port inside the container like this:
# entrypoint: /bin/sh -c "./upsnap serve --http 0.0.0.0:5000"
# healthcheck:
# test: curl -fs "http://localhost:5000/api/health" || exit 1
# interval: 10s
# # or install custom packages for shutdown
# entrypoint: /bin/sh -c "apk update && apk add --no-cache <YOUR_PACKAGE> && rm -rf /var/cache/apk/* && ./upsnap serve --http 0.0.0.0:8090"
+27 -34
View File
@@ -15,29 +15,29 @@
"machine-translate": "inlang machine translate --project project.inlang"
},
"devDependencies": {
"@eslint/compat": "^1.3.1",
"@eslint/js": "^9.32.0",
"@inlang/cli": "^3.0.12",
"@inlang/paraglide-js": "2.2.0",
"@sveltejs/adapter-static": "^3.0.8",
"@sveltejs/kit": "^2.27.0",
"@sveltejs/vite-plugin-svelte": "^5.1.1",
"daisyui": "^5.0.50",
"eslint": "^9.32.0",
"@eslint/compat": "^2.1.1",
"@eslint/js": "^10.0.1",
"@inlang/cli": "^3.6.0",
"@inlang/paraglide-js": "^2.29.3",
"@sveltejs/adapter-static": "^3.0.11",
"@sveltejs/kit": "^2.70.4",
"@sveltejs/vite-plugin-svelte": "^7.3.1",
"daisyui": "^5.7.50",
"eslint": "^10.14.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-svelte": "^3.11.0",
"globals": "^16.3.0",
"eslint-plugin-svelte": "^3.24.0",
"globals": "^17.14.0",
"husky": "^9.1.7",
"prettier": "^3.6.2",
"prettier-plugin-svelte": "^3.4.0",
"prettier-plugin-tailwindcss": "^0.6.14",
"svelte": "^5.37.3",
"svelte-check": "^4.3.1",
"tailwindcss": "^4.1.11",
"tslib": "^2.8.1",
"typescript": "^5.9.2",
"typescript-eslint": "^8.38.0",
"vite": "^6.3.5"
"prettier": "^3.9.10",
"prettier-plugin-svelte": "^4.1.1",
"prettier-plugin-tailwindcss": "^0.8.1",
"svelte": "^5.57.3",
"svelte-check": "^4.7.8",
"tailwindcss": "^4.3.4",
"tslib": "^2.9.1",
"typescript": "^6.0.3",
"typescript-eslint": "^8.72.1",
"vite": "^8.3.6"
},
"type": "module",
"lint-staged": {
@@ -45,20 +45,13 @@
"*.{js,css,md,svelte,scss}": "prettier --write --cache --cache-strategy content --ignore-path ../.gitignore ."
},
"dependencies": {
"@fortawesome/free-solid-svg-icons": "^6.7.2",
"@tailwindcss/postcss": "^4.1.11",
"cron-parser": "^5.3.0",
"date-fns": "^4.1.0",
"pocketbase": "^0.26.2",
"postcss": "^8.5.6",
"@fortawesome/free-solid-svg-icons": "^7.3.1",
"@tailwindcss/vite": "^4.3.4",
"cron-parser": "^5.10.3",
"date-fns": "^4.4.0",
"pocketbase": "^0.28.2",
"svelte-fa": "^4.0.4",
"svelte-french-toast": "github:seriousm4x/svelte-french-toast#fix-72-build",
"theme-change": "^2.5.0"
},
"pnpm": {
"onlyBuiltDependencies": [
"@tailwindcss/oxide",
"esbuild"
]
"theme-change": "^2.5.2"
}
}
+1647 -2687
View File
File diff suppressed because it is too large Load Diff
+4
View File
@@ -0,0 +1,4 @@
allowBuilds:
esbuild: true
svelte-french-toast: true
svelte-french-toast@https://codeload.github.com/seriousm4x/svelte-french-toast/tar.gz/fbf89b9952cf11e15174b1841a6eb1ad23770349: true
-5
View File
@@ -1,5 +0,0 @@
export default {
plugins: {
'@tailwindcss/postcss': {}
}
};
+24 -1
View File
@@ -1 +1,24 @@
cache
# IF GIT SHOWED THAT THIS FILE CHANGED
#
# 1. RUN THE FOLLOWING COMMAND
#
# ---
# git rm --cached '**/*.inlang/.gitignore'
# ---
#
# 2. COMMIT THE CHANGE
#
# ---
# git commit -m "fix: remove tracked .gitignore from inlang project"
# ---
#
# Inlang handles the gitignore itself starting with version ^2.5.
#
# everything is ignored except settings.json and Paraglide configuration
*
!settings.json
!descriptions.json
!paraglide.config.js
!paraglide.config.mjs
!paraglide.config.ts
!paraglide.config.cjs
+9
View File
@@ -2,10 +2,15 @@
"$schema": "https://inlang.com/schema/project-settings",
"baseLocale": "en-US",
"locales": [
"ar-SA",
"bg-BG",
"cs-CZ",
"de-DE",
"el-GR",
"en-US",
"es-ES",
"fr-FR",
"hi-IN",
"id-ID",
"it-IT",
"ja-JP",
@@ -13,7 +18,11 @@
"nl-NL",
"nb-NO",
"pl-PL",
"pt-BR",
"pt-PT",
"ru-RU",
"uk-UA",
"vi-VN",
"zh-TW",
"zh-CN"
],
+1 -1
View File
@@ -1,5 +1,5 @@
@import 'tailwindcss';
@plugin "daisyui" {
@plugin 'daisyui' {
themes: all;
}
+1 -2
View File
@@ -2,8 +2,7 @@
<html lang="%lang%">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<link rel="manifest" href="/manifest.webmanifest" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
<script>
const darkTheme = 'dim';
+14 -15
View File
@@ -1,5 +1,6 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { resolve } from '$app/paths';
import { nextCronDate } from '$lib/helpers/cron';
import { m } from '$lib/paraglide/messages';
import { dateFnsLocale } from '$lib/stores/locale';
@@ -19,11 +20,9 @@
import { scale } from 'svelte/transition';
import DeviceCardNic from './DeviceCardNic.svelte';
export let device: Device;
let { device = $bindable() }: { device: Device } = $props();
let modalReboot: HTMLDialogElement;
$: moreButtons = [
let moreButtons = $derived([
{
text: m.device_card_btn_more_sleep(),
icon: faBed,
@@ -45,21 +44,20 @@
{
text: m.device_card_btn_more_edit(),
icon: faPen,
onClick: () => goto(`/device/${device.id}`),
onClick: () => goto(resolve(`/device?id=${device.id}`)),
requires: $pocketbase.authStore.isSuperuser || $permission.update?.includes(device.id)
}
];
]);
// update device status change
let now = Date.now();
let now = $state(Date.now());
let interval: number;
$: {
$effect(() => {
clearInterval(interval);
interval = setInterval(() => {
// eslint-disable-next-line svelte/infinite-reactive-loop
now = Date.now();
}, 1000);
}
});
function sleep() {
fetch(`${backendUrl}api/upsnap/sleep/${device.id}`, {
@@ -92,8 +90,9 @@
<div class="card bg-base-200 shadow-sm" transition:scale={{ delay: 0, duration: 200 }}>
<div class="card-body p-6">
{#if device.link.toString() !== ''}
<a href={device.link.toString()} target="_blank">
{#if device.link !== ''}
<!-- eslint-disable-next-line svelte/no-navigation-without-resolve -->
<a href={device.link} target="_blank">
<h1 class="link card-title">{device.name}</h1>
</a>
{:else}
@@ -103,7 +102,7 @@
<p class="grow-0">{device.description}</p>
{/if}
<div class="card rounded-box w-full">
<DeviceCardNic {device} />
<DeviceCardNic bind:device />
</div>
{#if device.wake_cron_enabled || device.shutdown_cron_enabled || device.password}
<div class="mt-1 flex flex-row flex-wrap gap-2">
@@ -146,7 +145,7 @@
{#each moreButtons as btn, i (i)}
{#if btn.requires}
<div class="tooltip" data-tip={btn.text}>
<button class="btn btn-sm btn-circle" on:click={btn.onClick}>
<button class="btn btn-sm btn-circle" onclick={btn.onClick}>
<Fa icon={btn.icon} />
</button>
</div>
@@ -167,7 +166,7 @@
<div class="modal-action">
<form method="dialog">
<button class="btn">{m.buttons_cancel()}</button>
<button class="btn btn-success" on:click={reboot}>{m.buttons_confirm()}</button>
<button class="btn btn-success" onclick={reboot}>{m.buttons_confirm()}</button>
</form>
</div>
</div>
@@ -6,44 +6,46 @@
import Fa from 'svelte-fa';
import toast from 'svelte-french-toast';
export let device: Device;
let hoverText = '';
let disabled = false;
let timeout = 120;
let { device = $bindable() }: { device: Device } = $props();
let hoverText = $state('');
let disabled = $state(false);
let timeout = $state(120);
let interval: number;
let modalWake: HTMLDialogElement;
let modalShutdown: HTMLDialogElement;
let seconds = $derived(timeout % 60);
let minutes = $derived(Math.floor(timeout / 60));
$: if (device.status === 'pending' && !interval) {
// eslint-disable-next-line svelte/infinite-reactive-loop
countdown(Date.parse(device.updated), 'wake');
}
$: minutes = Math.floor(timeout / 60);
$: seconds = timeout % 60;
$: if (device.status === 'pending' || device.status === '') {
disabled = true;
hoverText = m.device_card_nic_tooltip_pending();
} else if (device.status === 'online') {
if (device.shutdown_cmd === '') {
disabled = true;
hoverText = m.device_card_nic_tooltip_shutdown_no_cmd();
} else if (!$pocketbase.authStore.isSuperuser && !$permission.power?.includes(device.id)) {
disabled = true;
hoverText = m.device_card_nic_tooltip_shutdown_no_permission();
} else {
disabled = false;
hoverText = m.device_card_nic_tooltip_shutdown();
$effect(() => {
if (device.status === 'pending' && !interval) {
countdown(Date.parse(device.updated), 'wake');
}
} else if (device.status === 'offline') {
if (!$pocketbase.authStore.isSuperuser && !$permission.power?.includes(device.id)) {
});
$effect(() => {
if (device.status === 'pending' || device.status === '') {
disabled = true;
hoverText = m.device_card_nic_tooltip_power_no_permission();
} else {
disabled = false;
hoverText = m.device_card_nic_tooltip_power();
hoverText = m.device_card_nic_tooltip_pending();
} else if (device.status === 'online') {
if (device.shutdown_cmd === '') {
disabled = true;
hoverText = m.device_card_nic_tooltip_shutdown_no_cmd();
} else if (!$pocketbase.authStore.isSuperuser && !$permission.power?.includes(device.id)) {
disabled = true;
hoverText = m.device_card_nic_tooltip_shutdown_no_permission();
} else {
disabled = false;
hoverText = m.device_card_nic_tooltip_shutdown();
}
} else if (device.status === 'offline') {
if (!$pocketbase.authStore.isSuperuser && !$permission.power?.includes(device.id)) {
disabled = true;
hoverText = m.device_card_nic_tooltip_power_no_permission();
} else {
disabled = false;
hoverText = m.device_card_nic_tooltip_power();
}
}
}
});
function wake() {
countdown(Date.now(), 'wake');
@@ -114,7 +116,7 @@
if (timeout <= 0 || device.status !== 'pending') {
clearInterval(interval);
// eslint-disable-next-line svelte/infinite-reactive-loop
interval = 0;
}
}, 1000);
@@ -148,8 +150,8 @@
<div
class={`tooltip ${disabled ? 'cursor-not-allowed' : 'hover:bg-base-300 cursor-pointer'} bg-base-100 rounded-box flex items-start gap-4 p-2`}
data-tip={hoverText}
on:click={disabled ? null : handleClick}
on:keydown={disabled ? null : handleClick}
onclick={disabled ? null : handleClick}
onkeydown={disabled ? null : handleClick}
role="none"
>
{#if device.status === 'offline'}
@@ -161,9 +163,9 @@
>
{:else if device.status === 'pending'}
<button class="btn btn-warning">
<span class="countdown font-mono">
<span style="--value:{minutes};"></span>:
<span style="--value:{seconds};"></span>
<span class="countdown font-mono tabular-nums">
<span style="--value:{minutes};--digits: 2"></span>:
<span style="--value:{seconds};--digits: 2"></span>
</span>
</button>
{:else}
@@ -176,7 +178,9 @@
<div>{device.mac}</div>
<div class="flex flex-wrap gap-x-4">
{#if device?.expand?.ports}
{#each device?.expand?.ports.sort((a, b) => a.number - b.number) as port (port.id)}
{#each $state
.snapshot(device)
.expand?.ports.sort((a, b) => a.number - b.number) as port (port.id)}
<span class="flex items-center gap-1 break-all">
{#if port.status}
<div class="inline-grid *:[grid-area:1/1]">
@@ -190,12 +194,14 @@
</div>
{/if}
{#if port.link}
<!-- eslint-disable svelte/no-navigation-without-resolve -->
<a
href={port.link}
target="_blank"
class="underline"
on:click={(e) => e.stopPropagation()}>{port.name} ({port.number})</a
onclick={(e) => e.stopPropagation()}>{port.name} ({port.number})</a
>
<!-- eslint-enable svelte/no-navigation-without-resolve -->
{:else}
{port.name} ({port.number})
{/if}
@@ -215,7 +221,7 @@
<div class="modal-action">
<form method="dialog">
<button class="btn">{m.buttons_cancel()}</button>
<button class="btn btn-success" on:click={wake}>{m.buttons_confirm()}</button>
<button class="btn btn-success" onclick={wake}>{m.buttons_confirm()}</button>
</form>
</div>
</div>
@@ -230,7 +236,7 @@
<div class="modal-action">
<form method="dialog">
<button class="btn">{m.buttons_cancel()}</button>
<button class="btn btn-success" on:click={shutdown}>{m.buttons_confirm()}</button>
<button class="btn btn-success" onclick={shutdown}>{m.buttons_confirm()}</button>
</form>
</div>
</div>
+61 -17
View File
@@ -1,9 +1,11 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { resolve } from '$app/paths';
import DeviceFormPort from '$lib/components/DeviceFormPort.svelte';
import { nextCronDate, parseCron as validateCron } from '$lib/helpers/cron';
import { m } from '$lib/paraglide/messages';
import { permission, pocketbase } from '$lib/stores/pocketbase';
import { settingsPriv } from '$lib/stores/settings';
import type { Device, Group, Port } from '$lib/types/device';
import { faSave, faTrash, faX } from '@fortawesome/free-solid-svg-icons';
import { onMount } from 'svelte';
@@ -20,7 +22,25 @@
await getGroups();
});
const fqdnPattern =
/^(?:[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?\.)+[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,61}[\p{L}\p{N}])?$/u;
const ipPattern =
/^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}$/;
const macPattern = '^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$';
const netmaskPattern =
'^(?:255\\.255\\.255\\.(?:255|254|252|248|240|224|192|128|0)|255\\.255\\.(?:255|254|252|248|240|224|192|128|0)\\.0|255\\.(?:255|254|252|248|240|224|192|128|0)\\.0\\.0|(?:255|254|252|248|240|224|192|128|0)\\.0\\.0\\.0)$';
$: if ($settingsPriv?.track_ip_interval === '' || !ipPattern.test(device.ip)) {
device.track_ip = false;
}
async function save() {
// validate FQDN/IP
if (!(ipPattern.test(device.ip) || fqdnPattern.test(device.ip))) {
toast.error(m.settings_invalid_fqdnip());
throw new Error('fqdn_ip not valid');
}
// validate crons
if (device.wake_cron_enabled && !(await validateCron(device.wake_cron))) {
toast.error(m.settings_invalid_cron());
@@ -68,7 +88,7 @@
.update(device.id, device)
.then(() => {
toast.success(m.toasts_device_updated({ device: device.name }));
goto('/');
goto(resolve('/'));
})
.catch((err) => {
toast.error(err.message);
@@ -84,7 +104,7 @@
.create(device)
.then(() => {
toast.success(m.toasts_device_created({ device: device.name }));
goto('/');
goto(resolve('/'));
})
.catch((err) => {
toast.error(err.message);
@@ -127,7 +147,7 @@
.delete(device.id)
.then(() => {
toast.success(m.toasts_device_deleted({ device: device.name }));
goto('/');
goto(resolve('/'));
})
.catch((err) => {
toast.error(err.message);
@@ -194,7 +214,13 @@
}
</script>
<form on:submit|preventDefault={save}>
<form
onsubmit={(e) => {
e.preventDefault();
save();
}}
class="flex w-full flex-col"
>
<div class="card bg-base-200 w-full shadow-sm">
<div class="card-body">
<h2 class="card-title">{m.device_general()}</h2>
@@ -218,6 +244,7 @@
type="text"
placeholder={m.device_general_ip()}
class="input"
maxlength="255"
bind:value={device.ip}
required
/>
@@ -230,6 +257,8 @@
type="text"
placeholder={m.device_general_mac()}
class="input"
maxlength="18"
pattern={macPattern}
bind:value={device.mac}
required
/>
@@ -242,6 +271,8 @@
type="text"
placeholder={m.device_general_netmask()}
class="input"
maxlength="16"
pattern={netmaskPattern}
bind:value={device.netmask}
required
/>
@@ -260,6 +291,19 @@
</fieldset>
<span class="badge text-error self-center">* {m.device_general_required_field()}</span>
</div>
<fieldset class="fieldset bg-base-100 border-base-300 rounded-box mt-2 w-fit border p-4">
<legend class="fieldset-legend">{m.device_general_track_ip()}</legend>
<label class="fieldset-label">
<input
type="checkbox"
bind:checked={device.track_ip}
class="toggle toggle-success"
disabled={$settingsPriv?.track_ip_interval === '' || !ipPattern.test(device.ip)}
/>
{m.device_general_track_ip()}
</label>
<p class="fieldset-label max-w-md">{m.device_general_track_ip_desc()}</p>
</fieldset>
</div>
</div>
<div class="card bg-base-200 mt-6 w-full shadow-sm">
@@ -275,7 +319,7 @@
</div>
<button
class="btn max-w-xs {device.expand.ports.length > 0 ? 'mt-4' : ''}"
on:click={() => createEmptyPort()}
onclick={() => createEmptyPort()}
type="button">{m.device_ports_add_new()}</button
>
</div>
@@ -320,7 +364,7 @@
{@html m.device_ping_desc()}
</p>
<fieldset class="fieldset">
<label class="input mt-2">
<label class="input mt-2 w-full">
<span>$:</span>
<input
type="text"
@@ -336,7 +380,7 @@
<div class="card-body">
<h2 class="card-title">{m.device_wake()}</h2>
<p>
{m.device_wake_desc()}
{@html m.device_wake_desc()}
<!-- eslint-disable svelte/no-at-html-tags -->
{@html m.settings_ping_interval_desc2()}
</p>
@@ -353,8 +397,8 @@
/>
</label>
</fieldset>
<fieldset class="fieldset">
<label class="input mt-2">
<fieldset class="fieldset grow">
<label class="input mt-2 w-full">
<span>$:</span>
<input
type="text"
@@ -450,8 +494,8 @@ second (0–59, optional)
/>
</label>
</fieldset>
<fieldset class="fieldset">
<label class="input mt-2">
<fieldset class="fieldset grow">
<label class="input mt-2 w-full">
<span>$:</span>
<input
type="text"
@@ -666,12 +710,12 @@ second (0–59, optional)
<button
class="btn btn-error join-item"
type="button"
on:click={() => deleteGroup(group)}><Fa icon={faX} /></button
onclick={() => deleteGroup(group)}><Fa icon={faX} /></button
>
</div>
<div
class="btn join-item bg-base-100 hover:bg-base-200"
on:click={() => toggleGroup(group.id)}
onclick={() => toggleGroup(group.id)}
role="none"
>
<input
@@ -689,7 +733,7 @@ second (0–59, optional)
class="input join-item"
placeholder={m.device_groups_placeholder()}
type="text"
on:keydown={(e) => {
onkeydown={(e) => {
if (e.key === 'Enter') {
e.preventDefault();
addGroup();
@@ -697,7 +741,7 @@ second (0–59, optional)
}}
bind:value={newGroup}
/>
<button class="btn btn-neutral join-item" type="button" on:click={() => addGroup()}
<button class="btn btn-neutral join-item" type="button" onclick={() => addGroup()}
>{m.buttons_add()}</button
>
</div>
@@ -705,7 +749,7 @@ second (0–59, optional)
</div>
<div class="card-actions mt-6 justify-end gap-4">
{#if $pocketbase.authStore.isSuperuser || $permission.delete?.includes(device.id)}
<button class="btn btn-error" type="button" on:click={() => deleteModal.showModal()}
<button class="btn btn-error" type="button" onclick={() => deleteModal.showModal()}
><Fa icon={faTrash} />{m.buttons_delete()}</button
>
{/if}
@@ -719,7 +763,7 @@ second (0–59, optional)
<div class="modal-action">
<form method="dialog">
<button class="btn">{m.buttons_cancel()}</button>
<button class="btn btn-error" on:click={() => deleteDevice()}>{m.buttons_delete()}</button>
<button class="btn btn-error" onclick={() => deleteDevice()}>{m.buttons_delete()}</button>
</form>
</div>
</div>
@@ -70,7 +70,7 @@
</fieldset>
<button
class="btn btn-error btn-xs btn-soft ms-auto"
on:click={() => deletePort(device.expand.ports[index])}
onclick={() => deletePort(device.expand.ports[index])}
type="button"><Fa icon={faTrash} />{m.buttons_delete()}</button
>
</fieldset>
+44 -23
View File
@@ -1,6 +1,7 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { page } from '$app/stores';
import { asset, resolve } from '$app/paths';
import { page } from '$app/state';
import { m } from '$lib/paraglide/messages';
import { backendUrl, permission, pocketbase } from '$lib/stores/pocketbase';
import { settingsPub } from '$lib/stores/settings';
@@ -10,6 +11,7 @@
faCog,
faDoorOpen,
faHome,
faListUl,
faPlus,
faSwatchbook,
faUserGear,
@@ -73,7 +75,7 @@
await $pocketbase.collection('ports').unsubscribe('*');
await $pocketbase.collection('permissions').unsubscribe('*');
$pocketbase.authStore.clear();
goto('/login', { invalidateAll: true });
goto(resolve('/login'), { invalidateAll: true });
}
</script>
@@ -102,7 +104,7 @@
<ul
id="mobile-menu"
tabindex="-1"
class="menu dropdown-content rounded-box bg-base-200 z-[1] mt-3 w-max gap-1 p-2 shadow-sm"
class="menu dropdown-content rounded-box bg-base-200 z-1 mt-3 w-max gap-1 p-2 shadow-sm"
>
{#if $settingsPub?.website_title}
<div class="menu-title">
@@ -110,27 +112,35 @@
</div>
{/if}
<li>
<a href="/" class="px-4 py-2" class:active={$page.url.pathname === '/'}
<a href={resolve('/')} class="px-4 py-2" class:active={page.url.pathname === resolve('/')}
><Fa icon={faHome} />{m.home_page_title()}</a
>
</li>
{#if $pocketbase.authStore.isSuperuser}
<li>
<a
href="/users"
href={resolve('/users')}
class="px-4 py-2"
class:active={$page.url.pathname.startsWith('/users')}
class:active={page.url.pathname.startsWith(resolve('/users'))}
><Fa icon={faUsersGear} />{m.users_page_title()}</a
>
</li>
<li>
<a
href="/settings/"
href={resolve('/settings/')}
class="px-4 py-2"
class:active={$page.url.pathname.startsWith('/settings')}
class:active={page.url.pathname.startsWith(resolve('/settings'))}
><Fa icon={faCog} />{m.settings_page_title()}</a
>
</li>
<li>
<a
href={resolve('/logs/')}
class="px-4 py-2"
class:active={page.url.pathname.startsWith(resolve('/logs'))}
><Fa icon={faListUl} />{m.logs_page_title()}</a
>
</li>
{/if}
<li>
<details>
@@ -145,8 +155,8 @@
<button
class="gap-3 px-2"
data-set-theme={theme}
on:click={() => (activeTheme = theme)}
on:keydown={() => (activeTheme = theme)}
onclick={() => (activeTheme = theme)}
onkeydown={() => (activeTheme = theme)}
>
<div
data-theme={theme}
@@ -168,11 +178,11 @@
</li>
</ul>
</div>
<a class="btn btn-ghost h-full border-0 px-2 text-xl" href="/">
<a class="btn btn-ghost h-full border-0 px-2 text-xl" href={resolve('/')}>
<img
src={$settingsPub?.id && $settingsPub?.favicon
? `${backendUrl}api/files/settings_public/${$settingsPub?.id}/${$settingsPub?.favicon}`
: '/gopher.svg'}
: asset('/gopher.svg')}
alt={$settingsPub?.website_title ? $settingsPub?.website_title : 'UpSnap'}
width="45"
height="45"
@@ -185,24 +195,35 @@
{/if}
<ul class="menu menu-horizontal h-full gap-1 px-1">
<li class="h-full">
<a href="/" class="p-2" class:menu-active={$page.url.pathname === '/'}
<a href={resolve('/')} class="p-2" class:menu-active={page.url.pathname === resolve('/')}
><Fa icon={faHome} />{m.home_page_title()}</a
>
</li>
{#if $pocketbase.authStore.isSuperuser}
<li class="h-full">
<a href="/users" class="p-2" class:menu-active={$page.url.pathname.startsWith('/users')}
<a
href={resolve('/users')}
class="p-2"
class:menu-active={page.url.pathname.startsWith(resolve('/users'))}
><Fa icon={faUsersGear} />{m.users_page_title()}</a
>
</li>
<li class="h-full">
<a
href="/settings/"
href={resolve('/settings/')}
class="p-2"
class:menu-active={$page.url.pathname.startsWith('/settings')}
class:menu-active={page.url.pathname.startsWith(resolve('/settings'))}
><Fa icon={faCog} />{m.settings_page_title()}</a
>
</li>
<li class="h-full">
<a
href={resolve('/logs/')}
class="p-2"
class:menu-active={page.url.pathname.startsWith(resolve('/logs'))}
><Fa icon={faListUl} />{m.logs_page_title()}</a
>
</li>
{/if}
<div class="dropdown dropdown-end">
<button class="btn btn-ghost hover:bg-base-content/10 h-full border-0 p-2" tabindex="0">
@@ -217,8 +238,8 @@
<button
class="gap-3 px-2"
data-set-theme={theme}
on:click={() => (activeTheme = theme)}
on:keydown={() => (activeTheme = theme)}
onclick={() => (activeTheme = theme)}
onkeydown={() => (activeTheme = theme)}
>
<div
data-theme={theme}
@@ -242,7 +263,7 @@
<div class="ms-auto justify-end">
{#if $pocketbase.authStore?.record !== null}
{#if $pocketbase.authStore.isSuperuser || $permission.create}
<a class="btn btn-success me-4" href="/device/new">
<a class="btn btn-success me-4" href={resolve('/device/new')}>
<Fa icon={faPlus} />
{m.navbar_new()}
</a>
@@ -250,12 +271,12 @@
<div class="dropdown dropdown-end">
<label tabindex="-1" class="avatar btn btn-circle btn-ghost" for="avatar">
<div class="w-10 rounded-full" id="avatar">
<img src="/avatars/avatar{avatar}.svg" alt="Avatar {avatar}" />
<img src={asset(`/avatars/avatar${avatar}.svg`)} alt="Avatar {avatar}" />
</div>
</label>
<ul
tabindex="-1"
class="menu dropdown-content rounded-box bg-base-200 z-[1] mt-3 w-52 p-2 shadow"
class="menu dropdown-content rounded-box bg-base-200 z-1 mt-3 w-52 p-2 shadow"
>
<li class="menu-title">
{$pocketbase.authStore.isSuperuser
@@ -263,10 +284,10 @@
: $pocketbase.authStore.record?.username}
</li>
<li>
<a href="/account"><Fa icon={faUserGear} />{m.navbar_edit_account()}</a>
<a href={resolve('/account')}><Fa icon={faUserGear} />{m.navbar_edit_account()}</a>
</li>
<li>
<div on:click={async () => logout()} on:keydown={async () => logout()} role="none">
<div onclick={async () => logout()} onkeydown={async () => logout()} role="none">
<Fa icon={faDoorOpen} />{m.navbar_logout()}
</div>
</li>
+50 -43
View File
@@ -1,5 +1,6 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { resolve } from '$app/paths';
import PageLoading from '$lib/components/PageLoading.svelte';
import { m } from '$lib/paraglide/messages';
import { localeStore } from '$lib/stores/locale';
@@ -23,6 +24,8 @@
let replaceNetmaskCheckbox = false;
let replaceNetmask = '';
let loading = true;
onMount(() => {
if (!$settingsPriv) {
$pocketbase
@@ -39,6 +42,7 @@
} else {
scanRange = $settingsPriv.scan_range;
}
loading = false;
});
function saveSettings() {
@@ -113,43 +117,51 @@
})
);
toast.success(m.toasts_devices_created_multiple({ count: count }));
goto('/');
goto(resolve('/'));
}
</script>
{#if $settingsPriv}
{#if !loading}
<div class="card bg-base-200 mt-6 w-full shadow-sm">
<div class="card-body">
<h2 class="card-title">{m['device_tabs.1']()}</h2>
<h2 class="card-title">{m['device_tabs_0']()}</h2>
<p class="my-2">
{m.device_network_scan_desc()}
</p>
<div class="flex flex-row flex-wrap items-end gap-4">
<form on:submit|preventDefault={saveSettings}>
<fieldset class="fieldset p-0">
<label class="floating-label mt-2">
<span>{m.device_network_scan_ip_range()}</span>
<div class="join max-w-xs">
<input
id="scan-range"
class="input join-item w-full"
type="text"
placeholder="192.168.1.0/24"
bind:value={scanRange}
/>
<button class="btn btn-neutral join-item" type="submit">{m.buttons_save()}</button>
</div>
</label>
</fieldset>
</form>
{#if $settingsPriv}
<form
onsubmit={(e) => {
e.preventDefault();
saveSettings();
}}
>
<fieldset class="fieldset p-0">
<label class="floating-label mt-2">
<span>{m.device_network_scan_ip_range()}</span>
<div class="join max-w-xs">
<input
id="scan-range"
class="input join-item w-full"
type="text"
placeholder="192.168.1.0/24"
bind:value={scanRange}
/>
<button class="btn btn-neutral join-item" type="submit">{m.buttons_save()}</button
>
</div>
</label>
</fieldset>
</form>
{/if}
<div>
<div>
{#if !$settingsPriv.scan_range}
{#if $settingsPriv && !$settingsPriv.scan_range}
<button class="btn btn-error" disabled>
<Fa icon={faX} />
{m.device_network_scan_no_range()}
</button>
{:else if scanRange !== $settingsPriv.scan_range}
{:else if $settingsPriv && scanRange !== $settingsPriv.scan_range}
<button class="btn btn-error" disabled>
<Fa icon={faX} />
{m.device_network_scan_unsaved_changes()}
@@ -160,7 +172,7 @@
{m.device_network_scan_running()}
</button>
{:else}
<button class="btn btn-success" on:click={() => scan()}>
<button class="btn btn-success" onclick={() => scan()}>
<Fa icon={faMagnifyingGlass} />
{m.device_network_scan()}
</button>
@@ -169,7 +181,7 @@
</div>
</div>
{#if scanResponse.devices?.length > 0}
{#each scanResponse.devices.sort( (a, b) => a.ip.localeCompare( b.ip, $localeStore, { numeric: true } ) ) as device, index (device.mac)}
{#each scanResponse.devices.sort( (a, b) => a.ip.localeCompare( b.ip, $localeStore, { numeric: true } ) ) as device, index (device)}
<div class="collapse-arrow bg-base-100 collapse">
<input type="radio" name="scanned-devices" checked={index === 0} />
<div class="collapse-title font-bold">
@@ -197,7 +209,7 @@
<div class="ms-auto">
<button
class="btn btn-success btn-sm"
on:click={(e) => {
onclick={(e) => {
addSingle(device);
e.currentTarget.disabled = true;
}}><Fa icon={faPlus} />{m.buttons_add()}</button
@@ -208,15 +220,14 @@
</div>
{/each}
<h2 class="card-title mt-4">{m.device_network_scan_add_all()}</h2>
<div class="max-w-fit">
<div class="flex max-w-fit flex-col gap-2">
<label class="label cursor-pointer">
<input type="checkbox" class="checkbox" bind:checked={replaceNetmaskCheckbox} />
<span class="ms-2 text-wrap break-words">{m.device_network_scan_replace_netmask()}</span
<span class="ms-2 text-wrap wrap-break-word"
>{m.device_network_scan_replace_netmask()}</span
>
</label>
</div>
{#if replaceNetmaskCheckbox}
<div class="max-w-fit">
{#if replaceNetmaskCheckbox}
<label class="label cursor-pointer" for="replaceNetmaskInput">
<span class="ms-2">{m.device_network_scan_new_netmask()}</span>
</label>
@@ -227,20 +238,18 @@
placeholder="255.255.255.0"
bind:value={replaceNetmask}
/>
</div>
{/if}
{#if scanResponse.devices.find((dev) => dev.name === 'Unknown')}
<div class="max-w-fit">
{/if}
{#if scanResponse.devices.find((dev) => dev.name === 'Unknown')}
<label class="label cursor-pointer">
<input type="checkbox" class="checkbox" bind:checked={addAllCheckbox} />
<span class="ms-2 text-wrap break-words"
<span class="ms-2 text-wrap wrap-break-word"
>{m.device_network_scan_include_unknown()}</span
>
</label>
{#if addAllCheckbox}
<button
class="btn btn-success"
on:click={() => addAll()}
onclick={() => addAll()}
disabled={scanResponse.devices.length === 0}
>
<Fa icon={faPlus} />
@@ -249,7 +258,7 @@
{:else}
<button
class="btn btn-success"
on:click={() => addAll()}
onclick={() => addAll()}
disabled={scanResponse.devices.filter((dev) => dev.name !== 'Unknown').length === 0}
>
<Fa icon={faPlus} />
@@ -258,19 +267,17 @@
).length})
</button>
{/if}
</div>
{:else}
<div class="max-w-fit">
{:else}
<button
class="btn btn-success"
on:click={() => addAll()}
onclick={() => addAll()}
disabled={scanResponse.devices.length === 0}
>
<Fa icon={faPlus} />
{m.device_network_scan_add_all()} ({scanResponse.devices.length})
</button>
</div>
{/if}
{/if}
</div>
{/if}
</div>
</div>
@@ -1,10 +1,10 @@
<script lang="ts">
import { fly } from 'svelte/transition';
export let url: URL;
let { url, children } = $props();
</script>
{#key url}
<div in:fly={{ y: 50, duration: 300 }}>
<slot />
{@render children()}
</div>
{/key}
+2 -2
View File
@@ -1,13 +1,13 @@
import { m } from '$lib/paraglide/messages';
import { dateFnsLocale } from '$lib/stores/locale';
import { backendUrl } from '$lib/stores/pocketbase';
import cronParser from 'cron-parser';
import { CronExpressionParser } from 'cron-parser';
import { formatDate, type Locale } from 'date-fns';
import { get } from 'svelte/store';
export function nextCronDate(expression: string) {
try {
const cron = cronParser.parse(expression);
const cron = CronExpressionParser.parse(expression);
const cronStr = cron.next().toISOString();
if (!cronStr) {
throw new Error(m.settings_invalid_cron());
+38 -3
View File
@@ -1,20 +1,28 @@
import { getLocale } from '$lib/paraglide/runtime';
import type { Locale } from 'date-fns';
import { id } from 'date-fns/locale';
import { arSA } from 'date-fns/locale/ar-SA';
import { bg } from 'date-fns/locale/bg';
import { cs } from 'date-fns/locale/cs';
import { de } from 'date-fns/locale/de';
import { el } from 'date-fns/locale/el';
import { enUS } from 'date-fns/locale/en-US';
import { es } from 'date-fns/locale/es';
import { fr } from 'date-fns/locale/fr';
import { hi } from 'date-fns/locale/hi';
import { id } from 'date-fns/locale/id';
import { it } from 'date-fns/locale/it';
import { ja } from 'date-fns/locale/ja';
import { ko } from 'date-fns/locale/ko';
import { nl } from 'date-fns/locale/nl';
import { nb } from 'date-fns/locale/nb';
import { nl } from 'date-fns/locale/nl';
import { pl } from 'date-fns/locale/pl';
import { pt } from 'date-fns/locale/pt';
import { ptBR } from 'date-fns/locale/pt-BR';
import { ru } from 'date-fns/locale/ru';
import { uk } from 'date-fns/locale/uk';
import { vi } from 'date-fns/locale/vi';
import { zhCN } from 'date-fns/locale/zh-CN';
import { zhTW } from 'date-fns/locale/zh-TW';
import { writable, type Writable } from 'svelte/store';
export const localeStore = writable(getLocale());
@@ -22,9 +30,21 @@ export const dateFnsLocale: Writable<Locale> = writable(enUS);
localeStore.subscribe((l: string) => {
switch (l) {
case 'ar-SA':
dateFnsLocale.set(arSA);
break;
case 'bg-BG':
dateFnsLocale.set(bg);
break;
case 'cs-CZ':
dateFnsLocale.set(cs);
break;
case 'de-DE':
dateFnsLocale.set(de);
break;
case 'el-GR':
dateFnsLocale.set(el);
break;
case 'en-US':
dateFnsLocale.set(enUS);
break;
@@ -34,6 +54,9 @@ localeStore.subscribe((l: string) => {
case 'fr-FR':
dateFnsLocale.set(fr);
break;
case 'hi-IN':
dateFnsLocale.set(hi);
break;
case 'id-ID':
dateFnsLocale.set(id);
break;
@@ -55,9 +78,21 @@ localeStore.subscribe((l: string) => {
case 'pl-PL':
dateFnsLocale.set(pl);
break;
case 'pt-BR':
dateFnsLocale.set(ptBR);
break;
case 'pt':
dateFnsLocale.set(pt);
break;
case 'ru-RU':
dateFnsLocale.set(ru);
break;
case 'uk-UA':
dateFnsLocale.set(uk);
break;
case 'vi-VN':
dateFnsLocale.set(vi);
break;
case 'zh-CN':
dateFnsLocale.set(zhCN);
break;
+2 -1
View File
@@ -1,9 +1,10 @@
import { resolve } from '$app/paths';
import type { Permission } from '$lib/types/permission';
import PocketBase from 'pocketbase';
import { writable } from 'svelte/store';
// set backend url based on environment
export const backendUrl = import.meta.env.DEV ? 'http://127.0.0.1:8090/' : '/';
export const backendUrl = import.meta.env.DEV ? 'http://127.0.0.1:8090/' : resolve('/');
// connect to backend
const pb = new PocketBase(backendUrl);
+2 -1
View File
@@ -5,10 +5,11 @@ export type Device = RecordModel & {
ip: string;
mac: string;
netmask: string;
track_ip: boolean;
description: string;
status: 'pending' | 'online' | 'offline' | '';
ports: string[];
link: URL;
link: string;
link_open: '' | 'same_tab' | 'new_tab';
ping_cmd: string;
wake_cron: string;
+1
View File
@@ -11,4 +11,5 @@ export type SettingsPrivate = RecordModel & {
interval: string;
lazy_ping: boolean;
scan_range: string;
track_ip_interval: string;
};
+43 -17
View File
@@ -1,22 +1,40 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { asset, resolve } from '$app/paths';
import { page } from '$app/state';
import Navbar from '$lib/components/Navbar.svelte';
import Transition from '$lib/components/Transition.svelte';
import { m } from '$lib/paraglide/messages.js';
import { locales, localizeHref } from '$lib/paraglide/runtime';
import { localeStore } from '$lib/stores/locale';
import { backendUrl, permission, pocketbase } from '$lib/stores/pocketbase';
import { settingsPub } from '$lib/stores/settings';
import { settingsPriv, settingsPub } from '$lib/stores/settings';
import type { Permission } from '$lib/types/permission';
import type { SettingsPublic } from '$lib/types/settings';
import type { SettingsPrivate, SettingsPublic } from '$lib/types/settings';
import { onMount } from 'svelte';
import toast, { Toaster, type ToastOptions } from 'svelte-french-toast';
import '../app.css';
let { children } = $props();
let authIsValid = $state(false);
const toastOptions: ToastOptions = {
duration: 5000
};
let authIsValid = false;
// list of RTL languages, more can be added if needed
const RTL_LANGS = ['ar-SA'];
function setHTMLdir(lang: string) {
if (RTL_LANGS.includes(lang)) {
document.documentElement.setAttribute('dir', 'rtl');
} else {
document.documentElement.setAttribute('dir', 'ltr');
}
}
$effect(() => {
setHTMLdir($localeStore);
});
onMount(async () => {
$pocketbase.authStore.onChange(() => {
@@ -48,9 +66,11 @@
}
// redirect to welcome page if setup is not completed
if ($settingsPub.setup_completed === false && page.url.pathname !== '/welcome') {
if ($settingsPub.setup_completed === false) {
$pocketbase.authStore.clear();
goto('/welcome');
if (page.url.pathname !== '/welcome/') {
goto(resolve('/welcome'));
}
return;
}
@@ -59,12 +79,19 @@
await $pocketbase
.collection('_superusers')
.authRefresh()
.then(async () => {
// set settingsPriv store on load
if (!$settingsPriv) {
const res = await $pocketbase.collection('settings_private').getFirstListItem('');
settingsPriv.set(res as SettingsPrivate);
}
})
.catch((err) => {
// clear the store only on invalidated/expired token
const status = err?.status << 0;
if (status == 401 || status == 403) {
$pocketbase.authStore.clear();
goto('/login');
goto(resolve('/login'));
} else {
console.log('NOT CLEARED');
}
@@ -78,7 +105,7 @@
const status = err?.status << 0;
if (status == 401 || status == 403) {
$pocketbase.authStore.clear();
goto('/login');
goto(resolve('/login'));
}
});
}
@@ -86,11 +113,16 @@
</script>
<svelte:head>
<link
rel="manifest"
href={backendUrl + 'api/upsnap/manifest.webmanifest'}
crossorigin="use-credentials"
/>
<link
rel="shortcut icon"
href={$settingsPub?.id && $settingsPub?.favicon
? `${backendUrl}api/files/settings_public/${$settingsPub?.id}/${$settingsPub?.favicon}`
: '/gopher.svg'}
: asset('/gopher.svg')}
/>
{#if $settingsPub === undefined}
<title>UpSnap</title>
@@ -99,7 +131,7 @@
{/if}
</svelte:head>
{#if authIsValid && !page.url.pathname.startsWith('/welcome')}
{#if authIsValid && !page.url.pathname.startsWith(resolve('/welcome'))}
<Navbar />
{/if}
@@ -107,12 +139,6 @@
<Transition url={page.url}>
<div class="container mx-auto mb-4 p-2">
<slot />
{@render children()}
</div>
</Transition>
<div class="hidden">
{#each locales as locale (locale)}
<a href={localizeHref(page.url.pathname, { locale })}>{locale}</a>
{/each}
</div>
+117 -51
View File
@@ -1,5 +1,6 @@
<script lang="ts">
import { browser } from '$app/environment';
import { resolve } from '$app/paths';
import DeviceCard from '$lib/components/DeviceCard.svelte';
import PageLoading from '$lib/components/PageLoading.svelte';
import { m } from '$lib/paraglide/messages';
@@ -17,14 +18,23 @@
import Fa from 'svelte-fa';
import toast from 'svelte-french-toast';
let loading = true;
let devices: Device[] = [];
let orderBy: 'name' | 'ip' = 'name';
let orderExpanded = false;
let orderByGroups = true;
let searchQuery = '';
let searchInput: HTMLInputElement;
const isMac = /Mac|iPhone|iPad/.test(navigator.userAgent);
let loading = $state(true);
let devices: Device[] = $state([]);
let orderBy: 'name' | 'ip' = $state('name');
let orderExpanded = $state(false);
let orderByGroups = $state(true);
let searchQuery = $state('');
let searchInput: HTMLInputElement | undefined = $state();
let modalShutdownGroup: HTMLDialogElement | undefined = $state();
let pendingShutdownGroup: Group | null = $state(null);
let filteredDevices: Device[] = $derived([]);
let devicesWithoutGroups: Device[] = $derived([]);
let devicesWithGroup: {
group: Group | null;
devices: Device[];
}[] = $derived([]);
const isMac = browser && /Mac|iPhone|iPad/.test(navigator.userAgent);
const gridClass = 'grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4 gap-4';
if (browser) {
@@ -35,35 +45,47 @@
orderByGroups = localStorage.getItem('orderByGroups') !== 'false';
}
$: if (browser) {
localStorage.setItem('orderBy', orderBy);
}
$: if (browser) {
localStorage.setItem('orderByGroups', String(orderByGroups));
}
const filteredDevices = () =>
devices.filter(
$effect(() => {
if (browser) {
localStorage.setItem('orderBy', orderBy);
}
});
$effect(() => {
if (browser) {
localStorage.setItem('orderByGroups', String(orderByGroups));
}
});
$effect(() => {
filteredDevices = devices.filter(
(dev) =>
dev.ip.includes(searchQuery.toLowerCase()) ||
dev.name.toLowerCase().includes(searchQuery.toLowerCase()) ||
dev.mac.toLowerCase().includes(searchQuery.toLowerCase()) ||
dev.description.toLowerCase().includes(searchQuery.toLowerCase())
);
const devicesWithoutGroups = () => filteredDevices().filter((dev) => dev.groups.length === 0);
const devicesWithGroup = () => {
return filteredDevices().reduce(
(groups, dev) => {
dev.expand?.groups?.forEach((group: Group) => {
groups[group.id] = [...(groups[group.id] || []), dev];
});
return groups;
},
{} as Record<string, Device[]>
);
};
});
$effect(() => {
devicesWithoutGroups = filteredDevices
.filter((dev) => dev.groups.length === 0)
.sort((a, b) => a[orderBy].localeCompare(b[orderBy], $localeStore, { numeric: true }));
});
$effect(() => {
const groups: Record<string, { group: Group; devices: Device[] }> = {};
filteredDevices.forEach((dev) => {
if (dev.expand?.groups?.length) {
for (const g of dev.expand.groups) {
if (!groups[g.id]) groups[g.id] = { group: g, devices: [] };
groups[g.id].devices.push(dev);
}
}
});
devicesWithGroup = Object.values(groups).map((g) => ({
group: g.group,
devices: g.devices.sort((a, b) =>
a[orderBy].localeCompare(b[orderBy], $localeStore, { numeric: true })
)
}));
});
function getAllDevices() {
$pocketbase
@@ -77,7 +99,7 @@
function handleShortcut(event: KeyboardEvent) {
if ((event.ctrlKey || event.metaKey) && event.key === 'k') {
event.preventDefault();
searchInput.focus();
searchInput?.focus();
}
}
@@ -91,6 +113,23 @@
});
}
function askShutdownGroupConfirmation(group: Group) {
pendingShutdownGroup = group;
modalShutdownGroup?.showModal();
}
function executeShutdownGroup() {
if (pendingShutdownGroup) {
fetch(`${backendUrl}api/upsnap/shutdowngroup/${pendingShutdownGroup.id}`, {
headers: {
Authorization: $pocketbase.authStore.token
}
}).catch((err) => {
toast.error(err.message);
});
}
}
onMount(() => {
orderBy = (localStorage.getItem('orderBy') as 'name' | 'ip') || 'name';
orderByGroups = localStorage.getItem('orderByGroups') !== 'false';
@@ -101,7 +140,7 @@
});
</script>
<svelte:document on:keydown={handleShortcut} />
<svelte:document onkeydown={handleShortcut} />
{#if loading}
<PageLoading />
@@ -130,12 +169,12 @@
</label>
<div class="join ms-auto">
{#if orderExpanded}
<button class="btn join-item !outline-0" on:click={() => (orderByGroups = !orderByGroups)}>
<button class="btn join-item outline-0!" onclick={() => (orderByGroups = !orderByGroups)}>
{m.home_order_groups()}
<input type="checkbox" class="checkbox" checked={orderByGroups} />
</button>
<input
class="btn join-item !outline-0"
class="btn join-item outline-0!"
type="radio"
name="order"
aria-label={m.home_order_name()}
@@ -143,7 +182,7 @@
value="name"
/>
<input
class="btn join-item !outline-0"
class="btn join-item outline-0!"
type="radio"
name="order"
aria-label={m.home_order_ip()}
@@ -154,43 +193,51 @@
<button
class="btn join-item tooltip {orderExpanded ? '' : 'rounded-field'}"
data-tip={m.home_order_tooltip()}
on:click={() => (orderExpanded = !orderExpanded)}
onclick={() => (orderExpanded = !orderExpanded)}
>
<Fa icon={orderExpanded ? faChevronCircleRight : faChevronCircleLeft} size="lg" />
</button>
</div>
</div>
{#if orderByGroups}
<div class="space-y-6">
{#if devicesWithoutGroups().length > 0}
{#if devicesWithoutGroups.length > 0}
<div class={gridClass}>
{#each devicesWithoutGroups().sort( (a, b) => a[orderBy].localeCompare( b[orderBy], $localeStore, { numeric: true } ) ) as device (device.id)}
<DeviceCard {device} />
{#each devicesWithoutGroups as device, i (device.id)}
<DeviceCard bind:device={devicesWithoutGroups[i]} />
{/each}
</div>
{/if}
{#each Object.entries(devicesWithGroup()).sort( ([a], [b]) => a.localeCompare( b, $localeStore, { numeric: true } ) ) as [group, groupDevices], i (i)}
{#each devicesWithGroup.sort( (a, b) => (a.group?.name ?? '').localeCompare( b.group?.name ?? '', $localeStore, { numeric: true } ) ) as { group, devices: groupDevices } (group?.id)}
<div>
<h1 class="mb-3 text-2xl font-bold">
{groupDevices[0].expand.groups.find((grp) => grp.id === group)?.name ||
'Unknown group name'}
<button class="btn btn-sm btn-success btn-soft" on:click={() => wakeGroup(group)}
<h1 class="mb-3 flex flex-wrap items-center gap-3 text-2xl font-bold">
<span>{group?.name ?? 'Unknown group name'}</span>
<button
class="btn btn-sm btn-success btn-soft"
onclick={() => wakeGroup(group?.id ?? '')}
><Fa icon={faPowerOff} /> {m.home_wake_group()}</button
>
<button
class="btn btn-sm btn-error btn-soft"
onclick={() => group && askShutdownGroupConfirmation(group)}
><Fa icon={faPowerOff} /> {m.home_shutdown_group()}</button
>
</h1>
<div class={gridClass}>
{#each groupDevices.sort( (a, b) => a[orderBy].localeCompare( b[orderBy], $localeStore, { numeric: true } ) ) as device (device.id)}
<DeviceCard {device} />
{#each groupDevices as device (device.id)}
<DeviceCard bind:device={devices[devices.findIndex((d) => d.id === device.id)]} />
{/each}
</div>
</div>
{/each}
</div>
{:else}
{@const sorted = $state
.snapshot(filteredDevices)
.sort((a, b) => a[orderBy].localeCompare(b[orderBy], $localeStore, { numeric: true }))}
<div class={gridClass}>
{#each filteredDevices().sort( (a, b) => a[orderBy].localeCompare( b[orderBy], $localeStore, { numeric: true } ) ) as device (device.id)}
<DeviceCard {device} />
{#each sorted as device (device.id)}
<DeviceCard bind:device={devices[devices.findIndex((d) => d.id === device.id)]} />
{/each}
</div>
{/if}
@@ -203,7 +250,9 @@
<h3 class="font-bold">{m.home_no_devices()}</h3>
<div class="text-xs">{m.home_add_first_device()}</div>
</div>
<a href="/device/new" class="btn btn-sm"><Fa icon={faPlus} />{m.home_add_first_device()}</a>
<a href={resolve('/device/new')} class="btn btn-sm"
><Fa icon={faPlus} />{m.home_add_first_device()}</a
>
{:else}
<span>
{m.home_grant_permissions()}
@@ -212,3 +261,20 @@
</div>
</div>
{/if}
<dialog class="modal" bind:this={modalShutdownGroup}>
<div class="modal-box">
<h3 class="text-lg font-bold">
{m.home_modal_confirm_shutdown_group_title({ group: pendingShutdownGroup?.name ?? '' })}
</h3>
<p class="py-4">
{m.home_modal_confirm_shutdown_group_desc({ group: pendingShutdownGroup?.name ?? '' })}
</p>
<div class="modal-action">
<form method="dialog">
<button class="btn">{m.buttons_cancel()}</button>
<button class="btn btn-error" onclick={executeShutdownGroup}>{m.buttons_confirm()}</button>
</form>
</div>
</div>
</dialog>
+47 -22
View File
@@ -1,5 +1,6 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { asset, resolve } from '$app/paths';
import { m } from '$lib/paraglide/messages';
import type { Locale } from '$lib/paraglide/runtime';
import { getLocale, locales, setLocale } from '$lib/paraglide/runtime';
@@ -10,44 +11,58 @@
import Fa from 'svelte-fa';
import toast from 'svelte-french-toast';
let newAvatar: number;
let selectedLang: Locale;
let newAvatar: number | undefined = $state();
let selectedLang: Locale = $state('en-US' as Locale);
// locales
const languageEmojis = {
'ar-SA': '🇸🇦',
'bg-BG': '🇧🇬',
'cs-CZ': '🇨🇿',
'de-DE': '🇩🇪',
'el-GR': '🇬🇷',
'en-US': '🇺🇸',
'es-ES': '🇪🇸',
'fr-FR': '🇫🇷',
'hi-IN': '🇮🇳',
'id-ID': '🇮🇩',
'it-IT': '🇮🇹',
'ja-JP': '🇯🇵',
'ko-KR': '🇰🇷',
'nl-NL': '🇳🇱',
'nb-NO': '🇳🇴',
'nl-NL': '🇳🇱',
'pl-PL': '🇵🇱',
'pt-BR': '🇧🇷',
'pt-PT': '🇵🇹',
'zh-TW': '🇹🇼',
'zh-CN': '🇨🇳'
'ru-RU': '🇷🇺',
'uk-UA': '🇺🇦',
'vi-VN': '🇻🇳',
'zh-CN': '🇨🇳',
'zh-TW': '🇹🇼'
};
// password change
let newPassword = {
let newPassword = $state({
old: '',
password: '',
confirm: ''
};
$: adminBody = JSON.stringify({
password: newPassword.password,
passwordConfirm: newPassword.confirm
});
$: userBody = JSON.stringify({
oldPassword: newPassword.old,
password: newPassword.password,
passwordConfirm: newPassword.confirm
});
let adminBody: string;
let userBody: string;
$effect(() => {
adminBody = JSON.stringify({
password: newPassword.password,
passwordConfirm: newPassword.confirm
});
});
$effect(() => {
userBody = JSON.stringify({
oldPassword: newPassword.old,
password: newPassword.password,
passwordConfirm: newPassword.confirm
});
});
onMount(() => {
selectedLang = getLocale();
});
@@ -102,7 +117,7 @@
if (data.ok) {
toast.success(m.toasts_password_changed());
$pocketbase.authStore.clear();
goto('/login');
goto(resolve('/login'));
} else {
const j = await data.json();
if (j?.data?.password?.message) {
@@ -135,7 +150,7 @@
<div class="w-16 rounded-full">
{#if $pocketbase.authStore.record?.id}
<img
src="/avatars/avatar{newAvatar ?? $pocketbase.authStore.record?.avatar}.svg"
src={asset(`/avatars/avatar${newAvatar ?? $pocketbase.authStore.record?.avatar}.svg`)}
alt="Avatar {newAvatar ?? $pocketbase.authStore.record?.avatar}"
/>
{/if}
@@ -154,7 +169,12 @@
</h3>
</div>
</div>
<form on:submit|preventDefault={saveUser}>
<form
onsubmit={(e) => {
e.preventDefault();
saveUser();
}}
>
<h2 class="card-title mt-4 mb-2">{m.account_avatar_title()}</h2>
<div class="flex flex-row flex-wrap gap-4">
{#each [...Array(10).keys()] as i (i)}
@@ -173,11 +193,11 @@
class:ring-offset-2={newAvatar !== undefined
? i === newAvatar
: i === $pocketbase.authStore.record?.avatar}
on:click={() => (newAvatar = i)}
onclick={() => (newAvatar = i)}
role="none"
>
{#if $pocketbase.authStore.record?.id}
<img src="/avatars/avatar{i}.svg" alt="{m.account_avatar_title()} {i}" />
<img src={asset(`/avatars/avatar${i}.svg`)} alt="{m.account_avatar_title()} {i}" />
{/if}
</div>
</div>
@@ -204,7 +224,12 @@
<div class="card-body">
<h2 class="card-title">{m.account_change_password_title()}</h2>
<p>{m.account_change_password_body()}</p>
<form on:submit|preventDefault={changePassword}>
<form
onsubmit={(e) => {
e.preventDefault();
changePassword();
}}
>
<div class="w-full max-w-xs">
{#if !$pocketbase.authStore.isSuperuser}
<fieldset class="fieldset">
+59
View File
@@ -0,0 +1,59 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { resolve } from '$app/paths';
import { page } from '$app/state';
import DeviceForm from '$lib/components/DeviceForm.svelte';
import PageLoading from '$lib/components/PageLoading.svelte';
import { m } from '$lib/paraglide/messages';
import { permission, pocketbase } from '$lib/stores/pocketbase';
import type { Device, Group, Port } from '$lib/types/device';
import { onMount } from 'svelte';
import toast from 'svelte-french-toast';
let device: Device | null = $state(null);
let error: string | null = $state(null);
$effect(() => {
if (Object.hasOwn($permission, 'update')) {
const id = page.url.searchParams.get('id');
if (!$pocketbase.authStore.isSuperuser && !$permission.update.includes(id || '')) {
toast(m.toasts_no_permission({ url: page.url.pathname }), {
icon: '⛔'
});
goto(resolve('/'));
}
}
});
onMount(async () => {
try {
const id = page.url.searchParams.get('id');
if (!id) throw new Error('No device ID provided');
const resp = await $pocketbase.collection('devices').getOne(id, { expand: 'ports,groups' });
const dev = resp as Device;
if (!dev.expand) {
dev.expand = {} as { ports: Port[]; groups: Group[] };
}
if (!dev.expand.ports) {
dev.expand.ports = [] as Port[];
}
device = dev;
} catch (err) {
error = String(err);
}
});
</script>
{#if error}
<div class="container mx-auto max-w-lg">
{error}
</div>
{:else if device}
<h1 class="mb-8 text-3xl font-bold sm:break-all">{device.name}</h1>
<DeviceForm {device} />
{:else}
<PageLoading />
{/if}
@@ -1,50 +0,0 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { page } from '$app/state';
import DeviceForm from '$lib/components/DeviceForm.svelte';
import PageLoading from '$lib/components/PageLoading.svelte';
import { m } from '$lib/paraglide/messages';
import { permission, pocketbase } from '$lib/stores/pocketbase';
import type { Device, Group, Port } from '$lib/types/device';
import toast from 'svelte-french-toast';
$: if (Object.hasOwn($permission, 'update')) {
if (!$pocketbase.authStore.isSuperuser && !$permission.update.includes(page.params.id)) {
toast(m.toasts_no_permission({ url: page.url.pathname }), {
icon: '⛔'
});
goto('/');
}
}
async function getDevice(): Promise<Device> {
const resp = await $pocketbase
.collection('devices')
.getOne(page.params.id, { expand: 'ports,groups' });
let device = resp as Device;
if (!device.expand)
device.expand = {} as {
ports: Port[];
groups: Group[];
};
if (!device.expand.ports) {
device.expand.ports = [] as Port[];
}
return resp as Device;
}
</script>
{#await getDevice()}
<PageLoading />
{:then device}
<h1 class="mb-8 text-3xl font-bold sm:break-all">{device.name}</h1>
<DeviceForm {device} />
{:catch err}
<div class="container mx-auto max-w-lg">
{err}
</div>
{/await}
+16 -13
View File
@@ -1,6 +1,7 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { page } from '$app/stores';
import { resolve } from '$app/paths';
import { page } from '$app/state';
import DeviceForm from '$lib/components/DeviceForm.svelte';
import NetworkScan from '$lib/components/NetworkScan.svelte';
import { m } from '$lib/paraglide/messages';
@@ -43,31 +44,33 @@
sol_password: '',
sol_port: 0
} as Device;
let activeTab = $state('manual');
$: if (Object.hasOwn($permission, 'create')) {
if (!$pocketbase.authStore.isSuperuser && !$permission.create) {
toast(m.toasts_no_permission({ url: $page.url.pathname }), {
icon: '⛔'
});
goto('/');
$effect(() => {
if (Object.hasOwn($permission, 'create')) {
if (!$pocketbase.authStore.isSuperuser && !$permission.create) {
toast(m.toasts_no_permission({ url: page.url.pathname }), {
icon: '⛔'
});
goto(resolve('/'));
}
}
}
});
let tabs = [
{
name: 'manual',
ll_name: m['device_tabs.0'](),
ll_name: m['device_tabs_0'](),
icon: faWrench,
show: true
},
{
name: 'scan',
ll_name: m['device_tabs.1'](),
ll_name: m['device_tabs_1'](),
icon: faBinoculars,
show: $pocketbase.authStore.isSuperuser
show: true
}
];
let activeTab = 'manual';
</script>
<h1 class="mb-8 text-3xl font-bold">{m.device_page_title()}</h1>
@@ -76,7 +79,7 @@
{#each tabs as tab (tab)}
{#if tab.show}
<li>
<button class:menu-active={activeTab === tab.name} on:click={() => (activeTab = tab.name)}
<button class:menu-active={activeTab === tab.name} onclick={() => (activeTab = tab.name)}
>{tab.ll_name} <Fa icon={tab.icon} class="ms-2" /></button
>
</li>
+16 -9
View File
@@ -1,5 +1,6 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { asset, resolve } from '$app/paths';
import { toggleVisibility } from '$lib/helpers/forms';
import { m } from '$lib/paraglide/messages';
import { backendUrl, pocketbase } from '$lib/stores/pocketbase';
@@ -18,7 +19,7 @@
onMount(() => {
if ($pocketbase.authStore.isValid) {
goto('/');
goto(resolve('/'));
}
});
@@ -27,14 +28,14 @@
.collection('_superusers')
.authWithPassword(form.email, form.password)
.then(() => {
goto('/');
goto(resolve('/'));
})
.catch(() => {
$pocketbase
.collection('users')
.authWithPassword(form.email, form.password)
.then(() => {
goto('/');
goto(resolve('/'));
})
.catch((err) => {
toast.error(err.message);
@@ -47,7 +48,7 @@
.collection('users')
.authWithOAuth2({ provider: provider.name })
.then(() => {
goto('/');
goto(resolve('/'));
})
.catch((err) => {
console.log(err);
@@ -67,13 +68,19 @@
<img
src={$settingsPub?.id && $settingsPub?.favicon
? `${backendUrl}api/files/settings_public/${$settingsPub?.id}/${$settingsPub?.favicon}`
: '/gopher.svg'}
: asset('/gopher.svg')}
alt={$settingsPub?.website_title ? $settingsPub?.website_title : 'Gopher'}
/>
</figure>
<h2 class="card-title">{m.login_welcome()}</h2>
</div>
<form class="w-full" on:submit|preventDefault={tryAdminThenUser}>
<form
class="w-full"
onsubmit={(e) => {
e.preventDefault();
tryAdminThenUser();
}}
>
<label class="label" for="email">
<span>{m.login_email_label()}</span>
</label>
@@ -85,8 +92,8 @@
<div
class="absolute top-1/2 right-4 -translate-y-1/2 cursor-pointer"
role="none"
on:click={() => toggleVisibility(inputPassword)}
on:keydown={() => toggleVisibility(inputPassword)}
onclick={() => toggleVisibility(inputPassword)}
onkeydown={() => toggleVisibility(inputPassword)}
>
<Fa icon={faEye} />
</div>
@@ -118,7 +125,7 @@
{#if authMethods.oauth2.enabled && authMethods.oauth2.providers.length > 0}
{#each authMethods.oauth2.providers as provider (provider)}
<li>
<button type="button" on:click={() => loginWithProvider(provider)}
<button type="button" onclick={() => loginWithProvider(provider)}
>{provider.displayName}</button
>
</li>
+492
View File
@@ -0,0 +1,492 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { resolve } from '$app/paths';
import { page } from '$app/state';
import { m } from '$lib/paraglide/messages';
import { pocketbase } from '$lib/stores/pocketbase';
import {
faArrowDown,
faArrowUp,
faArrowsRotate,
faChevronDown,
faChevronLeft,
faChevronRight,
faChevronUp,
faFilter
} from '@fortawesome/free-solid-svg-icons';
import type { LogModel } from 'pocketbase';
import { onMount } from 'svelte';
import Fa from 'svelte-fa';
import toast from 'svelte-french-toast';
let logs = $state.raw<LogModel[]>([]);
let currentPage = $state(1);
let perPage = $state(20);
let totalItems = $state(0);
let totalPages = $state(0);
let selectedLevel = $state('');
let textSearch = $state('');
let onlyUpSnapLogs = $state(true);
let sort = $state('-created');
let intervalSeconds = $state(5);
let loading = $state(true);
let refreshing = $state(false);
let reloadPending = false;
let error = $state('');
let lastUpdated = $state<Date>();
let pollTimer: ReturnType<typeof setInterval> | undefined;
let searchTimer: ReturnType<typeof setTimeout> | undefined;
let detailsDialog: HTMLDialogElement;
let selectedLog = $state<LogModel>();
let mobileFiltersOpen = $state(false);
const levels = [
{ value: '', label: () => m.logs_level_all() },
{ value: '8', label: () => 'ERROR' },
{ value: '4', label: () => 'WARN' },
{ value: '0', label: () => 'INFO' },
{ value: '-4', label: () => 'DEBUG' }
];
function levelMeta(level: string) {
switch (Number(level)) {
case 8:
return { label: 'ERROR', dotClass: 'bg-error' };
case 4:
return { label: 'WARN', dotClass: 'bg-warning' };
case 0:
return { label: 'INFO', dotClass: 'bg-success' };
case -4:
return { label: 'DEBUG', dotClass: 'bg-info' };
default:
return { label: 'UNKNOWN', dotClass: 'bg-base-content/60' };
}
}
function hasData(entry: LogModel) {
return entry.data && Object.keys(entry.data).length > 0;
}
function showDetails(entry: LogModel) {
selectedLog = entry;
detailsDialog.showModal();
}
function dataEntries(entry: LogModel) {
return Object.entries(entry.data ?? {});
}
function dataValue(value: unknown) {
if (value === '') return 'N/A';
if (typeof value === 'object') return JSON.stringify(value);
return String(value);
}
function updateSearch() {
if (searchTimer) clearTimeout(searchTimer);
searchTimer = setTimeout(() => updateQuery(), 250);
}
function toggleSort(field: 'created' | 'message') {
sort = sort === field ? `-${field}` : field;
void loadLogs();
}
async function loadLogs(initial = false, notifyError = false) {
if (refreshing) {
reloadPending = true;
return;
}
refreshing = true;
if (initial) loading = true;
error = '';
try {
const filters = [];
if (selectedLevel) filters.push(`level = ${selectedLevel}`);
if (onlyUpSnapLogs) filters.push('data.upsnap = true');
if (textSearch.trim()) {
filters.push(
$pocketbase.filter('(level ?~ {:search} || message ?~ {:search} || data ?~ {:search})', {
search: textSearch.trim()
})
);
}
const result = await $pocketbase.logs.getList(currentPage, perPage, {
sort,
filter: filters.join(' && ')
});
if (result.totalPages > 0 && currentPage > result.totalPages) {
currentPage = result.totalPages;
reloadPending = true;
return;
}
if (result.totalPages === 0) currentPage = 1;
logs = result.items;
totalItems = result.totalItems;
totalPages = result.totalPages;
lastUpdated = new Date();
} catch (err) {
const message = err instanceof Error ? err.message : String(err);
error = m.logs_refresh_failed({ message });
if (notifyError) toast.error(error);
} finally {
loading = false;
refreshing = false;
if (reloadPending) {
reloadPending = false;
void loadLogs();
}
}
}
function restartPolling() {
if (pollTimer) clearInterval(pollTimer);
pollTimer = undefined;
if (intervalSeconds > 0) {
pollTimer = setInterval(() => void loadLogs(), intervalSeconds * 1000);
}
}
function updateQuery() {
currentPage = 1;
void loadLogs();
}
function changePage(nextPage: number) {
currentPage = nextPage;
void loadLogs();
}
onMount(() => {
if (!$pocketbase.authStore.isSuperuser) {
toast(m.toasts_no_permission({ url: page.url.pathname }), { icon: '⛔' });
goto(resolve('/'));
return;
}
void loadLogs(true);
restartPolling();
return () => {
if (pollTimer) clearInterval(pollTimer);
if (searchTimer) clearTimeout(searchTimer);
};
});
</script>
<main class="container mx-auto flex flex-col gap-4 p-4">
<header class="flex flex-col justify-between gap-3 md:flex-row md:items-end">
<div>
<h1 class="text-2xl font-bold">{m.logs_page_title()}</h1>
{#if lastUpdated}
<p class="text-base-content/60 text-sm">
{m.logs_refreshed_at({ time: lastUpdated.toLocaleTimeString() })}
</p>
{/if}
</div>
<div class="join w-full md:w-auto">
<button
class="btn btn-sm join-item flex-1 md:flex-none"
onclick={() => loadLogs(false, true)}
disabled={refreshing}
>
<Fa icon={faArrowsRotate} class={refreshing ? 'animate-spin' : ''} />
{m.logs_refresh()}
</button>
<select
class="select select-sm join-item"
aria-label={m.logs_refresh()}
bind:value={intervalSeconds}
onchange={restartPolling}
>
<option value={0}>{m.logs_off()}</option>
{#each [2, 5, 10, 30, 60] as seconds (seconds)}
<option value={seconds}>{m.logs_seconds({ seconds })}</option>
{/each}
</select>
</div>
</header>
<section class="xl:hidden">
<button
class="btn w-full justify-start gap-3"
aria-expanded={mobileFiltersOpen}
onclick={() => (mobileFiltersOpen = !mobileFiltersOpen)}
>
<Fa icon={faFilter} />
<span class="text-base-content/60 flex-1 truncate text-left font-normal">
{m.logs_filters()}
</span>
<Fa icon={mobileFiltersOpen ? faChevronUp : faChevronDown} />
</button>
{#if mobileFiltersOpen}
<div class="card card-border bg-base-100 mt-2">
<div class="card-body grid grid-cols-2 gap-3 p-3">
<fieldset class="fieldset gap-1">
<legend class="fieldset-legend">{m.logs_column_level()}</legend>
<select
class="select select-sm w-full"
bind:value={selectedLevel}
onchange={updateQuery}
>
{#each levels as level (level.value)}
<option value={level.value}>{level.label()}</option>
{/each}
</select>
</fieldset>
<fieldset class="fieldset gap-1">
<legend class="fieldset-legend">{m.logs_upsnap_logs()}</legend>
<label class="label gap-2 py-1">
<input
type="checkbox"
class="toggle toggle-sm"
bind:checked={onlyUpSnapLogs}
onchange={updateQuery}
/>
<span class="text-sm">{m.logs_only()}</span>
</label>
</fieldset>
<fieldset class="fieldset gap-1">
<legend class="fieldset-legend">{m.logs_page_size()}</legend>
<select class="select select-sm w-full" bind:value={perPage} onchange={updateQuery}>
<option value={10}>10</option>
<option value={20}>20</option>
<option value={40}>40</option>
<option value={80}>80</option>
</select>
</fieldset>
</div>
</div>
{/if}
<input
class="input mt-3 w-full"
placeholder={m.logs_search_placeholder()}
aria-label={m.logs_column_message()}
bind:value={textSearch}
oninput={updateSearch}
/>
</section>
<section class="card card-border bg-base-100 hidden xl:block">
<div class="flex items-end gap-3 p-4">
<fieldset class="fieldset shrink-0">
<legend class="fieldset-legend">{m.logs_column_level()}</legend>
<select class="select w-auto" bind:value={selectedLevel} onchange={updateQuery}>
{#each levels as level (level.value)}
<option value={level.value}>{level.label()}</option>
{/each}
</select>
</fieldset>
<fieldset class="fieldset flex-1">
<legend class="fieldset-legend">{m.logs_column_message()}</legend>
<input
class="input w-full"
placeholder={m.logs_search_placeholder()}
bind:value={textSearch}
oninput={updateSearch}
/>
</fieldset>
<fieldset class="fieldset flex! shrink-0 flex-col self-stretch">
<legend class="fieldset-legend">{m.logs_upsnap_logs()}</legend>
<label class="label flex-1 gap-3">
<input
type="checkbox"
class="toggle"
bind:checked={onlyUpSnapLogs}
onchange={updateQuery}
/>
<span>{m.logs_only()}</span>
</label>
</fieldset>
<fieldset class="fieldset shrink-0">
<legend class="fieldset-legend">{m.logs_page_size()}</legend>
<select class="select w-auto" bind:value={perPage} onchange={updateQuery}>
<option value={10}>10</option>
<option value={20}>20</option>
<option value={40}>40</option>
<option value={80}>80</option>
</select>
</fieldset>
</div>
</section>
{#if error}
<div role="alert" class="alert alert-error">
<span>{error}</span>
</div>
{/if}
<section class="card card-border bg-base-100 overflow-hidden">
{#if loading}
<div class="flex min-h-64 items-center justify-center">
<span class="loading loading-spinner loading-lg"></span>
</div>
{:else if logs.length === 0}
<div class="flex min-h-64 items-center justify-center p-6 text-center">
<p class="text-base-content/60">{m.logs_empty()}</p>
</div>
{:else}
<div class="hidden md:block">
<div class="border-base-300 flex border-b text-sm font-bold">
<div class="w-32 shrink-0 p-3">{m.logs_column_level()}</div>
<button
class="hover:bg-base-300 flex flex-1 items-center gap-1 p-3 text-left"
onclick={() => toggleSort('message')}
>
{m.logs_column_message()}
{#if sort === 'message'}<Fa icon={faArrowUp} />{:else if sort === '-message'}<Fa
icon={faArrowDown}
/>{/if}
</button>
<button
class="hover:bg-base-300 flex w-40 shrink-0 items-center gap-1 p-3 text-left"
onclick={() => toggleSort('created')}
>
{m.logs_column_time()}
{#if sort === 'created'}<Fa icon={faArrowUp} />{:else if sort === '-created'}<Fa
icon={faArrowDown}
/>{/if}
</button>
</div>
<div class="divide-base-300 divide-y">
{#each logs as entry (entry.id)}
{@const meta = levelMeta(entry.level)}
<button
class="hover:bg-base-200 flex w-full cursor-pointer items-start text-left"
onclick={() => showDetails(entry)}
>
<div class="w-32 shrink-0 p-3">
<span class="badge bg-base-300 badge-sm gap-1.5 border-0 font-semibold"
><span class={`size-2 rounded-full ${meta.dotClass}`}></span>{meta.label}</span
>
</div>
<div class="flex-1 p-3">
<p class="text-xs wrap-break-word whitespace-pre-wrap">{entry.message}</p>
{#if hasData(entry)}
<div class="mt-1 flex flex-wrap gap-1">
{#each dataEntries(entry) as [key, value] (key)}
<span
class="badge bg-base-300 badge-ghost badge-xs h-auto min-h-4 gap-1 py-0.5 font-normal whitespace-normal"
>
<span class="shrink-0">{key}:</span>
<span>{dataValue(value)}</span>
</span>
{/each}
</div>
{/if}
</div>
<time class="w-40 shrink-0 p-3 text-xs whitespace-nowrap"
>{new Date(entry.created).toLocaleString()}</time
>
</button>
{/each}
</div>
</div>
<ul class="divide-base-300 divide-y md:hidden">
{#each logs as entry (entry.id)}
{@const meta = levelMeta(entry.level)}
<li>
<button
class="hover:bg-base-200 flex w-full cursor-pointer flex-col gap-2 p-4 text-left"
onclick={() => showDetails(entry)}
>
<div class="flex items-center justify-between gap-3">
<span class="badge bg-base-300 badge-sm gap-1.5 border-0 font-semibold"
><span class={`size-2 rounded-full ${meta.dotClass}`}></span>{meta.label}</span
>
<time class="text-base-content/60 text-xs"
>{new Date(entry.created).toLocaleString()}</time
>
</div>
<p class="text-xs wrap-break-word whitespace-pre-wrap">{entry.message}</p>
{#if hasData(entry)}
<div class="flex flex-wrap gap-1">
{#each dataEntries(entry) as [key, value] (key)}
<span
class="badge bg-base-300 badge-ghost badge-xs h-auto min-h-4 gap-1 py-0.5 font-normal whitespace-normal"
>
<span class="shrink-0">{key}:</span>
<span>{dataValue(value)}</span>
</span>
{/each}
</div>
{/if}
</button>
</li>
{/each}
</ul>
{/if}
{#if totalPages > 1}
<footer class="border-base-300 flex items-center justify-between border-t p-3">
<span class="text-base-content/60 text-sm">{currentPage} / {totalPages} ({totalItems})</span
>
<div class="join">
<button
class="btn btn-sm join-item"
onclick={() => changePage(currentPage - 1)}
disabled={currentPage <= 1 || refreshing}
aria-label={m.logs_previous()}
>
<Fa icon={faChevronLeft} />
</button>
<button
class="btn btn-sm join-item"
onclick={() => changePage(currentPage + 1)}
disabled={currentPage >= totalPages || refreshing}
aria-label={m.logs_next()}
>
<Fa icon={faChevronRight} />
</button>
</div>
</footer>
{/if}
</section>
</main>
<dialog class="modal" bind:this={detailsDialog}>
<div class="modal-box max-w-3xl">
{#if selectedLog}
{@const meta = levelMeta(selectedLog.level)}
<h2 class="text-lg font-bold">{m.logs_column_data()}</h2>
<dl class="mt-4 grid items-center gap-x-6 gap-y-2 text-xs sm:grid-cols-[auto_1fr]">
<dt class="text-base-content/60">ID</dt>
<dd class="break-all">{selectedLog.id}</dd>
<dt class="text-base-content/60">{m.logs_column_level()}</dt>
<dd>
<span class="badge bg-base-300 badge-sm gap-1.5 border-0 font-semibold"
><span class={`size-2 rounded-full ${meta.dotClass}`}></span>{meta.label}</span
>
</dd>
<dt class="text-base-content/60">{m.logs_column_message()}</dt>
<dd class="wrap-break-word whitespace-pre-wrap">{selectedLog.message}</dd>
<dt class="text-base-content/60">{m.logs_column_time()}</dt>
<dd>{new Date(selectedLog.created).toLocaleString()}</dd>
</dl>
<pre class="bg-base-200 rounded-box mt-4 max-h-96 overflow-auto p-4 text-xs">{JSON.stringify(
selectedLog,
null,
2
)}</pre>
{/if}
<div class="modal-action">
<form method="dialog">
<button class="btn">{m.buttons_cancel()}</button>
</form>
</div>
</div>
<form method="dialog" class="modal-backdrop"><button>close</button></form>
</dialog>
+54 -16
View File
@@ -1,5 +1,6 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { asset, resolve } from '$app/paths';
import { page } from '$app/state';
import { PUBLIC_VERSION } from '$env/static/public';
import PageLoading from '$lib/components/PageLoading.svelte';
@@ -9,22 +10,22 @@
import { settingsPriv, settingsPub } from '$lib/stores/settings';
import type { SettingsPrivate, SettingsPublic } from '$lib/types/settings';
import { faSave } from '@fortawesome/free-solid-svg-icons';
import cronParser from 'cron-parser';
import { CronExpressionParser } from 'cron-parser';
import { onMount } from 'svelte';
import Fa from 'svelte-fa';
import toast from 'svelte-french-toast';
let settingsPubClone: SettingsPublic | undefined;
let settingsPrivClone: SettingsPrivate | undefined;
let faviconPreview: HTMLImageElement;
let faviconInputElement: HTMLInputElement;
let settingsPubClone: SettingsPublic | undefined = $state();
let settingsPrivClone: SettingsPrivate | undefined = $state();
let faviconPreview: HTMLImageElement | undefined = $state();
let faviconInputElement: HTMLInputElement | undefined = $state();
onMount(() => {
if (!$pocketbase.authStore.isSuperuser) {
toast(m.toasts_no_permission({ url: page.url.pathname }), {
icon: '⛔'
});
goto('/');
goto(resolve('/'));
return;
}
@@ -46,10 +47,9 @@
});
function resetFavicon() {
if (settingsPubClone === undefined) return;
settingsPubClone.favicon = '';
faviconInputElement.value = '';
faviconPreview.src = '/gopher.svg';
if (settingsPubClone) settingsPubClone.favicon = '';
if (faviconInputElement) faviconInputElement.value = '';
if (faviconPreview) faviconPreview.src = '/gopher.svg';
}
async function save() {
@@ -61,7 +61,7 @@
return;
try {
cronParser.parse(settingsPrivClone.interval);
CronExpressionParser.parse(settingsPrivClone.interval);
} catch {
toast.error(m.settings_invalid_cron());
throw new Error(`failed to parse cron: ` + settingsPrivClone.interval);
@@ -72,6 +72,14 @@
throw new Error('ping_interval not valid');
}
if (
settingsPrivClone.track_ip_interval !== '' &&
!(await parseCron(settingsPrivClone.track_ip_interval))
) {
toast.error(m.settings_invalid_cron());
throw new Error('track_ip_interval not valid');
}
await $pocketbase
.collection('settings_public')
.update(settingsPubClone.id, settingsPubClone)
@@ -95,7 +103,7 @@
.then((res) => {
toast.success(m.toasts_settings_saved());
settingsPriv.set(res as SettingsPrivate);
goto('/');
goto(resolve('/'));
})
.catch((err) => {
toast.error(err.message);
@@ -107,7 +115,13 @@
<PageLoading />
{:else}
<h1 class="mb-8 text-3xl font-bold">{m.settings_page_title()}</h1>
<form on:submit|preventDefault={save}>
<form
onsubmit={(e) => {
e.preventDefault();
save();
}}
class="flex w-full flex-col"
>
<div class="card bg-base-200 mt-6 w-full shadow-sm">
<div class="card-body">
<h2 class="card-title">{m.settings_ping_interval_title()}</h2>
@@ -147,6 +161,29 @@
| minute (0–59)
second (0–59, optional)
</code></pre>
<h2 class="card-title mt-2">{m.settings_track_ip_title()}</h2>
<p class="mt-2">
{m.settings_track_ip_desc()}
</p>
<div class="mt-2 w-full">
<input
type="text"
placeholder="e.g. '0 */30 * * * *'"
class="input"
bind:value={settingsPrivClone.track_ip_interval}
/>
</div>
{#if settingsPrivClone.track_ip_interval}
<p class="fieldset-label">
{#await parseCron(settingsPrivClone.track_ip_interval)}
<span class="loading loading-spinner loading-xs"></span>
{:then valid}
{valid
? '✅ ' + nextCronDate(settingsPrivClone.track_ip_interval)
: m.settings_invalid_cron()}
{/await}
</p>
{/if}
<h2 class="card-title mt-2">{m.settings_lazy_ping_title()}</h2>
<p class="mt-2">
{m.settings_lazy_ping_desc()}
@@ -187,7 +224,7 @@ second (0–59, optional)
class="h-36"
src={$settingsPub.favicon !== ''
? `${backendUrl}api/files/settings_public/${$settingsPub.id}/${$settingsPub.favicon}`
: '/gopher.svg'}
: asset('/gopher.svg')}
alt="Favicon preview"
bind:this={faviconPreview}
/>
@@ -201,8 +238,9 @@ second (0–59, optional)
/>
<button
class="btn btn-error"
on:click={() => resetFavicon()}
on:keydown={() => resetFavicon()}>{m.buttons_reset()}</button
type="button"
onclick={() => resetFavicon()}
onkeydown={() => resetFavicon()}>{m.buttons_reset()}</button
>
</div>
</div>
+40 -27
View File
@@ -1,6 +1,7 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { page } from '$app/stores';
import { asset, resolve } from '$app/paths';
import { page } from '$app/state';
import PageLoading from '$lib/components/PageLoading.svelte';
import { m } from '$lib/paraglide/messages';
import { pocketbase } from '$lib/stores/pocketbase';
@@ -12,32 +13,34 @@
import Fa from 'svelte-fa';
import toast from 'svelte-french-toast';
let getUsersPromise = getUsers();
let getPermissionsPromise = getPermissions();
let getDevicesPromise = getDevices();
let deleteModal = [] as HTMLDialogElement[];
let getUsersPromise = $state(getUsers());
let getPermissionsPromise = $state(getPermissions());
let getDevicesPromise = $state(getDevices());
let deleteModal = $state([] as HTMLDialogElement[]);
let users = [] as User[];
let permissions = [] as Permission[];
let devices = [] as Device[];
let newUser = {
let users = $state([] as User[]);
let permissions = $state([] as Permission[]);
let devices = $state([] as Device[]);
let newUser = $state({
username: '',
password: '',
passwordConfirm: ''
};
});
$: users.map((user) => {
if (!permissions.find((perm) => perm.user === user.id)) {
permissions = [...permissions, { user: user.id } as Permission];
}
$effect(() => {
users.map((user) => {
if (!permissions.find((perm) => perm.user === user.id)) {
permissions = [...permissions, { user: user.id } as Permission];
}
});
});
onMount(() => {
if (!$pocketbase.authStore.isSuperuser) {
toast(m.toasts_no_permission({ url: $page.url.pathname }), {
toast(m.toasts_no_permission({ url: page.url.pathname }), {
icon: '⛔'
});
goto('/');
goto(resolve('/'));
return;
}
});
@@ -183,13 +186,18 @@
{:then}
<h1 class="mb-8 text-3xl font-bold">{m.users_page_title()}</h1>
{#each users as user, index (user.id)}
<form on:submit|preventDefault={() => save(user)}>
<form
onsubmit={(e) => {
e.preventDefault();
save(user);
}}
>
<div class="card bg-base-200 mt-6 w-full shadow-sm">
<div class="card-body gap-4">
<h2 class="card-title">
<label tabindex="-1" class="avatar" for="avatar{index}">
<div class="w-10 rounded-full" id="avatar{index}">
<img src="/avatars/avatar{user.avatar}.svg" alt="Avatar {user.avatar}" />
<img src={asset(`/avatars/avatar${user.avatar}.svg`)} alt="Avatar {user.avatar}" />
</div>
</label>
{user.username}
@@ -209,7 +217,7 @@
{#if devices.length === 0}
<p>
{m.home_no_devices()}
<a href="/device/new" class="link">{m.users_create_new_device()}</a>
<a href={resolve('/device/new')} class="link">{m.users_create_new_device()}</a>
</p>
{:else}
<div class="grid grid-cols-4 justify-items-center gap-4 md:grid-cols-5">
@@ -218,7 +226,7 @@
<div class="font-bold">{m.users_delete()}</div>
<div class="font-bold">{m.users_power()}</div>
{#each devices as device (device.id)}
<hr class="border-neutral col-span-full w-full border-b-1 opacity-30" />
<hr class="border-neutral col-span-full w-full border-b opacity-30" />
{#each permissions.filter((perm) => perm.user === user.id) as permission (permission.id)}
<div
class="col-span-full flex flex-row flex-wrap gap-2 place-self-start break-all md:col-span-1"
@@ -255,7 +263,7 @@
<button
class="btn btn-sm md:col-start-2"
type="button"
on:click={() => {
onclick={() => {
toggleAllPermissions(user, 'read');
}}
><span class="hidden md:block">{m.users_toggle()}</span><Fa
@@ -266,7 +274,7 @@
<button
class=" btn btn-sm"
type="button"
on:click={() => {
onclick={() => {
toggleAllPermissions(user, 'update');
}}
><span class="hidden md:block">{m.users_toggle()}</span><Fa
@@ -277,7 +285,7 @@
<button
class=" btn btn-sm"
type="button"
on:click={() => {
onclick={() => {
toggleAllPermissions(user, 'delete');
}}
><span class="hidden md:block">{m.users_toggle()}</span><Fa
@@ -288,7 +296,7 @@
<button
class=" btn btn-sm"
type="button"
on:click={() => {
onclick={() => {
toggleAllPermissions(user, 'power');
}}
><span class="hidden md:block">{m.users_toggle()}</span><Fa
@@ -305,7 +313,7 @@
<button
class="btn btn-error join-item"
type="button"
on:click={() => deleteModal[index].showModal()}
onclick={() => deleteModal[index].showModal()}
><Fa icon={faTrash} />{m.buttons_delete()}</button
>
<button class="btn btn-success join-item" type="submit"
@@ -322,7 +330,7 @@
<div class="modal-action">
<form method="dialog">
<button class="btn">{m.buttons_cancel()}</button>
<button class="btn btn-error" on:click={() => deleteUser(user)}
<button class="btn btn-error" onclick={() => deleteUser(user)}
>{m.buttons_delete()}</button
>
</form>
@@ -333,7 +341,12 @@
<div class="card bg-base-200 mt-6 w-full shadow-sm">
<div class="card-body">
<h2 class="card-title">{m.users_create_new_user()}</h2>
<form on:submit|preventDefault={createUser}>
<form
onsubmit={(e) => {
e.preventDefault();
createUser();
}}
>
<div class="flex flex-row flex-wrap gap-4">
<div class="w-full max-w-xs">
<label class="label" for="username">
+19 -158
View File
@@ -1,181 +1,42 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { toggleVisibility } from '$lib/helpers/forms';
import { m } from '$lib/paraglide/messages.js';
import { asset, resolve } from '$app/paths';
import { m } from '$lib/paraglide/messages';
import { pocketbase } from '$lib/stores/pocketbase';
import { settingsPub } from '$lib/stores/settings';
import type { SettingsPublic } from '$lib/types/settings';
import { faArrowRight, faEye } from '@fortawesome/free-solid-svg-icons';
import { onMount } from 'svelte';
import Fa from 'svelte-fa';
import toast from 'svelte-french-toast';
let stepsCompleted = 0;
let inputPassword: HTMLInputElement;
let inputConfirm: HTMLInputElement;
let form = {
email: '',
password: '',
confirm: ''
};
let notReady = $state(false);
onMount(() => {
if ($settingsPub && !$settingsPub.setup_completed && $pocketbase.authStore.isValid) {
$pocketbase.authStore.clear();
async function checkAndContinue() {
const data = await $pocketbase.collection('settings_public').getFirstListItem('');
settingsPub.set(data as SettingsPublic);
if (data.setup_completed) {
goto(resolve('/login'));
} else {
notReady = true;
}
});
async function register() {
$pocketbase
.send('/api/upsnap/init-superuser', {
method: 'POST',
body: {
email: form.email,
password: form.password,
password_confirm: form.confirm
}
})
.then(() => {
$pocketbase
.collection('settings_public')
.getFirstListItem('')
.then((data) => {
settingsPub.set(data as SettingsPublic);
});
$pocketbase
.collection('_superusers')
.authWithPassword(form.email, form.password)
.then(() => {
stepsCompleted = 2;
})
.catch((err) => {
if (err.data?.data?.identity?.message) {
toast.error(err.data.data.identity.message);
return;
}
});
})
.catch((err) => {
if (err.data?.data?.passwordConfirm?.message) {
toast.error(m.toasts_passwords_missmatch());
} else if (err.data?.data?.email?.message) {
toast.error(err.data.data.email.message);
} else {
toast.error(err.message || err);
}
});
}
</script>
<div class="mt-10 flex items-center justify-center">
<div class="my-4 flex w-screen max-w-lg flex-col gap-16">
<div class="card bg-base-200 shadow-sm">
{#if stepsCompleted === 0 && $settingsPub?.setup_completed}
<figure class="mx-auto w-72 pt-6"><img src="/gopher.svg" alt="Gopher" /></figure>
{#if !$settingsPub?.setup_completed}
<figure class="mx-auto w-44 pt-6"><img src={asset('/gopher.svg')} alt="Gopher" /></figure>
<div class="card-body">
<h2 class="card-title">{m.welcome_not_expected_title()}</h2>
<p>{m.welcome_not_expected_desc()}</p>
<h2 class="card-title">{m.welcome_title()}</h2>
<p>{m.welcome_desc()}</p>
{#if notReady}
<p class="text-error text-sm">{m.welcome_not_ready()}</p>
{/if}
<div class="card-actions justify-end">
<button class="btn btn-success" on:click={() => goto('/')}
>{m.welcome_not_expected_back()}</button
>
</div>
</div>
{:else if stepsCompleted === 0}
<figure class="mx-auto w-44 pt-6"><img src="/gopher.svg" alt="Gopher" /></figure>
<div class="card-body">
<h2 class="card-title">{m.welcome_step1_page_title()}</h2>
<p>{m.welcome_step1_setup_desc()}</p>
<div class="card-actions justify-end">
<button class="btn btn-success" on:click={() => (stepsCompleted = 1)}
>{m.welcome_step1_setup_btn_next()} <Fa icon={faArrowRight} /></button
>
</div>
</div>
{:else if stepsCompleted === 1}
<div class="card-body">
<div class="flex flex-row gap-4">
<figure class="w-16"><img src="/gopher.svg" alt="Gopher" /></figure>
<h2 class="card-title">{m.welcome_step2_page_title()}</h2>
</div>
<form class="w-full" on:submit|preventDefault={register}>
<label class="label" for="email">
<span>{m.welcome_step2_label_email()}</span>
</label>
<input id="email" type="email" class="input w-full" required bind:value={form.email} />
<label class="label" for="password">
<span>{m.welcome_step2_label_password()}</span>
<span>{m.welcome_step2_label_min_chars()}</span>
</label>
<label class="relative block">
<div
class="absolute top-1/2 right-4 -translate-y-1/2 cursor-pointer"
role="none"
on:click={() => toggleVisibility(inputPassword)}
on:keydown={() => toggleVisibility(inputPassword)}
>
<Fa icon={faEye} />
</div>
<input
id="password"
type="password"
class="input w-full"
minlength="10"
maxlength="72"
required
bind:value={form.password}
bind:this={inputPassword}
/>
</label>
<label class="label" for="passwordConfirm">
<span>{m.welcome_step2_label_password_confirm()}</span>
</label>
<label class="relative block">
<div
class="absolute top-1/2 right-4 -translate-y-1/2 cursor-pointer"
role="none"
on:click={() => toggleVisibility(inputConfirm)}
on:keydown={() => toggleVisibility(inputConfirm)}
>
<Fa icon={faEye} />
</div>
<input
id="confirm"
type="password"
class="input w-full"
minlength="10"
maxlength="72"
required
bind:value={form.confirm}
bind:this={inputConfirm}
/>
</label>
<div class="card-actions mt-4 justify-end">
<button class="btn btn-success" type="submit"
>{m.welcome_step2_btn_create()} <Fa icon={faArrowRight} /></button
>
</div>
</form>
</div>
{:else if stepsCompleted === 2}
<figure class="mx-auto w-72 pt-6"><img src="/gopher.svg" alt="Gopher" /></figure>
<div class="card-body">
<h2 class="card-title">{m.welcome_step3_page_title()}</h2>
<p>{m.welcome_step3_page_desc()}</p>
<div class="card-actions justify-end">
<button class="btn btn-success" on:click={() => goto('/')}
>{m.welcome_step3_btn_done()}</button
<button class="btn btn-success" onclick={checkAndContinue}
>{m.welcome_btn_done()}</button
>
</div>
</div>
{/if}
</div>
{#if $settingsPub && !$settingsPub.setup_completed}
<ul class="steps steps-horizontal">
<li class="step step-success">{m.welcome_progress_step1()}</li>
<li class="step" class:step-success={stepsCompleted > 0}>{m.welcome_progress_step2()}</li>
<li class="step" class:step-success={stepsCompleted > 1}>{m.welcome_progress_step3()}</li>
</ul>
{/if}
</div>
</div>
-42
View File
@@ -1,42 +0,0 @@
{
"name": "UpSnap",
"short_name": "UpSnap",
"description": "A simple wake on lan web app written with SvelteKit, Go and PocketBase.",
"theme_color": "#55BCD9",
"background_color": "#55BCD9",
"display": "standalone",
"orientation": "any",
"scope": "/",
"start_url": "/",
"icons": [
{
"src": "/icon_192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any"
},
{
"src": "/icon_512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
},
{
"src": "/maskable_192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/maskable_512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/gopher.svg",
"type": "image/svg+xml",
"sizes": "any"
}
]
}
+10 -3
View File
@@ -18,11 +18,18 @@ const config = {
'/login',
'/account',
'/welcome',
'/device/[id]',
'/device',
'/device/new',
'/users',
'/settings'
]
'/settings',
'/logs'
],
handleHttpError: ({ path, message }) => {
if (path === '/api/upsnap/manifest.webmanifest') {
return;
}
throw message;
}
}
}
};
+204
View File
@@ -0,0 +1,204 @@
{
"$schema": "https://inlang.com/schema/inlang-message-format",
"logs_filters": "عوامل التصفية",
"logs_column_data": "التفاصيل",
"logs_column_level": "المستوى",
"logs_column_message": "الرسالة",
"logs_column_time": "الوقت",
"logs_empty": "لا توجد سجلات تطابق هذا الفلتر.",
"logs_upsnap_logs": "سجلات UpSnap",
"logs_only": "فقط",
"logs_level_all": "كل المستويات",
"logs_next": "التالي",
"logs_off": "إيقاف",
"logs_page_size": "صفوف لكل صفحة",
"logs_page_title": "السجلات",
"logs_previous": "السابق",
"logs_refresh": "تحديث",
"logs_refresh_failed": "تعذر تحميل السجلات: {message}",
"logs_refreshed_at": "تم التحديث {time}",
"logs_search_placeholder": "البحث في السجلات",
"logs_seconds": "{seconds} ثوانٍ",
"account_account_type_admin": "مسؤول",
"account_account_type_user": "مستخدم",
"account_avatar_title": "صورة",
"account_change_password_body": "بعد تعديل كلمة المرور، يجب عليك تسجيل الدخول مرة أخرى",
"account_change_password_confirm": "تأكيد كلمة المرور",
"account_change_password_label": "كلمة المرور القديمة",
"account_change_password_new": "كلمة المرور الجديدة",
"account_change_password_title": "تغيير كلمة المرور",
"account_language_title": "اللغة",
"account_page_title": "الحساب",
"buttons_add": "إضافة",
"buttons_cancel": "إلغاء",
"buttons_change": "تغيير",
"buttons_confirm": "تأكيد",
"buttons_delete": "حذف",
"buttons_reset": "إعادة تعيين",
"buttons_save": "حفظ",
"device_card_btn_more": "المزيد",
"device_card_btn_more_edit": "تعديل",
"device_card_btn_more_reboot": "إعادة تشغيل",
"device_card_btn_more_sleep": "سكون",
"device_card_nic_tooltip_pending": "قيد الانتظار",
"device_card_nic_tooltip_power": "تشغيل",
"device_card_nic_tooltip_power_no_permission": "لا توجد صلاحية لتشغيل هذا الجهاز",
"device_card_nic_tooltip_shutdown": "إيقاف التشغيل",
"device_card_nic_tooltip_shutdown_no_cmd": "لم يتم تعيين أمر الإيقاف",
"device_card_nic_tooltip_shutdown_no_permission": "لا توجد صلاحية لإيقاف هذا الجهاز",
"device_card_password": "كلمة المرور",
"device_card_tooltip_last_status_change": "آخر تغيير في الحالة",
"device_card_tooltip_shutdown_cron": "جدولة الإيقاف",
"device_card_tooltip_wake_cron": "جدولة التشغيل",
"device_card_tooltip_wake_password": "كلمة مرور التشغيل",
"device_general": "عام",
"device_general_description": "الوصف",
"device_general_description_placeholder": "وصف للجهاز",
"device_general_ip": "عنوان IP/FQDN",
"device_general_mac": "عنوان Mac",
"device_general_name": "الاسم",
"device_general_netmask": "قناع الشبكة",
"device_general_required_field": "حقل مطلوب",
"device_groups": "المجموعات",
"device_groups_desc": "يمكنك إضافة الأجهزة إلى مجموعة لفرزها حسب المجموعة في لوحة التحكم.",
"device_groups_placeholder": "مثلاً 'القبو' أو 'المكتب'",
"device_link": "الرابط",
"device_link_desc": "يجعل اسم جهازك رابطاً قابلاً للنقر، مثالي للربط بلوحة تحكم على سبيل المثال.",
"device_link_open": "فتح الرابط تلقائياً",
"device_link_open_new_tab": "تبويب جديد",
"device_link_open_no": "لا",
"device_link_open_same_tab": "نفس التبويب",
"device_modal_confirm_shutdown_desc": "يرجى التأكيد لإيقاف {device}.",
"device_modal_confirm_shutdown_title": "إيقاف {device}؟",
"device_modal_confirm_wake_desc": "يرجى التأكيد لتشغيل {device}.",
"device_modal_confirm_wake_title": "تشغيل {device}؟",
"device_network_scan": "فحص",
"device_network_scan_add_all": "إضافة جميع الأجهزة",
"device_network_scan_desc": "فحص شبكتك تلقائياً للعثور على الأجهزة. لكي يعمل هذا، تحتاج إلى تشغيل UpSnap كمسؤول وتثبيت nmap وإتاحته في $PATH (بالنسبة لمستخدمي Docker، هذا متوفر بالفعل ولا تحتاج لفعل أي شيء). قد يستغرق الفحص بضع ثوانٍ.",
"device_network_scan_include_unknown": "تضمين الأجهزة التي اسمها \"Unknown\"",
"device_network_scan_ip": "IP:",
"device_network_scan_ip_range": "نطاق IP",
"device_network_scan_mac": "Mac:",
"device_network_scan_mac_vendor": "جهة تصنيع الـ Mac:",
"device_network_scan_netmask": "قناع الشبكة:",
"device_network_scan_new_netmask": "قناع شبكة جديد",
"device_network_scan_no_range": "لا يوجد نطاق فحص",
"device_network_scan_range_saved": "تم حفظ نطاق الفحص",
"device_network_scan_replace_netmask": "استبدال قناع الشبكة لجميع الأجهزة؟",
"device_network_scan_running": "الفحص قيد التشغيل",
"device_network_scan_unsaved_changes": "تغييرات غير محفوظة",
"device_page_title": "جهاز جديد",
"device_password": "كلمة المرور",
"device_password_desc": "بعض بطاقات الشبكة لديها خيار تعيين كلمة مرور لـ Magic Packets، تسمى أيضاً <span class=\"badge\">SecureON</span>. يمكن أن تكون كلمة المرور 0 أو 4 أو 6 أحرف فقط.",
"device_ping": "Ping",
"device_ping_cmd": "أمر ping مخصص",
"device_ping_desc": "يمكنك استخدام أمر shell مخصص لمعرفة ما إذا كان الجهاز قيد التشغيل. يجب أن يُرجع الأمر رمز خروج <span class=\"badge\">0</span> للإشارة إلى أن الجهاز قيد التشغيل، أي رمز خروج آخر سيحدد الجهاز على أنه متوقف.",
"device_ports": "المنافذ",
"device_ports_add_new": "إضافة منفذ جديد",
"device_ports_desc": "يمكن لـ UpSnap أيضاً التحقق مما إذا كانت المنافذ المحددة مفتوحة.",
"device_ports_name": "الاسم",
"device_ports_number": "الرقم",
"device_require_confirmation": "يتطلب تأكيد",
"device_shutdown": "الإيقاف",
"device_shutdown_cmd": "أمر الإيقاف",
"device_shutdown_cron": "جدولة الإيقاف",
"device_shutdown_cron_desc": "تماماً مثل تعيين جدولة لتشغيل الجهاز، يمكنك أيضاً جدولة مهمة لإيقاف هذا الجهاز.",
"device_shutdown_cron_enable": "تفعيل جدولة الإيقاف",
"device_shutdown_desc": "سيتم تشغيل <strong>أمر shell</strong> هذا داخل الحاوية الخاصة بك (إذا كنت تستخدم Docker) أو على المضيف الخاص بك (إذا كنت تستخدم الملف الثنائي). للتحقق من أنه يعمل، يمكنك تشغيل الأمر داخل الحاوية أو على shell المضيف أولاً. الأوامر الشائعة هي <span class=\"badge\">net rpc</span> لـ Windows، <span class=\"badge\">sshpass</span> لـ Linux أو <span class=\"badge\">curl</span> بشكل عام لإجراء طلبات الويب. <span class=\"badge\">\\{\\{ DEVICE_IP \\}\\}</span> و <span class=\"badge\">\\{\\{ DEVICE_MAC \\}\\}</span> للاستبدال التلقائي لعناوين IP وMAC الفعلية.",
"device_shutdown_examples": "أمثلة:",
"device_shutdown_examples_linux": "إيقاف جهاز Linux عن بُعد:",
"device_shutdown_examples_windows": "إيقاف جهاز Windows عن بُعد:",
"device_shutdown_timeout": "مهلة الإيقاف (بالثواني)",
"device_sol": "Sleep-On-LAN",
"device_sol_authorization": "التفويض",
"device_sol_desc1": "يمكنك وضع الأجهزة في وضع السكون باستخدام أداة <a class=\"link\" href=\"https://github.com/SR-G/sleep-on-lan\" target=\"_blank\">Sleep-On-LAN</a>. وهي أداة خارجية تعمل على الأجهزة التي تريد التحكم بها وتوفر نقطة نهاية REST. للمزيد، راجع قسم <a href=\"https://github.com/SR-G/sleep-on-lan#usage\" class=\"link\" target=\"_blank\">الاستخدام</a>.",
"device_sol_desc2": "تم تكوين SOL لإرسال الطلبات عبر HTTP بدلاً من UDP لتمكين التفويض وجعل الطلبات أكثر موثوقية.",
"device_sol_desc3": "لذلك، يرجى التأكد من تضمين <span class=\"badge\">HTTP:&lt;YOURPORT&gt;</span> في قسم <span class=\"badge\">Listeners</span> من <a href=\"https://github.com/SR-G/sleep-on-lan#configuration\" class=\"link\" target=\"_blank\">تكوين SOL</a>.",
"device_sol_enable": "تفعيل Sleep-On-LAN",
"device_sol_password": "كلمة مرور SOL",
"device_sol_port": "منفذ SOL",
"device_sol_user": "مستخدم SOL",
"device_tabs_0": "يدوي",
"device_tabs_1": "فحص الشبكة",
"device_wake": "التشغيل",
"device_wake_cmd": "أمر تشغيل مخصص",
"device_wake_cron": "جدولة التشغيل",
"device_wake_cron_enable": "تفعيل جدولة التشغيل",
"device_wake_desc": "يمكنك تشغيل هذا الجهاز باستخدام مهمة مجدولة. <span class=\"badge\">\\{\\{ DEVICE_IP \\}\\}</span> و <span class=\"badge\">\\{\\{ DEVICE_MAC \\}\\}</span> للاستبدال التلقائي لعناوين IP و MAC الفعلية.",
"device_wake_timeout": "مهلة التشغيل (بالثواني)",
"home_add_first_device": "أضف جهازك الأول",
"home_grant_permissions": "يرجى الطلب من المسؤول منحك صلاحيات للأجهزة الموجودة أو لإنشاء أجهزة جديدة.",
"home_modal_confirm_shutdown_group_desc": "يرجى التأكيد لإيقاف جميع الأجهزة في {group}.",
"home_modal_confirm_shutdown_group_title": "إيقاف {group}؟",
"home_no_devices": "لا توجد أجهزة هنا.",
"home_order_groups": "المجموعات",
"home_order_ip": "IP",
"home_order_name": "الاسم",
"home_order_tooltip": "الترتيب",
"home_page_title": "الرئيسية",
"home_search_placeholder": "البحث عن الأجهزة",
"home_shutdown_group": "إيقاف المجموعة",
"home_wake_group": "تشغيل المجموعة",
"login_btn_login": "تسجيل الدخول",
"login_btn_more": "المزيد",
"login_email_label": "البريد الإلكتروني أو اسم المستخدم:",
"login_menu_title_auth_providers": "موفرو مصادقة آخرون",
"login_password_label": "كلمة المرور:",
"login_welcome": "مرحباً",
"navbar_edit_account": "تعديل الحساب",
"navbar_logout": "تسجيل الخروج",
"navbar_new": "جديد",
"navbar_theme": "المظهر",
"settings_icon_desc": "تعيين أيقونة مفضلة مخصصة. أنواع الملفات المدعومة هي:",
"settings_icon_title": "الأيقونة",
"settings_invalid_cron": "❌ صيغة cron غير صالحة",
"settings_invalid_fqdnip": "❌ عنوان FQDN/IPv4 غير صالح",
"settings_lazy_ping_desc": "عندما يتم تشغيل الـ ping خامل سيقوم UpSnap بفحص الأجهزة فقط إذا كان هناك مستخدم نشط يزور الموقع. إذا تم إيقاف تشغيله، سيقوم UpSnap دائماً بفحص الأجهزة.",
"settings_lazy_ping_enable": "تفعيل",
"settings_lazy_ping_title": "Ping خامل",
"settings_page_title": "الإعدادات",
"settings_ping_interval_desc1": "يعين الفاصل الزمني الذي يتم فيه فحص الأجهزة. اتركه فارغاً لاستخدام القيمة الافتراضية <span class=\"badge\">*/3 * * * * *</span>.",
"settings_ping_interval_desc2": "تعرف على المزيد حول الصيغة الصحيحة لـ cron على <a class=\"link\" href=\"https://en.wikipedia.org/wiki/Cron\" target=\"_blank\">ويكيبيديا</a> أو راجع <a class=\"link\" href=\"https://github.com/harrisiirak/cron-parser\" target=\"_blank\">توثيق الحزمة</a>.",
"settings_ping_interval_title": "فاصل زمني للـ Ping",
"settings_upsnap_version": "إصدار UpSnap",
"settings_website_title_desc": "يعين عنوان الموقع وفي تبويب المتصفح.",
"settings_website_title_title": "عنوان الموقع",
"toasts_admin_saved": "تم حفظ المسؤول",
"toasts_device_created": "تم إنشاء {device}",
"toasts_device_deleted": "تم حذف {device}",
"toasts_device_updated": "تم تحديث {device}",
"toasts_devices_created_multiple": "تم إنشاء {count} جهاز",
"toasts_group_created": "تم إنشاء المجموعة {group}",
"toasts_group_deleted": "تم حذف المجموعة {group}",
"toasts_no_permission": "ليس لديك صلاحية لزيارة {url}",
"toasts_password_changed": "تم تغيير كلمة المرور. يرجى تسجيل الدخول مرة أخرى.",
"toasts_passwords_missmatch": "كلمات المرور غير متطابقة",
"toasts_permissions_created": "تم إنشاء صلاحيات لـ {username}",
"toasts_permissions_deleted": "تم حذف صلاحيات {username}",
"toasts_permissions_updated": "تم تحديث صلاحيات {username}",
"toasts_permissions_updated_personal": "تم تحديث صلاحياتك",
"toasts_settings_saved": "تم حفظ الإعدادات",
"toasts_user_created": "تم إنشاء المستخدم {username}",
"toasts_user_deleted": "تم حذف المستخدم {username}",
"toasts_user_saved": "تم حفظ المستخدم",
"users_allow_create_devices": "السماح لـ {username} بإنشاء أجهزة جديدة وتعديل مجموعات الأجهزة",
"users_confirm_delete_desc": "هل أنت متأكد من حذف {username}؟",
"users_confirm_delete_title": "تأكيد الحذف",
"users_create_new_device": "إنشاء جهاز جديد",
"users_create_new_user": "إنشاء مستخدم جديد",
"users_delete": "حذف",
"users_device_permissions": "صلاحيات الأجهزة",
"users_page_title": "المستخدمون",
"users_password": "كلمة المرور",
"users_password_confirm": "تأكيد كلمة المرور",
"users_power": "التشغيل",
"users_read": "قراءة",
"users_required_field": "حقل مطلوب",
"users_toggle": "تبديل",
"users_update": "تحديث",
"users_username": "اسم المستخدم",
"welcome_btn_done": "تم",
"welcome_desc": "تحقق من سجلات وحدة تحكم الخادم للحصول على رابط لإنشاء حساب المستخدم الخارق الأولي. بمجرد إنشاء المستخدم الخارق، عد إلى هنا.",
"welcome_not_ready": "لم يتم العثور على مستخدم خارق بعد. يرجى إكمال الإعداد أولاً.",
"welcome_title": "الإعداد الأولي مطلوب"
}
+204
View File
@@ -0,0 +1,204 @@
{
"$schema": "https://inlang.com/schema/inlang-message-format",
"logs_filters": "Филтри",
"logs_column_data": "Подробности",
"logs_column_level": "Ниво",
"logs_column_message": "Съобщение",
"logs_column_time": "Време",
"logs_empty": "Няма логове, съответстващи на този филтър.",
"logs_upsnap_logs": "Дневници на UpSnap",
"logs_only": "Само",
"logs_level_all": "Всички нива",
"logs_next": "Напред",
"logs_off": "Изключено",
"logs_page_size": "Редове на страница",
"logs_page_title": "Логове",
"logs_previous": "Назад",
"logs_refresh": "Опресни",
"logs_refresh_failed": "Неуспешно зареждане на логовете: {message}",
"logs_refreshed_at": "Обновено {time}",
"logs_search_placeholder": "Търсене в логовете",
"logs_seconds": "{seconds} секунди",
"account_account_type_admin": "Администратор",
"account_account_type_user": "Потребител",
"account_avatar_title": "Аватар",
"account_change_password_body": "След като промените паролата си, ще трябва да влезете отново.",
"account_change_password_confirm": "Потвърдете паролата",
"account_change_password_label": "Стара парола",
"account_change_password_new": "Нова парола",
"account_change_password_title": "Промяна на паролата",
"account_language_title": "Език",
"account_page_title": "Профил",
"buttons_add": "Добавяне",
"buttons_cancel": "Отказ",
"buttons_change": "Промяна",
"buttons_confirm": "Потвърждение",
"buttons_delete": "Изтриване",
"buttons_reset": "Нулиране",
"buttons_save": "Запазване",
"device_card_btn_more": "...",
"device_card_btn_more_edit": "Редактиране",
"device_card_btn_more_reboot": "Рестартиране",
"device_card_btn_more_sleep": "Заспиване",
"device_card_nic_tooltip_pending": "Изчакване...",
"device_card_nic_tooltip_power": "Включване",
"device_card_nic_tooltip_power_no_permission": "Нямате права за включване на това устройство",
"device_card_nic_tooltip_shutdown": "Изключване",
"device_card_nic_tooltip_shutdown_no_cmd": "Няма зададена команда за изключване",
"device_card_nic_tooltip_shutdown_no_permission": "Нямате права за изключване на това устройство",
"device_card_password": "Парола",
"device_card_tooltip_last_status_change": "Последна промяна на статуса",
"device_card_tooltip_shutdown_cron": "Cron за изключване",
"device_card_tooltip_wake_cron": "Cron за събуждане",
"device_card_tooltip_wake_password": "Парола за събуждане",
"device_general": "Общи",
"device_general_description": "Описание",
"device_general_description_placeholder": "Описание на устройството",
"device_general_ip": "IP адрес/FQDN",
"device_general_mac": "MAC адрес",
"device_general_name": "Име",
"device_general_netmask": "Мрежова маска",
"device_general_required_field": "задължително поле",
"device_groups": "Групи",
"device_groups_desc": "Можете да добавяте устройства към група, за да ги групирате заедно на началния екран.",
"device_groups_placeholder": "напр. „Мазе“ или „Офис“",
"device_link": "Връзка",
"device_link_desc": "Превръща името на устройството във връзка, идеална за свързване към уебсайт, например.",
"device_link_open": "Автоматично отваряне на връзка",
"device_link_open_new_tab": "Нов таб",
"device_link_open_no": "Не",
"device_link_open_same_tab": "Същия таб",
"device_modal_confirm_shutdown_desc": "Моля, потвърдете изключването на {device}.",
"device_modal_confirm_shutdown_title": "Изключване на {device}?",
"device_modal_confirm_wake_desc": "Моля, потвърдете събуждането на {device}.",
"device_modal_confirm_wake_title": "Събуждане на {device}?",
"device_network_scan": "Сканиране",
"device_network_scan_add_all": "Добавяне на всички устройства",
"device_network_scan_desc": "Автоматично сканиране на мрежата за устройства. За да работи, трябва да стартирате UpSnap като root/admin и да имате nmap инсталиран и наличен в $PATH променливата (за потребители на Docker това вече е така и не е необходимо да променяте нищо). Сканирането може да отнеме няколко секунди.",
"device_network_scan_include_unknown": "Включване на устройства с име „Неизвестно“",
"device_network_scan_ip": "IP:",
"device_network_scan_ip_range": "IP диапазон",
"device_network_scan_mac": "MAC адрес:",
"device_network_scan_mac_vendor": "Доставчик на MAC адрес:",
"device_network_scan_netmask": "Мрежова маска:",
"device_network_scan_new_netmask": "Нова мрежова маска",
"device_network_scan_no_range": "Няма диапазон на сканиране",
"device_network_scan_range_saved": "Запазен диапазон на сканиране",
"device_network_scan_replace_netmask": "Замяна на мрежовата маска за всички устройства?",
"device_network_scan_running": "Сканирането стартира...",
"device_network_scan_unsaved_changes": "Незапазени промени",
"device_page_title": "Ново устройство",
"device_password": "Парола",
"device_password_desc": "Някои мрежови карти имат възможност да задават парола за Magic пакети, наричана още <span class=\"badge\">SecureON</span>. Паролата може да бъде дълга само 0, 4 или 6 знака.",
"device_ping": "Ping",
"device_ping_cmd": "Персонализирана ping команда",
"device_ping_desc": "Можете да използвате персонализирана shell команда, за да проверите дали устройството е включено. Командата трябва да върне exit код <span class=\"badge\">0</span>, за да потвърди, че устройството е включено, докато всеки друг код показва, че устройството е изключено.",
"device_ports": "Портове",
"device_ports_add_new": "Добавяне на нов порт",
"device_ports_desc": "UpSnap може също да провери дали дадените портове са отворени.",
"device_ports_name": "Име",
"device_ports_number": "Номер",
"device_require_confirmation": "Изискване на потвърждение",
"device_shutdown": "Изключване",
"device_shutdown_cmd": "Команда за изключване",
"device_shutdown_cron": "Параметри за изключване за cron",
"device_shutdown_cron_desc": "Подобно на настройването на cron за събуждане на устройство, можете също да планирате cron задача за изключване на това устройство.",
"device_shutdown_cron_enable": "Активиране на изключване чрез cron",
"device_shutdown_desc": "Тази <strong>shell команда</strong> ще се изпълни във вашия контейнер (ако използвате Docker) или на вашия хост (ако използвате двоичен файл). За да се уверите, че работи, първо можете да изпълните командата вътре в контейнера или в shell на хоста. Типични команди са <span class=\"badge\">net rpc</span> за Windows, <span class=\"badge\">sshpass</span> за Linux или <span class=\"badge\">curl</span> за отправяне на уеб заявки. <span class=\"badge\">\\{\\{ DEVICE_IP \\}\\}</span> и <span class=\"badge\">\\{\\{ DEVICE_MAC \\}\\}</span> могат да се използват за автоматично заместване на действителни IP и MAC адреси.",
"device_shutdown_examples": "Примери:",
"device_shutdown_examples_linux": "Изключване на отдалечена машина с Linux:",
"device_shutdown_examples_windows": "Изключване на отдалечена машина с Windows:",
"device_shutdown_timeout": "Време за изключване (секунди)",
"device_sol": "Sleep-On-LAN",
"device_sol_authorization": "Оторизация",
"device_sol_desc1": "Можете да изключите устройството си с помощта на инструмента <a class=\"link\" href=\"https://github.com/SR-G/sleep-on-lan\" target=\"_blank\">Sleep-On-LAN</a>. Sleep-On-LAN (SOL) е външен инструмент, който се изпълнява на устройството, което искате да изключите, предоставяйки REST крайна точка. За инструкции относно конфигурирането на Sleep-On-LAN, вижте раздела <a href=\"https://github.com/SR-G/sleep-on-lan#usage\" class=\"link\" target=\"_blank\">Използване</a>.",
"device_sol_desc2": "SOL е конфигуриран да изпраща заявки през HTTP вместо UDP, за да се даде възможност за оторизация и да се направят заявките по-надеждни.",
"device_sol_desc3": "Затова се уверете, че сте включили <span class=\"badge\">HTTP:&lt;ВАШИЯ-ПОРТ&gt;</span> в секцията <span class=\"badge\">Listeners</span> на вашата <a href=\"https://github.com/SR-G/sleep-on-lan#configuration\" class=\"link\" target=\"_blank\">SOL конфигурация</a>.",
"device_sol_enable": "Активиране на Sleep-On-LAN",
"device_sol_password": "SOL парола",
"device_sol_port": "SOL порт",
"device_sol_user": "SOL потребител",
"device_tabs_0": "Ръчно",
"device_tabs_1": "Сканиране на мрежа",
"device_wake": "Събуждане",
"device_wake_cmd": "Персонализирана команда за събуждане",
"device_wake_cron": "Cron за събуждане",
"device_wake_cron_enable": "Активиране на cron за събуждане",
"device_wake_desc": "Можете да събудите това устройство чрез планирана cron задача. <span class=\"badge\">\\{\\{ DEVICE_IP \\}\\}</span> и <span class=\"badge\">\\{\\{ DEVICE_MAC \\}\\}</span> могат да се използват за автоматично заместване на действителни IP и MAC адреси.",
"device_wake_timeout": "Време за събуждане (секунди)",
"home_add_first_device": "Добавете първото си устройство",
"home_grant_permissions": "Моля, помолете вашия администратор да ви предостави необходимите права за добавяне и работа с устройства.",
"home_modal_confirm_shutdown_group_desc": "Моля, потвърдете изключването на всички устройства в {group}.",
"home_modal_confirm_shutdown_group_title": "Изключване на {group}?",
"home_no_devices": "Тук няма устройства.",
"home_order_groups": "Групи",
"home_order_ip": "IP",
"home_order_name": "Име",
"home_order_tooltip": "Подредба",
"home_page_title": "Начало",
"home_search_placeholder": "Търсене на устройства",
"home_shutdown_group": "Изключване на група",
"home_wake_group": "Събуждане на група",
"login_btn_login": "Влизане",
"login_btn_more": "...",
"login_email_label": "Имейл или потребителско име:",
"login_menu_title_auth_providers": "Други Auth доставчици",
"login_password_label": "Парола:",
"login_welcome": "Добре дошли",
"navbar_edit_account": "Редактиране на профил",
"navbar_logout": "Излизане",
"navbar_new": "Ново",
"navbar_theme": "Тема",
"settings_icon_desc": "Задайте персонализирана икона. Поддържани типове файлове:",
"settings_icon_title": "Икона",
"settings_invalid_cron": "❌ Невалиден cron синтаксис",
"settings_invalid_fqdnip": "❌ Невалиден FQDN/IPv4 адрес",
"settings_lazy_ping_desc": "Когато „мързелив ping“ е активиран, UpSnap ще ping-ва устройства само когато потребител действително посети сайта. Ако е деактивиран, UpSnap винаги ще ping-ва.",
"settings_lazy_ping_enable": "Активиране",
"settings_lazy_ping_title": "Мързелив ping",
"settings_page_title": "Настройки",
"settings_ping_interval_desc1": "Задава интервала, през който устройствата се ping-ват. Оставете празно, за да запазите стойността по подразбиране: <span class=\"badge\">*/3 * * * * *</span>.",
"settings_ping_interval_desc2": "Научете повече за правилния синтаксис на cron в <a class=\"link\" href=\"https://en.wikipedia.org/wiki/Cron\" target=\"_blank\">Уикипедия</a> или вижте <a class=\"link\" href=\"https://github.com/harrisiirak/cron-parser\" target=\"_blank\">документацията на пакета</a>.",
"settings_ping_interval_title": "Ping интервал",
"settings_upsnap_version": "UpSnap версия",
"settings_website_title_desc": "Задава името на уебсайта и таб на браузъра.",
"settings_website_title_title": "Име на сайта",
"toasts_admin_saved": "Администраторът е запазен",
"toasts_device_created": "Създадено устройство {device}",
"toasts_device_deleted": "Изтрито устройство {device}",
"toasts_device_updated": "Обновено устройство {device}",
"toasts_devices_created_multiple": "Създадени {count} устройства",
"toasts_group_created": "Създадена група {group}",
"toasts_group_deleted": "Изтрита група {group}",
"toasts_no_permission": "Нямате необходимите права за посещение на {url}",
"toasts_password_changed": "Паролата е променена. Моля, влезте отново.",
"toasts_passwords_missmatch": "Паролите не съвпадат",
"toasts_permissions_created": "Правата за потребител {username} са създадени",
"toasts_permissions_deleted": "Правата за потребител {username} са изтрити",
"toasts_permissions_updated": "Правата за потребител {username} са обновени",
"toasts_permissions_updated_personal": "Вашите права са обновени",
"toasts_settings_saved": "Настройките са запазени",
"toasts_user_created": "Потребител {username} е създаден",
"toasts_user_deleted": "Потребител {username} е изтрит",
"toasts_user_saved": "Потребителят е запазен",
"users_allow_create_devices": "Разрешаване на {username} да добавя устройства и да редактира групите с устройства",
"users_confirm_delete_desc": "Сигурни ли сте, че искате на изтриете {username}?",
"users_confirm_delete_title": "Потвърждаване на изтриване",
"users_create_new_device": "Създаване на ново устройство",
"users_create_new_user": "Създаване на нов потребител",
"users_delete": "Изтриване",
"users_device_permissions": "Права за устройства",
"users_page_title": "Потребители",
"users_password": "Парола",
"users_password_confirm": "Потвърждение на парола",
"users_power": "Включване",
"users_read": "Преглеждане",
"users_required_field": "задължително поле",
"users_toggle": "Обръщане",
"users_update": "Обновяване",
"users_username": "Потребителско име",
"welcome_btn_done": "Готово",
"welcome_desc": "Проверете журналите на конзолата на сървъра за връзка за създаване на началния акаунт на суперпотребител. След като създадете суперпотребителя, върнете се тук.",
"welcome_not_ready": "Все още не е намерен суперпотребител. Моля, завършете първо настройката.",
"welcome_title": "Необходима е начална настройка"
}
+204
View File
@@ -0,0 +1,204 @@
{
"$schema": "https://inlang.com/schema/inlang-message-format",
"logs_filters": "Filtry",
"logs_column_data": "Podrobnosti",
"logs_column_level": "Úroveň",
"logs_column_message": "Zpráva",
"logs_column_time": "Čas",
"logs_empty": "Žádné záznamy neodpovídají tomuto filtru.",
"logs_upsnap_logs": "Záznamy UpSnap",
"logs_only": "Pouze",
"logs_level_all": "Všechny úrovně",
"logs_next": "Další",
"logs_off": "Vypnuto",
"logs_page_size": "Řádků na stránku",
"logs_page_title": "Záznamy",
"logs_previous": "Předchozí",
"logs_refresh": "Obnovit",
"logs_refresh_failed": "Nelze načíst záznamy: {message}",
"logs_refreshed_at": "Aktualizováno {time}",
"logs_search_placeholder": "Hledat v záznamech",
"logs_seconds": "{seconds} sekund",
"account_account_type_admin": "Administrátor",
"account_account_type_user": "Uživatel",
"account_avatar_title": "Avatar",
"account_change_password_body": "Po změně hesla se budete muset znovu přihlásit.",
"account_change_password_confirm": "Potvrzení hesla",
"account_change_password_label": "Staré heslo",
"account_change_password_new": "Nové heslo",
"account_change_password_title": "Změna hesla",
"account_language_title": "Jazyk",
"account_page_title": "Účet",
"buttons_add": "Přidat",
"buttons_cancel": "Zrušit",
"buttons_change": "Změnit",
"buttons_confirm": "Potvrdit",
"buttons_delete": "Smazat",
"buttons_reset": "Reset",
"buttons_save": "Uložit",
"device_card_btn_more": "Více",
"device_card_btn_more_edit": "Změnit",
"device_card_btn_more_reboot": "Restartovat",
"device_card_btn_more_sleep": "Uspat",
"device_card_nic_tooltip_pending": "Čeká na vyřízení",
"device_card_nic_tooltip_power": "Zapnout",
"device_card_nic_tooltip_power_no_permission": "Nemáte oprávnění k zapnutí tohoto zařízení",
"device_card_nic_tooltip_shutdown": "Vypnout",
"device_card_nic_tooltip_shutdown_no_cmd": "Není nastaven žádný příkaz k vypnutí",
"device_card_nic_tooltip_shutdown_no_permission": "Nemáte opránění pro vypnutí tohoto zařízení",
"device_card_password": "Heslo",
"device_card_tooltip_last_status_change": "Poslední změna stavu",
"device_card_tooltip_shutdown_cron": "Cron pro vypnutí",
"device_card_tooltip_wake_cron": "Cron pro probuzení",
"device_card_tooltip_wake_password": "Heslo pro probuzení",
"device_general": "Obecné",
"device_general_description": "Popisek",
"device_general_description_placeholder": "Stručný popis zařízení",
"device_general_ip": "IP/FQDN",
"device_general_mac": "MAC",
"device_general_name": "Jméno",
"device_general_netmask": "Síťová maska",
"device_general_required_field": "povinné pole",
"device_groups": "Skupiny",
"device_groups_desc": "Zařízení můžete přidat do skupiny, aby byla na ovládacím panelu seřazena podle skupin.",
"device_groups_placeholder": "např. 'Přízemí' nebo 'Kancelář'",
"device_link": "Odkaz",
"device_link_desc": "Umožňuje vytvořit z názvu zařízení klikatelný odkaz, což je ideální například pro propojení s ovládacím panelem.",
"device_link_open": "Automaticky otevřít odkaz",
"device_link_open_new_tab": "Nová záložka",
"device_link_open_no": "Ne",
"device_link_open_same_tab": "Stejná záložka",
"device_modal_confirm_shutdown_desc": "Prosím potvrďte vypnutí zařízení {device}.",
"device_modal_confirm_shutdown_title": "Vypnout {device}?",
"device_modal_confirm_wake_desc": "Prosím potvrďte probuzení zařízení {device}.",
"device_modal_confirm_wake_title": "Probudit {device}?",
"device_network_scan": "Skenovat",
"device_network_scan_add_all": "Přidat všechna zařízení",
"device_network_scan_desc": "Automaticky prohledávejte síť pro zařízení. Aby to fungovalo, musíte spustit UpSnap jako root/admin a mít nmap nainstalovaný a dostupný ve vašem $PATH (pro uživatele Dockeru je to již splněno a nemusíte nic dělat). Prohledávání může trvat několik sekund.",
"device_network_scan_include_unknown": "Zahrnout zařízení, jejichž název je \"Neznámé\"",
"device_network_scan_ip": "IP:",
"device_network_scan_ip_range": "IP rozsah",
"device_network_scan_mac": "MAC:",
"device_network_scan_mac_vendor": "Výrobce dle MAC:",
"device_network_scan_netmask": "Síťová maska:",
"device_network_scan_new_netmask": "Nová síťová maska",
"device_network_scan_no_range": "Žádný rozsah skenování",
"device_network_scan_range_saved": "Rozsah skenování uložen",
"device_network_scan_replace_netmask": "Nahradit síťovou masku pro všechna zařízení?",
"device_network_scan_running": "Sken běží",
"device_network_scan_unsaved_changes": "Neuložené změny",
"device_page_title": "Nové zařízení",
"device_password": "Heslo",
"device_password_desc": "Některé síťové karty mají možnost nastavit heslo pro magické pakety, také nazývané <span class=\"badge\">SecureON</span>. Heslo může mít pouze 0, 4 nebo 6 znaků.",
"device_ping": "Ping",
"device_ping_cmd": "Vlastní příkaz pro ping",
"device_ping_desc": "Pomocí vlastního příkazu shellu můžete zjistit, zda je zařízení zapnuté. Příkaz by měl vrátit výstupní kód <span class=\"badge\">0</span>, který označuje, že zařízení je zapnuté. Jakýkoli jiný výstupní kód označí zařízení jako vypnuté.",
"device_ports": "Porty",
"device_ports_add_new": "Přidat nový port",
"device_ports_desc": "UpSnap může také zkontrolovat, zda jsou dané porty otevřené.",
"device_ports_name": "Jméno",
"device_ports_number": "Číslo",
"device_require_confirmation": "Vyžaduje potvrzení",
"device_shutdown": "Vypnout",
"device_shutdown_cmd": "Příkaz pro vypnutí",
"device_shutdown_cron": "Cron pro vypnutí",
"device_shutdown_cron_desc": "Stejně jako nastavení cronu pro probuzení zařízení můžete také naplánovat cron úlohu pro vypnutí tohoto zařízení.",
"device_shutdown_cron_enable": "Povolit cron pro vypnutí",
"device_shutdown_desc": "Tento <strong>příkaz shellu</strong> se spustí uvnitř vašeho kontejneru (pokud používáte Docker) nebo na vašem hostiteli (pokud používáte binární soubor). Chcete-li ověřit, že funguje, můžete nejprve spustit příkaz uvnitř kontejneru nebo na shellu hostitele. Běžné příkazy jsou <span class=\"badge\">net rpc</span> pro Windows, <span class=\"badge\">sshpass</span> pro Linux nebo obecně <span class=\"badge\">curl</span> pro vytváření webových požadavků. <span class=\"badge\">\\{\\{ DEVICE_IP \\}\\}</span> a <span class=\"badge\">\\{\\{ DEVICE_MAC \\}\\}</span> lze použít pro automatické nahrazení skutečných IP a MAC adres.",
"device_shutdown_examples": "Příklady:",
"device_shutdown_examples_linux": "Vypnout vzdálený stroj s Linuxem:",
"device_shutdown_examples_windows": "Vypnout vzdálený stroj s Windows:",
"device_shutdown_timeout": "Časový limit pro vypnutí (v sekundách)",
"device_sol": "Sleep-On-LAN",
"device_sol_authorization": "Autorizace",
"device_sol_desc1": "Počítače můžete uvést do režimu spánku pomocí nástroje <a class=\"link\" href=\"https://github.com/SR-G/sleep-on-lan\" target=\"_blank\">Sleep-On-LAN</a>. Sleep-On-LAN (SOL) je externí nástroj/daemon, který funguje na počítačích, které chcete uvést do režimu spánku, a poskytuje koncový bod REST. Pokyny k nastavení Sleep-On-LAN naleznete v části <a href=\"https://github.com/SR-G/sleep-on-lan#usage\" class=\"link\" target=\"_blank\">Použití</a>.",
"device_sol_desc2": "SOL je nakonfigurován tak, aby odesílal požadavky přes HTTP namísto UDP, aby umožnil autorizaci a zvýšil spolehlivost požadavků.",
"device_sol_desc3": "Proto se ujistěte, že jste do sekce <span class=\"badge\">Listeners</span> v <a href=\"https://github.com/SR-G/sleep-on-lan#configuration\" class=\"link\" target=\"_blank\">konfiguraci SOL</a> zahrnuli <span class=\"badge\">HTTP:&lt;YOURPORT&gt;</span>.",
"device_sol_enable": "Povolit Sleep-On-LAN",
"device_sol_password": "SOL Heslo",
"device_sol_port": "SOL Port",
"device_sol_user": "SOL Uživatel",
"device_tabs_0": "Ruční",
"device_tabs_1": "Síťový sken",
"device_wake": "Probudit",
"device_wake_cmd": "Vlastní příkaz pro probuzení",
"device_wake_cron": "Cron pro probuzení",
"device_wake_cron_enable": "Povolit cron pro probuzení",
"device_wake_desc": "Toto zařízení můžete zapnout pomocí naplánované cron úlohy. <span class=\"badge\">\\{\\{ DEVICE_IP \\}\\}</span> a <span class=\"badge\">\\{\\{ DEVICE_MAC \\}\\}</span> lze použít pro automatické nahrazení skutečných IP a MAC adres.",
"device_wake_timeout": "Časový limit pto probuzení (v sekundách)",
"home_add_first_device": "Přidat vaše první zařízení",
"home_grant_permissions": "Požádejte správce, aby vám udělil oprávnění k existujícím zařízením nebo vytvořil nová.",
"home_modal_confirm_shutdown_group_desc": "Potvrďte vypnutí všech zařízení ve skupině {group}.",
"home_modal_confirm_shutdown_group_title": "Vypnout {group}?",
"home_no_devices": "Nejsou zde žádná zařízení",
"home_order_groups": "Skupiny",
"home_order_ip": "IP",
"home_order_name": "Jméno",
"home_order_tooltip": "Pořadí",
"home_page_title": "Domů",
"home_search_placeholder": "Vyhledat zařízení",
"home_shutdown_group": "Skupiny vypnutí",
"home_wake_group": "Skupiny pro probuzení",
"login_btn_login": "Přihlásit se",
"login_btn_more": "Více",
"login_email_label": "E-mailová adresa nebo uživatelské jméno:",
"login_menu_title_auth_providers": "Ostatní poskytovatelé ověřování",
"login_password_label": "Heslo:",
"login_welcome": "Vítejte",
"navbar_edit_account": "Upravit účet",
"navbar_logout": "Odhlásit se",
"navbar_new": "Nové",
"navbar_theme": "Téma",
"settings_icon_desc": "Nastavit vlastní ikonu. Podporované typy souborů jsou:",
"settings_icon_title": "Ikona",
"settings_invalid_cron": "❌ Neplatná syntaxe cronu",
"settings_invalid_fqdnip": "❌ Neplatná adresa FQDN/IPv4",
"settings_lazy_ping_desc": "Když je funkce líného pingu zapnutá, UpSnap bude pingovat zařízení pouze v případě, že web navštíví aktivní uživatel. Pokud je tato funkce vypnutá, UpSnap bude pingovat zařízení vždy.",
"settings_lazy_ping_enable": "Povolit",
"settings_lazy_ping_title": "Líný ping",
"settings_page_title": "Nastavení",
"settings_ping_interval_desc1": "Nastavuje interval, ve kterém jsou zařízení pingována. Nechte pole prázdné, pokud chcete použít výchozí hodnotu <span class=\"badge\">*/3 * * * * *</span>.",
"settings_ping_interval_desc2": "Více informací o správné syntaxi pro cron najdete na <a class=\"link\" href=\"https://en.wikipedia.org/wiki/Cron\" target=\"_blank\">Wikipedii</a> nebo v <a class=\"link\" href=\"https://github.com/harrisiirak/cron-parser\" target=\"_blank\">dokumentaci k balíčku</a>.",
"settings_ping_interval_title": "Ping interval",
"settings_upsnap_version": "UpSnap verze",
"settings_website_title_desc": "Nastaví jméno webové stránky a záložky prohlížeče.",
"settings_website_title_title": "Jméno webové stránky",
"toasts_admin_saved": "Admin uložen",
"toasts_device_created": "Vytvořeno {device}",
"toasts_device_deleted": "Smazáno {device}",
"toasts_device_updated": "Změněno {device}",
"toasts_devices_created_multiple": "Vytvořeno {count} zařízení",
"toasts_group_created": "Vytvořit skupimu {group}",
"toasts_group_deleted": "Smazat skupinu {group}",
"toasts_no_permission": "Nemáte oprávnění pro navštívění {url}",
"toasts_password_changed": "Heslo změněno. Znovu se prosím přihlašte.",
"toasts_passwords_missmatch": "Hesla se neshodují",
"toasts_permissions_created": "Oprávnění pro {username} byla vytvořena",
"toasts_permissions_deleted": "Oprávnění pro {username} byla smazána",
"toasts_permissions_updated": "Oprávnění pro {username} byla změněna",
"toasts_permissions_updated_personal": "Vaše oprávnění byla změměna",
"toasts_settings_saved": "Uložit nastavení",
"toasts_user_created": "Uživatel {username} vytvořen",
"toasts_user_deleted": "Uživatel {username} smazán",
"toasts_user_saved": "Uživatel uložen",
"users_allow_create_devices": "Povolit {username} vytváření nových zařízení a upravovat skupiny zařízení",
"users_confirm_delete_desc": "Jste si jistí, že chcete smazat {username}?",
"users_confirm_delete_title": "Potvrdit smazání",
"users_create_new_device": "Vytvořit nové zařízení",
"users_create_new_user": "Vytvořit nového uživatele",
"users_delete": "Smazat",
"users_device_permissions": "Oprávnění zařízení",
"users_page_title": "Uživatelé",
"users_password": "Heslo",
"users_password_confirm": "Potvrzení hesla",
"users_power": "Napájení",
"users_read": "Čtení",
"users_required_field": "povinné pole",
"users_toggle": "Přepnout",
"users_update": "Změna",
"users_username": "Uživatelské jméno",
"welcome_btn_done": "Hotovo",
"welcome_desc": "Zkontrolujte protokoly konzole serveru pro odkaz k vytvoření počátečního účtu superuživatele. Jakmile vytvoříte superuživatele, vraťte se sem.",
"welcome_not_ready": "Zatím nebyl nalezen žádný superuživatel. Nejprve dokončete nastavení.",
"welcome_title": "Vyžaduje se počáteční nastavení"
}

Some files were not shown because too many files have changed in this diff Show More