16959 Commits

Author SHA1 Message Date
Ad Schellevis
cff24b7a8a Squashed commit of the following:
commit 0c60937253296d81c68d8cde50df6fd8fbe21442
Author: Stephan de Wit <stephan.de.wit@deciso.com>
Date:   Mon Jul 1 15:00:43 2024 +0200

    dashboard: remove old widgets

commit 7a58bc05871388225412fa87bcc816aadf03237e
Author: Stephan de Wit <stephan.de.wit@deciso.com>
Date:   Mon Jul 1 14:57:33 2024 +0200

    Dashboard: match ACLs with implied pages and restructure system controller layer

commit 65e97442d57eeb6fb0c714b4493c4667d76ac8b0
Author: Stephan de Wit <stephan.de.wit@deciso.com>
Date:   Thu Jun 27 16:42:25 2024 +0200

    dashboard: update ACLs

commit e54a5b82b1f46158760346c45a4e80c5aaa182bf
Author: Stephan de Wit <stephan.de.wit@deciso.com>
Date:   Fri Jun 14 16:25:40 2024 +0200

    dashboard: VisibleName not necessary anymore

commit fc45589318a98315e93399575a67de368be01353
Author: Stephan de Wit <stephan.de.wit@deciso.com>
Date:   Fri Jun 14 16:15:06 2024 +0200

    dashboard: fix ACLs

commit 01f8e1c3e1357c61ed7e2db03fa5488d05535773
Author: Stephan de Wit <stephan.de.wit@deciso.com>
Date:   Fri Jun 14 14:03:30 2024 +0200

    dashboard: initial cleanup code
