Skip to content

Commit

Permalink
[TASK] Renew PageOverview CSS/JS includings
Browse files Browse the repository at this point in the history
  • Loading branch information
einpraegsam committed Oct 31, 2024
1 parent 9dc853c commit 4df8c57
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
3 changes: 3 additions & 0 deletions Resources/Private/Build/JavaScript/Backend/Module.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import "@in2code/lux/Diagram.min.js";
import "@in2code/lux/PageOverview.min.js";

const LuxBackend = function() {
/**
* @type {LuxBackend}
Expand Down
6 changes: 1 addition & 5 deletions Resources/Private/Build/JavaScript/Backend/PageOverview.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* @class LuxBackend
*/
function LuxPageOverview() {
const LuxPageOverview = function() {
'use strict';

/**
Expand Down Expand Up @@ -116,7 +116,3 @@ function LuxPageOverview() {

var LuxPageOverviewObject = new LuxPageOverview();
LuxPageOverviewObject.initialize();




16 changes: 9 additions & 7 deletions Resources/Private/Templates/Backend/PageOverview.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
<f:if condition="{visitors}">

<f:be.pageRenderer includeJavaScriptModules="{
0: '@in2code/lux/PageOverview.min.js',
1: '@in2code/lux/Diagram.min.js'
2: '@in2code/lux/Module.min.js'
}" includeCssFiles="{
0: '{f:uri.resource(path:\'Css/PageOverview.min.css\',extensionName:\'Lux\')}'
}"/>

<div class="lux">
<lux:condition.isLuxenterpriseExtensionActivated>
<f:else>
Expand Down Expand Up @@ -27,12 +36,5 @@ <h4 class="callout-title">
</p>
</lux:backend.getRenderingTime>
</div>

<link rel="stylesheet" type="text/css" href="{f:uri.resource(path:'Css/PageOverview.min.css',extensionName:'lux')}" media="all">
<f:comment>
<lux:backend.addRequireJsModule moduleName="TYPO3/CMS/Lux/Lux/Diagram.min" />
<lux:backend.addRequireJsModule moduleName="TYPO3/CMS/Lux/Lux/Module.min" />
</f:comment>
<script src="{f:uri.resource(path:'JavaScript/Lux/PageOverview.min.js',extensionName:'lux')}"></script>
</div>
</f:if>
2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/Lux/Module.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/Lux/PageOverview.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4df8c57

Please sign in to comment.