Fixes: #7895
- Introduces a generalized function to handle "search" and "edit" in url hashes.
- Can handle changing a tab before firing a search and/or edit.
---------
Co-authored-by: Stephan de Wit <stephan.de.wit@deciso.com>
Since legacy pages each define 'page-content-main', including it
in fbegin.inc is not an option anymore. Manually setting the background
to match the current one also introduces issues for themese so
instead inject it dynamically and let it inherit the background
color
Also introduces better sorting with a separate priority value as well
as a refactored frontend. Includes some fixes for missing translations
as well.
To test a banner such as "the system is booting":
flock -n -o /var/run/booting cat
Take our chances with SSH. It looks like using 'early'
facility surfaced this problem that was not as trigger
happy before. The administration page does the same.
PR: https://forum.opnsense.org/index.php?topic=43995.0
o merge src+srcmask, dst+dstmask into a single field
o remove current clunky input and re-use the same javascript hooks as in MVC
o re-use OPNsense\Firewall\Api\FilterController to list available options
When selecting multiple source or targets, a cartesian product is created for all combinations (one defined rule turns into multiple actual rules).
In order to make this possible, we needed to refactor the base rule parsing. our generic `reader()` multiplies rules, which it already did for interfaces and ipprotocol.
When feeding lists to `pf(4)` a similar action would be performed.
The `convertAddress()` method has been renamed to `legacyMoveAddressFields()` as it now only remaps field structures into flattened fields, without validating their contents.
This is needed so we can split source/destinations without caring about their validity (yet), `mapAddressInfo()` is added next which contains the same logic as previously in `convertAddress()` but executed after splitting the fields.
The "Automation" module is more or less a reference implementation to show how the backend handles these now, 22fd0bf8763e14a5e1e7694853af0893dae585b7 is required for this to work.
All changes should be backwards compatible, but deliver a slightly different ruleset in some cases (when multiple entries are already used), e.g. the rule below would be split into two on our end now:
397a3dcdce/src/etc/inc/filter.lib.inc (L231-L237)
`pfctl -sr` already showed two before our change.
* dashboard: Add certificate widget that displays CAs and Certs sorted by expiration date
* dashboard: Certificate widget, fix certificate hiding configuration, refresh immediately on config change, increase tick timeout
* dashboard: Certificate widget, different text for expired certificates
* dashboard: Certificate widget, create links that fill the search-field of the bootgrid to display the certificate directly
* dashboard: Certificate widget, search for uuid in bootgrid and call corresponding form
This bundle file is here for general consumption and the time it
has already taken to debug this issue is not justifiable for
pursuing the matter any further. Other approaches regarding
chroot and directory sharing are likely going to be much more
code which would make another solution more fragile as well.
While here remove a strange directory in the chroot that is not
even used.
As a side effect it removes the spurious quoting around most
static arguemnts that do not need to be vetted for safety
anyway (but still are if a mistake is made).
Some arguments are passed unquoted for one of the two reasons:
1. It's a global variable pointing to a binary or directory most
likely, especially for first argument which is the command.
2. It's an argument that is set in the script, but may be empty
when the command runs, i.e. '-f' option.
ease maintenance in the future by cleanup up our stylesheets, most of our styes are already a decade old and might need some love for future improvements.
This commit removes some of the unused styles and moves color defines in main.scss to its own file, also a dashboard scss file is added to use the same colorscheme.