Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

2.0

Compare
Choose a tag to compare
@kevinpapst kevinpapst released this 15 Aug 21:19
· 87 commits to master since this release
ee9406d

This release contains breaking changes, so I increased to a new major version (see semver):

  • the underlying AdminLTE bundle was updated to the lastest version 2.4.8
  • the Chart.js component was removed, as it was only required for the original AdminLTE demo

Upgrading

Updating is done with composer:

composer require kevinpapst/adminlte-bundle ^2.0 

But please read on before executing the upgrade ...

Start by reading https://adminlte.io/docs/2.4/upgrade-guide to find out which changes need to be applied to your templates.

The bundled chart.js version was long outdated and added no benefit for users that didn't use charting. I decided to remove chart.js from the official theme release, as this bundle doesn't ship any charting component by now. It also decreased the filesize of adminlte.js by more than 40kB.

In case you customized your frontend assets, update the admin-lte bundle:

yarn upgrade admin-lte@~2.4.8

Afterwards run yarn build.

In case your theme relied on chart.js I highly recommend that you use your own frontend build configs and update it from 1.1.* to ^2.7.2:

yarn upgrade chart.js@^2.7.2

which will give you all the options of the much better Chart.js 2.7 version.

When using your own builds, you have to add this snippet to your app.js:

require('chart.js/dist/Chart.min');

Changelog

  • Add docs on how to extend encore (#7) - thanks to @lucasaba
  • Upgraded to AdminLTE 2.4.8 (#8)
  • Update docs for knp_menu.md (#9)- thanks to @edocabhi
  • Fix YAML syntax in docu (#11) - thanks to @Greg0
  • Added Czech translations (#12) - thanks to @behalp
  • Fix flashmessages if no session is available (#16)
  • Removed chart.js and prepared 2.0 (#17)
  • Updated FOSUserBundle documentation (#19)