1587 Commits

Author SHA1 Message Date
Maxi Quoß 14b9e031d5 update deps, migrate pocketbase to ganigeorgiev.com/pocketbase 2026-11-06 21:12:18 +01:00
Maxi Quoß 6a8bbb4525 fix: authStore clear for non superusers, close #1774 2026-09-26 10:47:13 +02:00
Maxi Quoß 2c244beaaa update deps 2026-09-17 22:25:11 +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ß 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
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ß 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
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ß 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
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ß 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
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
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
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
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
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
Maxi Quoß 3caa62b609 fix: frontend error when devices share same mac address, close #1702 2026-03-17 09:15:56 +01:00