Commit Graph

21 Commits

Author SHA1 Message Date
Tim Wilkinson f94ab2e2a1
Fix three-arg version of uci.delete (#1680) 2024-11-07 20:32:51 -08:00
Tim Wilkinson a814f8b0ac
Add locking around operations which change the configuration. (#1644)
* Add locking around operations which change the configuration.
Avoid any potential race conditions when changing the configuration
by putting a lock around any non-GET operations.

* Add a sync before a 'reboot' operation
2024-10-23 18:32:48 -07:00
Tim Wilkinson 61eca9449c
Use new ucode zlib library (#1629) 2024-10-14 09:47:18 -07:00
Tim Wilkinson 787ad11421
Remove special casing for /a/authenticate page (#1619) 2024-10-11 15:16:11 -07:00
Tim Wilkinson 651ccfb603
Mobile layout work (1) (#1603)
* Mobile layout work

* Title bar

* Test dialogs

* Login/logout

* Mobile formatting

* More space in dialogs

* Mesh page

* Deselect keyboard

* Mobile formatting

* More field changes
2024-10-09 18:00:08 -07:00
Tim Wilkinson 4e196969d7
Nightly build fixes 20241009 (#1613)
* Nightly build fixes.
Restarting the nightly build with many changes resulted in updates
failing to be applied on some hardware platforms. This resulted in nodes
reverting to first use state. These changes fixes those problems.

* Fix authentication
2024-10-09 14:45:37 -07:00
Tim Wilkinson 976c3ec1e1
Improve initial node setup (#1590)
* Improve the initial nrvam setup

* More fallbacks

* Rebuild the initial setup and upgrade of a node.
This is mostly about removing duplicated effort and data, which should
make it easier to add things in the future.

* Re-setup and repair the node on each reboot.
By running this every time we reboot, we have a chance to repair problems in the configuration
automatically. We can detect changes and force a reboot only when necessary.

* Improve startup and upgrade

* Remove debug delays

* Move after telnet (for emergency access)

* Ignore ubootenv file when diffing
2024-10-08 21:08:01 -07:00
Tim Wilkinson e95e4d996d
Redirect localnode to actual hostname (better logged-in behavior) (#1599)
* Redirect localnode to actual hostname (better logged-in behaviour)

* Avoid redirect when boosting
2024-10-08 20:59:59 -07:00
Tim Wilkinson 97ee93e8f0
Block PUT, POST, DELETE unless logged in or firstboot. (#1582)
While there are other mechanisms to prevent you accessing secure
pages, it does no harm to block these actions early as an extra
security measure.
2024-10-08 20:59:44 -07:00
Tim Wilkinson 39981bc331
Preloading too much seems to be causing stability issue. (#1564)
Reduce to just the essentials for most visitors
2024-09-22 17:41:29 -07:00
Tim Wilkinson 0e1ac3ac16
Handle uci intergers (#1563) 2024-09-22 17:34:05 -07:00
Tim Wilkinson 5b80ae8adc
Fix validation setting uci arrays (#1561) 2024-09-22 16:58:09 -07:00
Tim Wilkinson 1525783d5c
Add a 'starting up' install screen for when system isnt quite ready (#1555) 2024-09-21 09:50:55 -07:00
Tim Wilkinson 8c7c413938
Improve when compression is used on http requests (#1515)
* Improve when compression is used on http requests

* Improve
2024-09-16 18:11:31 -07:00
Tim Wilkinson 0cb8138250
Improve portable themes (#1470) 2024-09-07 09:40:34 -07:00
Tim Wilkinson 988b8165b3
Prevent newlines from being store in configs (#1464) 2024-09-06 10:32:23 -07:00
Tim Wilkinson f5ef0ecd7b
Prevent any problematic character being stored in /etc/config and /etc/config.mesh (#1463)
* Remove any problematic character being stored in our config files.
Any specific escaping needs to take place in context. This just
stops them becoming a problem.
2024-09-05 18:24:58 -07:00
Tim Wilkinson 1b6a5ae1ed
Fix themes and resource caching (#1443)
* Fix themes

* Meshpage resource namechange
2024-09-01 21:25:31 -07:00
Tim Wilkinson a5ad4aeefd
Add favicon (#1367) 2024-08-22 16:31:06 -07:00
Tim Wilkinson 11452c9e4b
Lockdown first usage pages. (#1342)
Unless device is unconfigured, dont let the first use pages do anything.
2024-08-21 00:47:17 -07:00
Tim Wilkinson 0432bf3165
New UI (#1263)
* New UI

* Fix gzip filename race condition

* Fix scrolling on first use page
2024-08-15 20:28:45 -07:00