- Removed inlcudes of RESTClient from PHP (FHC-Common, FHC-Footer and views/system/logs/logsViewer)

- Changed RESTClient to be a JS module
- Now RESTClient is included via JS in the app LogsViewer and in component Navigation
- Added new directory public/js/components/navigation
- Moved component Navigation to public/js/components/navigation
- Moved API calls of the Navigation component to public/js/components/navigation/API.js
- Navigation component now imports public/js/components/navigation/API.js
This commit is contained in:
Paolo
2022-07-06 09:48:15 +02:00
parent 2927682dae
commit ce9aa4c388
7 changed files with 46 additions and 21 deletions
@@ -5,7 +5,6 @@
'bootstrap5' => true,
'fontawesome6' => true,
'jquery3' => true,
'restclient' => true,
'tablesorter2' => true,
'vue3' => true,
'filtercomponent' => true,
@@ -38,7 +38,6 @@
$filterwidget = isset($filterwidget) ? $filterwidget : false;
$navigationcomponent = isset($navigationcomponent) ? $navigationcomponent : false;
$navigationwidget = isset($navigationwidget) ? $navigationwidget : false;
$restclient = isset($restclient) ? $restclient : false;
$tablecomponent = isset($tablecomponent) ? $tablecomponent : false;
$tablewidget = isset($tablewidget) ? $tablewidget : false;
$udfs = isset($udfs) ? $udfs : false;
@@ -132,9 +132,6 @@
// PhrasesLib JS
if ($phrases != null) generateJSsInclude('public/js/PhrasesLib.js');
// RESTClient
if ($restclient === true) generateJSsInclude('public/js/RESTClient.js');
// TableWidget JS
if ($tablewidget === true) generateJSsInclude('public/js/TableWidget.js');