Skip to content

Commit

Permalink
[TASK] Replace RequireJS
Browse files Browse the repository at this point in the history
RequireJS integration is deprecated in TYPO3 12 and will be removed
with TYPO3 13, thus search statistics JavaScript is adapted for
ECMAScript v6.

An update to Chart.js 3.9.1 is also done, which provides ES6 support.
Integration in Chart.js 4 is currently faulty and is postponed.

Resolves: #3489
  • Loading branch information
dkd-friedrich committed Sep 21, 2023
1 parent 719d5cc commit 91e9306
Show file tree
Hide file tree
Showing 7 changed files with 16,061 additions and 67 deletions.
8 changes: 8 additions & 0 deletions Configuration/JavaScriptModules.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

return [
'dependencies' => ['backend'],
'imports' => [
'@apache-solr-for-typo3/solr/' => 'EXT:solr/Resources/Public/JavaScript/',
],
];
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ <h2>Site: {site.label}</h2>
<!-- TODO add buttons to select time frame [last 24h] [last 30 days] [all] -->

<f:be.pageRenderer
includeJsFiles="{
0: '{f:uri.resource(path:\'JavaScript/SearchStatistics.js\')}'
}"
includeJavaScriptModules="{
0: '@apache-solr-for-typo3/solr/SearchStatistics.js'
}"
/>

<div class="row">
Expand Down
7 changes: 0 additions & 7 deletions Resources/Public/JavaScript/Chart.js

This file was deleted.

Loading

0 comments on commit 91e9306

Please sign in to comment.