17921 Commits

Author SHA1 Message Date
Franco Fichtner
2842e1bee7 interfaces: style sweep 2025-02-18 13:49:54 +01:00
Franco Fichtner
4a2f273c45 mvc: use fa-fw for consistency
fixed-width ensures the buttons will have the same width across all icons
since they do not enforce their width as mono-space.
2025-02-18 10:18:56 +01:00
Franco Fichtner
d4d9b3f2e5 interfaces: reorder the reconfigure logic for compactness and robustness
This was steered by the need to let 'other' mode VIPs not cause any
regression with the other logic so now we only have one clear spot and
reload condition and ignore unknown modes gracefully.
2025-02-18 08:26:50 +01:00
Ad Schellevis
8e0461c9d6 theme/opnsense-dark - change backdrop background color to black, closes https://github.com/opnsense/core/issues/8339 2025-02-17 18:25:06 +01:00
Franco Fichtner
98ec4a91bc mvc: probably this for previous 2025-02-17 18:06:59 +01:00
Stephan de Wit
bab1d3b176 wireguard: diagnostics: typo 2025-02-17 16:59:14 +01:00
Stephan de Wit
146f8573ea system: high availability: move 'disable preempt' to advanced mode 2025-02-17 16:55:43 +01:00
Ad Schellevis
ccb3c92f52 mvc:ApiMutableModelControllerBase - wrap locks around updates and perform some minor cleanups.
delBase() already added a lock, but in practice, when automation is in play, there's a risk for other updates as well, which means we need to synchronize them to avoid data being lost.
2025-02-17 15:19:26 +01:00
Monviech
c689c7e25b
interface: Integrate base_bootgrid_table and base_apply_button (#8257)
* interface: gif.volt - Integrate layout_partials/base_bootgrid_table

* interface: gre.volt - Integrate layout_partials/base_bootgrid_table

* interface: lagg.volt - Integrate layout_partials/base_bootgrid_table

* interface: loopback.volt - Integrate layout_partials/base_bootgrid_table

* interface: neighbor.volt - Integrate layout_partials/base_bootgrid_table

* interface: vip.volt - Integrate layout_partials/base_bootgrid_table

* interface: vlan.volt - Integrate layout_partials/base_bootgrid_table

* interface: vxlan.volt - Integrate layout_partials/base_bootgrid_table

* interface: Change location of Configuration Change Message above Apply

* interface: Fix search base so all grid columns are populated with data

* interface: Integrate layout_partials/base_apply_button https://github.com/opnsense/core/issues/8284

* interface: Missed a spot

* interface: Do not render VHID group password in grid

* interface: vip.volt adjust view more to look like the previous grid

* interface: vip.volt add network formatter, remove vhid formatter since these fields are now displayed by default as separate rows

* interface: loopback.volt add loFormatter to turn device ID into loX in the grid

* interface: vxlan.volt add vxlanFormatter to turn device ID into vxlanX in the grid
2025-02-17 15:14:03 +01:00
Franco Fichtner
83d1565133 reporting: remove $unused for 25.7 2025-02-17 15:02:29 +01:00
Franco Fichtner
37e3ee0c7e system: sort tunable defaults 2025-02-17 13:48:24 +01:00
Franco Fichtner
30ff38a04f system: remove service hook from gateway groups page
It's not in the right place and restart doesn't even work.
2025-02-17 12:30:38 +01:00
Franco Fichtner
6d444663a2 plugins: move a comment 2025-02-17 12:26:14 +01:00
Franco Fichtner
b02e86d488 www: replace this legacy hook with a proper configd call 2025-02-17 12:11:32 +01:00
Franco Fichtner
40ae978391 interfaces: remove defunct "other" VIP type 2025-02-17 10:52:53 +01:00
Franco Fichtner
9943ba0fcb interfaces: improve validation for CARP/proxy ARP VIP; closes #7005 2025-02-17 10:44:07 +01:00
Ad Schellevis
b52ce9da7b Firewall: Rules - limit number of sources/destinations, closes https://github.com/opnsense/core/issues/8334 2025-02-17 08:38:19 +01:00
Ad Schellevis
8a9fe288c3 Services: Kea DHCP - minor regression in https://github.com/opnsense/core/pull/8297, button hidden due to undersized column.
Implements d192142544 to increase the command column width.

cc @Monviech
2025-02-16 12:10:26 +01:00
Ad Schellevis
fe91dd36dd MVC - make importCsv() [importRecordSet()] a bit more resilient by ignoring fields we don't know of propertly 2025-02-15 18:14:34 +01:00
Ad Schellevis
d192142544 mvc: implement reusable grid template using form definitions. for https://github.com/opnsense/core/issues/8187
offer "command_width" property to be set in the template, defaults to 7em
2025-02-15 17:47:35 +01:00
Ad Schellevis
0063b16b3e dnsmasq: migrate to MVC/API, make sure service is reachable when still running and disabled so we can kill it, although not a new issue, better fix it for https://github.com/opnsense/core/issues/7905 2025-02-15 16:47:31 +01:00
Ad Schellevis
d620298cbe dnsmasq: migrate to MVC/API, forgot an isset() --> !empty() in https://github.com/opnsense/core/issues/7905 2025-02-15 16:37:21 +01:00
Franco Fichtner
8f42727e7b src: style sweep 2025-02-14 15:22:54 +01:00
Stephan de Wit
582f9b5505 dashboard: thermal sensors: use configured dataset count as height 2025-02-14 14:00:39 +01:00
Franco Fichtner
c5eed0141a
system: thermal sensors widget improvements (#8331)
* system: thermal sensors improvements

* dashboard: thermal sensors: improve UI

* dashboard: thermal sensors: rendered text slightly off-center

* system: fix off by one ;)

---------

Co-authored-by: Stephan de Wit <stephan.de.wit@deciso.com>
2025-02-14 13:54:30 +01:00
Stephan de Wit
8246433548 dashboard: colorscheme plugin is forced by default unless explicitly disabled 2025-02-14 13:50:03 +01:00
Franco Fichtner
45be6d3981 system: dial this back, right intention wrong reason #8199 2025-02-14 12:30:05 +01:00
Franco Fichtner
e28aa1ab01 system: oversighs in #8199 2025-02-14 12:15:12 +01:00
Stephan de Wit
aaebe4e9b7 dashboard: block display interferes with responsive layouts
chart.js canvas elements default their display to block, which can
cause sub-pixel rounding errors, in turn causing flickering when
the canvas element is interacted with (reproducible on Firefox).

'display: inline-block' fixes this, and while one could specify this
in css, this would have to be combined with !important, as the style
ordering prefers styles either set hardcoded inline or via JS. This
has the obvious downside that a canvas element cannot be hidden anymore,
as it's display setting would always be forced.

The only solution in terms of ordering is to override the inline style
by setting it in the canvas element directly as this commit is doing.

All canvas elements used by widgets which fit the following criteria
must use this inline style:

- a canvas element is used by chart.js
- said canvas lives in a responsive container
- the chart must be resizable in height, which requires the 'canvas-container'
  parent element.
2025-02-14 11:28:08 +01:00
Franco Fichtner
af235daa43 system: change the "monitor" syshook and de-deprecate; closese #8199
We move the gateway recovery into the hook as a user and users
can do their on similar scripts to fetch current status and
inspect and react accordingly.  We do so before filter reload
to avoid excessive reloads in the facility script(s).

What this loses is the ability to get the previous argments
for statistics, but OTOH it also reduces the risk for spurious
events as we only trigger on state transitions.
2025-02-14 11:10:42 +01:00
Franco Fichtner
11b7ca4d01 system: add an "import" syshook; closes #8325
Allow import hooks to be overwritten or manipulated.
No functional changes but it allows to bootstrap a
/conf/config.xml before opnsense-importer (making it
skip import) or modifying the imported /conf/config.xml
afterwards.
2025-02-14 10:46:20 +01:00
Stephan de Wit
08718088ba system: update Chart.js to 4.4.7 2025-02-14 10:27:41 +01:00
Franco Fichtner
d55c52d422 system: remove sysctls from ACL test
I think I could have done this before.  We don't need historic artefacts
in a config.xml copy that doesn't do anything with it (nor need it in any
way).
2025-02-14 09:16:18 +01:00
Franco Fichtner
cde5b0d685 system: unused default since 5bb73b120ba
It's optional so only enforced when we had to employ that
particular workaround.  Eventually we will jus tremove it.
2025-02-14 09:11:12 +01:00
Franco Fichtner
bf67f2b591 system: a few more #7440
Leave vm.pmap.pti and hw.ibrs_disable im the sysctl tag for legacy
reasons at the moment keeping their "optional" status.
2025-02-14 09:08:27 +01:00
Franco Fichtner
6a48c7f34a system: and another one for #7440 2025-02-14 09:00:15 +01:00
Franco Fichtner
6cae0ba7bb system: more for #7440 2025-02-14 08:43:17 +01:00
Franco Fichtner
206c57b39d system: flip defaults for registered sysctls #7440
Require all except when 'optional' is set.   Most will be required.
The ones that are not are probably old cruft.
2025-02-14 08:35:13 +01:00
Franco Fichtner
b4b0ce46e6 system: more for #7440 2025-02-14 08:25:46 +01:00
Franco Fichtner
8220db412c system: squelch 'cannot forward' message by default
PR: https://www.reddit.com/r/opnsense/comments/1inr63v/comment/mckfzsh/?context=3
2025-02-13 17:15:39 +01:00
Stephan de Wit
4d71586539 dashboard: gateways: cached gateways were unused, fix UI as well 2025-02-13 13:20:39 +01:00
Joe Roback
e511d52e95
Handle dev.pchtherm temperatures in the thermal dashboard widget (#8062) 2025-02-13 11:32:51 +01:00
Ad Schellevis
cc16ba7b33 VPN: OpenVPN - Support "password first" for static-challenges, closes https://github.com/opnsense/core/pull/8058 2025-02-12 21:12:14 +01:00
Ad Schellevis
e248e4517f Firewall: Rules - properly unpack multiple source/destination items. closes https://github.com/opnsense/core/issues/8321 2025-02-12 18:57:52 +01:00
Ad Schellevis
7fd17d527d Firewall: Rules - hide internal aliases to align with previous legacy_list_aliases() function. closes https://github.com/opnsense/core/issues/8322 2025-02-12 18:39:49 +01:00
Stephan de Wit
c8173dddda dashboard: compile sass for d988511b7e 2025-02-12 16:45:49 +01:00
Stephan de Wit
d988511b7e dashboard: adjust CSS for chart.js v4
continuation of d752050a11

aspect-ratio introduced visual artifacts with dead space when resizing
widgets.
2025-02-12 16:10:29 +01:00
Ad Schellevis
09eba5d82f Firewall: Aliases: support partial alias exports, closes https://github.com/opnsense/core/issues/8320
Pass selected items to export button and filter results, while here, also pretty-print the results so their easier to inspect locally.
2025-02-12 15:39:47 +01:00
Ad Schellevis
a3d588cca2 Services: Captive Portal: Vouchers - urlencode() selector items in vouchergrouplist, closes https://github.com/opnsense/core/issues/8319
Although this isn't the prettiest option in the world, it does solve the issue. It would have been better if we had "keyed" the items in some way so input is less sensitive for issues like these
2025-02-12 14:48:05 +01:00
Franco Fichtner
f1f87d134b openvpn: remove the old wizard
As discussed the wizard will be removed and the legacy component
it is feeding moved to a plugin for 25.7 so it makes no sense to
drag this along any further.
2025-02-12 12:18:05 +01:00