stable

Clone or download

Read-only

chore: Move graphontrackers script to Vite

Part of request #40462 Modernize GraphOnTrackersV5 According to ADR 0018, we should stop use webpack and use vite instead. Migrate the script of the plugin to vite build system. Note: Reports rendered are loaded old way by echo-ing html directly and assets are included after. With vite assets containing css we need to include them before the header. In order to achieve that I added a method to retrieve the assets of the renderer and add them directly to layout. *No functional changes expected* Graphs in tracker reports and in widgets should continue to work as before Change-Id: I1a40c75629bb2576813db0d46f787388e3a5e2ce

Modified Files

Name
M plugins/graphontrackersv5/build-manifest.json +3 −3 Go to diff View file
M plugins/graphontrackersv5/include/GraphOnTrackersV5_Renderer.class.php +10 −0 Go to diff View file
M plugins/graphontrackersv5/include/GraphOnTrackersV5_Widget_Chart.class.php +8 −16 Go to diff View file
M plugins/graphontrackersv5/include/graphontrackersv5Plugin.php +9 −30 Go to diff View file
R plugins/graphontrackersv5/package.json Go to diff View file
R plugins/graphontrackersv5/pnpm-lock.yaml Go to diff View file
A plugins/graphontrackersv5/scripts/graph-loader/po/fr_FR.po +16 −0 Go to diff View file
R plugins/graphontrackersv5/scripts/src/graph-cumulative-flow.js Go to diff View file
R plugins/graphontrackersv5/scripts/src/graphs-bar.js Go to diff View file
R plugins/graphontrackersv5/scripts/src/graphs-groupedbar.js Go to diff View file
R plugins/graphontrackersv5/scripts/src/graphs-layout-helper.js Go to diff View file
R plugins/graphontrackersv5/scripts/src/graphs-pie.js Go to diff View file
A plugins/graphontrackersv5/scripts/graph-loader/src/loadGraphs.js +125 −0 Go to diff View file
R plugins/graphontrackersv5/scripts/src/rest-querier.js Go to diff View file
R plugins/graphontrackersv5/themes/default/css/style.scss Go to diff View file
R plugins/graphontrackersv5/webpack.dev.js Go to diff View file
D plugins/graphontrackersv5/scripts/po/fr_FR.po +0 −2 Go to diff View file
D plugins/graphontrackersv5/scripts/src/gettext_provider.js +0 −27 Go to diff View file
D plugins/graphontrackersv5/scripts/src/loadGraphs.js +0 −120 Go to diff View file
D plugins/graphontrackersv5/webpack.common.js +0 −49 Go to diff View file
D plugins/graphontrackersv5/webpack.prod.js +0 −23 Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_Report.class.php +1 −0 Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_Report_Renderer.class.php +9 −0 Go to diff View file