2024-07-07 11:26:09 +02:00
Ad Schellevis
f587c307e3 Reporting: NetFlow - add IPv6 support for destinations, closes https://github.com/opnsense/core/issues/7600 2024-07-06 09:56:19 +02:00
Stephan de Wit
706670036d fix plist 2024-07-05 15:11:46 +02:00
Stephan de Wit
35f5587b53 dashboard: add services widget 2024-07-05 15:10:11 +02:00
Stephan de Wit
37986490dc openvpn: fix php warning 2024-07-05 11:18:17 +02:00
Stephan de Wit
de0d4f08e1 dashboard: add retry mechanism for EventSource as well 2024-07-05 10:59:20 +02:00
Stephan de Wit
d042a4800d dashboard: change data fetch in wireguard widget 2024-07-05 10:24:17 +02:00
Stephan de Wit
dd0594ae3f dashboard: simplify error handling and introduce retry mechanism for timed out requests
Due to the volume of requests being fired, either the browser or server will introduce
some limitation somewhere that cannot easily be trapped, as a result, widgets
were being loaded inconsistently.
The way forward is to use the $.ajax timeout feature that allows requests
to be cancelled if queued up indefinitely by the browser. Due to the way this
generic new ajaxGet function is wrapped by a Promise, we don't have to add
error handling unless we wish to override it. The widget manager will take
care of failed promises both during load and during the tick routine.
2024-07-05 10:00:33 +02:00
Ad Schellevis
354e09ccb8 Lobby: Dashboard - work in progress for Wireguard widget (https://github.com/opnsense/core/issues/7244), typo in previous 2024-07-05 08:28:39 +02:00
Ad Schellevis
9c16e16d8f fix plist 2024-07-04 22:22:10 +02:00
Ad Schellevis
98dcf6f5b2 Lobby: Dashboard - work in progress for Wireguard widget (https://github.com/opnsense/core/issues/7244)
Add basic structure, but needs further formatting.
2024-07-04 22:20:29 +02:00
Jason Fayre
d82d17044e
MVC: add aria-label attributes to form input fields template (#7593)
* added aria-label attributes to form input field template

* MVC: fixed aria-label attributes to add safe
2024-07-04 19:07:19 +02:00
Ad Schellevis
82085173b8 contrib - bootstrap-dialog.js : remove aria-hidden="true" for screenreaders. For https://github.com/opnsense/core/issues/7590 (minify cf6359c8a3) 2024-07-04 08:50:44 +02:00
Stephan de Wit
2296c2f5ea dashboard: change tickTimeout to seconds and minor cleanup 2024-07-04 08:47:35 +02:00
Ad Schellevis
6e409a0a2f System: Log Files: Boot - empty log view due to minor regression in c522ecac65 2024-07-03 18:23:26 +02:00
Ad Schellevis
9d6d7f7003 mvc:request - add getQuery() to Request class and unify similar methods to use the same boilerplate. closes https://github.com/opnsense/core/pull/7594 2024-07-03 18:00:26 +02:00
Stephan de Wit
76ce0f431b dashboard: fix small issues and introduce dataChanged method 2024-07-03 13:52:33 +02:00
Ad Schellevis
cf6359c8a3 contrib - bootstrap-dialog.js : remove aria-hidden="true" for screen readers. for https://github.com/opnsense/core/issues/7590
Since https://github.com/nakupanda/bootstrap3-dialog has been stale for many years, it doesn't make sense to fork and update in a separate repo on our end.
2024-07-03 09:18:08 +02:00
Stephan de Wit
ce465dd2dc configd: send keepalives from streaming actions to enforce client disconnects 2024-07-01 22:07:05 +02:00
Kevin Pelzel
b68fe69aa0
reverse logic of resolve flag (#7523)
Co-authored-by: Kevin Pelzel <kpelzel@lanl.gov>
2024-07-01 21:27:03 +02:00
Jason Fayre
fa2bf112fb
firewall rules page accessibility fixes (#7588)
* Firewall:  Added aria-labels to buttons
2024-07-01 20:52:15 +02:00
Jason Fayre
f010630e01
users: Add accessibility labels to user manager table (#7587) 2024-07-01 20:08:25 +02:00
Jason Fayre
98b207e829
MVC: remove aria-hidden from base dialogs (#7589)
Aria-hidden attribute makes dialogs inaccessible for screen readers.
2024-07-01 20:06:32 +02:00
Stephan de Wit
6355a3debd dashboard: be more conservative with widget resizes and fix missing translation 2024-07-01 09:35:32 +02:00
Stephan de Wit
3b67715319 dashboard: remove caching from metadata fetch 2024-07-01 09:21:33 +02:00
Stephan de Wit
95ccb5c373 dashboard: Announcements: leftover debug statement 2024-07-01 09:17:20 +02:00
Stephan de Wit
384b6883e8 dashboard: restoreDefaults should operate with and check for POST 2024-07-01 09:16:31 +02:00
Ad Schellevis
9318d7744d VPN: WireGuard - fix ip proto detection for manual gateway. closes https://github.com/opnsense/core/issues/7585 2024-06-30 10:31:51 +02:00
Ad Schellevis
848f1ea602 VPN: IPsec: Tunnel Settings [legacy] - prevent gateway when remote gateway family doesn't match selected protocol (https://github.com/opnsense/core/issues/7582) 2024-06-29 21:47:06 +02:00
Ad Schellevis
34a1c0ebb9 plist 2024-06-29 21:36:55 +02:00
Ad Schellevis
c0480a289c Lobby: Dashboard - add Announcements widget (previous RSS content). for https://github.com/opnsense/core/issues/7244 2024-06-29 21:32:17 +02:00
Ad Schellevis
3f39de0498 Lobby: Dashboard - prevent widget javascript files being cached by import(), similar trick is being used for other js/css files on our end. 2024-06-29 19:30:17 +02:00
Stephan de Wit
57184b24e6 dashboard: leftover debug statement 2024-06-28 14:51:27 +02:00
Stephan de Wit
5c73242566 dashboard: remove endpoint annotation from widget files 2024-06-28 14:36:36 +02:00
Stephan de Wit
e0587f7bff dashboard: pluggable metadata files 2024-06-28 14:32:14 +02:00
Stephan de Wit
b83fc5750a firmware: fix plist 2024-06-28 08:35:05 +02:00
Ad Schellevis
351b07420a MVC:ui - execute failure callback on error response in saveFormToEndpoint(), this prevents spinners turning on modals when a userexception is thrown. 2024-06-26 21:30:47 +02:00
Stephan de Wit
89a20888f2 dashboard: with Gridstack 10.2.1 save() behavior seems to be more consistent 2024-06-26 15:46:52 +02:00
Stephan de Wit
4df910f8d0 dashboard: update Gridstack to version 10.2.1 2024-06-26 15:46:09 +02:00
Ad Schellevis
167a2eb985 Services: Captive Portal: Administration - remove Transparent proxy settings, closes https://github.com/opnsense/core/issues/7557 2024-06-26 15:34:36 +02:00
Stephan de Wit
818b0412f5 bootstrap-select / dashboard: align selectpicker and force higher z-index 2024-06-26 15:18:03 +02:00
Stephan de Wit
2aeb8074d1 dashboard: add mechanism for widget-specific data storage and restructure BaseWidget 2024-06-26 14:58:15 +02:00
Ad Schellevis
902487aecc Firewall: Aliases - uniform selectpickers and make sure they are visible. closes https://github.com/opnsense/core/issues/7560 2024-06-26 14:54:44 +02:00
Stephan de Wit
d43def3e02 firmware: fix plist 2024-06-26 09:36:19 +02:00
Monviech
f3a3e6a86e
Dashboard: Add IPsec Leases Widget (#7549)
* Add Ipsec Leases widget to display a list of mobile IPsec users, their online status and their IP addresses.

* Add translations to IpsecLeases Widget.

* Remove nested promises and improve error handling.

* Fix small error that userCountsRow was added twice.

* IpsecLeases fix sorting of users by online status.

* Add IpsecTunnels widget that shows the online/offline status, phase 1 description, local and remote address of each configured IPsec Tunnel.

* Create new method dataHasChanged() in IpsecLeases class, that detects if collected leases have changed. If not, the UI is not updated. Since detecting data changes should be less expensive than updating the whole UI every time, the performance should be better. The console log statements can be used to verify the functionality.

* Also track if the number of leases have changed. Lower tickTimeout to 2 seconds since only updating changed data seems very efficient. This makes the widget update almost in real time without having a big performance impact.

* Generalize dataHasChanged method to compare strings in a deep comparison instead of comparing explicit keys in a shallow comparison. Rewrite IpsecTunnels to use the same methods as IpsecLeases. Comment out console statements.

* Remove debugging statements from code.
2024-06-26 09:32:39 +02:00
Stephan de Wit
0b860caaa5 dashboard: update interfaces widget 2024-06-26 09:11:50 +02:00
Ad Schellevis
3a57584325 mvc: dialogs - make sure selectpickers can break out of modal.
After implementing 1c8639c338, the overlay got more problematic. pinning the select to body makes it overlay inside modals.
2024-06-25 12:06:30 +02:00
Franco Fichtner
0f73da02ad system: fix permission 2024-06-22 17:40:08 +02:00
Ad Schellevis
df7adc41c2 System: Firmware - minor regression in f7999a7d56 2024-06-22 15:18:25 +02:00
Ad Schellevis
cfd7dca5ec mvc: partially fix container field cloning, closes https://github.com/opnsense/core/issues/7521
While cloning model fields, the identifier for these new fields should also be set, which is currently being arranged in the ArrayField->add() method.
This commit makes sure we set the identifiers for one level below the array field type, which is good enough for current implementations, eventually this should be a recursive action or needs a way to push the identifiers directly on clone.

re-arrange the code a bit as well to remove the need for the $new_record array.
2024-06-22 11:16:54 +02:00