Revision 0decc8d291cc6b4e7f6b6e102edec90d349da4c8

Committed on 20/11/2020 3:32 am by JAC - Frederic Bauer <frederic.bauer@jac-systeme.de> [GitHub Diff]

Preparation for implementation of the favourite-features:

- routing.yaml has seen new routes and reconfigurations of existing (non-used) routes in order to enable a potential future favourite-feature and also remove unnecessary code

- bundle.css and parameter_display.css have seen new classes added and some refactoring of existing classes to accommodate for the newly added favor- and copy-buttons

- app.js hass seen an update in which it now also sets up favor- and copy-buttons as these have been newly added

- CopyButtonUtility.js is a newly added class which brings functionality to the copy buttons which have been added

- FavourButtonUtility.js is a newly added class which brings functionality to the newly added favor-buttons in order to allow favourites to be set towards the backend in the frontend

- DownloadParametersUtility.js has just seen some cleanup, where unnecessary comments have been removed

- ParameterDisplay.js has seen an update to the clearAttributes-function which was done so that "we" can react to more than only one symbol, which does not work with the functionality, and replace them in the attributes

- ParameterLocationRetrieval.js now adds the given site access in front of the first key it passes by when it creates the full parameter paths as this is usually a better position to add the missing site access into (with the fact that the parameters get split into pre- and post- site access in the backend)

- ParameterLocationRetrieval.js also now employs the newly added fetch-requests by the Utility.js instead of having its own fetch request

- The SiteAccessDifferencesHighlighter.js has seen a small adaptation to the fact that now double quotation marks are being removed in html attributes of the keys

- Utility.js has seen a number of new additions:

1. a method has been added which allows svg-elements to be created by the utility. This was done so that multiple classes (which relied upon this functionality) do not have to implement the functionality themselves and to create a more convenient way of adding these elements

2. 2 custom fetch request have been added to the class in order to allow request with and without a body to be made by other classes without having to implement a fetch request themselves everytime

- Twig templates: The templates have been adapted to now feature the new copy-to-clipboard- and favor-buttons in order to allow such functionalities to be implemented

- the pagelayout.html.twig has received an input element which serves as a holder for the text to be copied

- ConfigProcessCoordinator.php has seen two major updates:

1. The coordinator now takes custom added parameters into account when retrieving site access parameters. This means that users can now add parameters on their own, which are going to be featured in the site access parameter list.

2. The second big updates concerns the favour-functionality as now there have been methods added to both store the favourites as parameters and retrieve the favourite parameters.

- CustomSiteAccessParamProcessor.php has received minor updates to allow its "Retrieve Custom Parameters"-Function to be used without giving it an entire container and a site access list

- ConfigProcessLocationInfoController.php has received a small refactoring

Most of the classes have seen a small refactoring of the code (for better readability and less redundancy).