Skip to content
Permalink
Browse files

0.64.4 Remove twig template engine

  • Loading branch information...
brakerb committed Apr 27, 2019
1 parent 8eea6f0 commit 403ce4c5dd0089a598247ae19aa938af48777b2f
Showing with 31 additions and 7,329 deletions.
  1. +1 −3 composer.json
  2. +2 −173 composer.lock
  3. +1 −0 core/Classes/Template.php
  4. +4 −3 core/Controllers/TemplateController.php
  5. +0 −151 core/Controllers/TemplateControllerTwig.php
  6. +1 −1 core/Models/Player.php
  7. +0 −17 core/Modules/_tester/Templates/test.twig.xml
  8. +0 −6 core/Modules/added-time-info/Templates/meter.twig.xml
  9. 0 core/Modules/ban-gui/Templates/manialink.twig.xml
  10. +0 −1 core/Modules/clear-cache-notice/ClearCacheNotice.php
  11. +0 −27 core/Modules/clear-cache-notice/Templates/window.twig.xml
  12. +0 −94 core/Modules/clock/Templates/clock.twig.xml
  13. +0 −17 core/Modules/countdown/Templates/update-timelimit.twig.xml
  14. +0 −71 core/Modules/countdown/Templates/widget.twig.xml
  15. +0 −158 core/Modules/cp-position-tracker/Templates/manialink.twig.xml
  16. +0 −168 core/Modules/cp-records/Templates/widget.twig.xml
  17. +0 −484 core/Modules/dedimania-records/Templates/manialink.twig.xml
  18. +0 −23 core/Modules/dedimania-records/Templates/update.twig.xml
  19. +0 −73 core/Modules/discord/Template/widget.twig.xml
  20. +0 −85 core/Modules/donations/Templates/widget.twig.xml
  21. +0 −50 core/Modules/gear-info/Templates/meter.twig.xml
  22. +0 −48 core/Modules/group-manager/Templates/add.twig.xml
  23. +0 −74 core/Modules/group-manager/Templates/edit.twig.xml
  24. +0 −57 core/Modules/group-manager/Templates/edit_access.twig.xml
  25. +0 −92 core/Modules/group-manager/Templates/members.twig.xml
  26. +0 −203 core/Modules/group-manager/Templates/overview.twig.xml
  27. +0 −136 core/Modules/help/Templates/window.twig.xml
  28. +0 −95 core/Modules/hide-settings/Templates/manialink.twig.xml
  29. +0 −9 core/Modules/hide-settings/Templates/update.twig.xml
  30. +0 −117 core/Modules/info-messages/Templates/manialink.twig.xml
  31. +0 −34 core/Modules/key-binds/Templates/script.twig.xml
  32. +0 −80 core/Modules/key-binds/Templates/settings.twig.xml
  33. +0 −156 core/Modules/live-rankings/Templates/widget.twig.xml
  34. +0 −502 core/Modules/local-records/Templates/manialink.twig.xml
  35. +0 −23 core/Modules/local-records/Templates/update.twig.xml
  36. +0 −1,162 core/Modules/map-list/Templates/manialink.twig.xml
  37. +0 −18 core/Modules/map-list/Templates/update-map-list.twig.xml
  38. +0 −13 core/Modules/map-list/Templates/update-map-queue.twig.xml
  39. +0 −17 core/Modules/map-list/Templates/update-records.twig.xml
  40. +0 −11 core/Modules/map-list/Templates/update-search-query.twig.xml
  41. +0 −85 core/Modules/matchsettings-manager/Templates/edit-filter.twig.xml
  42. +0 −85 core/Modules/matchsettings-manager/Templates/edit-gameinfo.twig.xml
  43. +0 −182 core/Modules/matchsettings-manager/Templates/edit-maps.twig.xml
  44. +0 −162 core/Modules/matchsettings-manager/Templates/edit-modescript-settings.twig.xml
  45. +0 −118 core/Modules/matchsettings-manager/Templates/overview.twig.xml
  46. +3 −2 core/Modules/music-client/MusicClient.php
  47. +0 −487 core/Modules/music-client/Templates/widget.twig.xml
  48. +0 −103 core/Modules/mx-details/Templates/window.twig.xml
  49. +0 −1 core/Modules/mx-karma/MxKarma.php
  50. +0 −163 core/Modules/mx-karma/Templates/mx-karma.twig.xml
  51. +0 −10 core/Modules/mx-karma/Templates/update-karma.twig.xml
  52. +0 −10 core/Modules/mx-karma/Templates/update-my-vote.twig.xml
  53. +0 −29 core/Modules/next-map/Templates/widget.twig.xml
  54. +5 −5 core/Modules/pay2play/Pay2Play.php
  55. +0 −95 core/Modules/pay2play/Templates/widget.twig.xml
  56. +0 −76 core/Modules/paypal/Template/widget.twig.xml
  57. +0 −273 core/Modules/pb-records/Templates/pb-cp-records.twig.xml
  58. +0 −33 core/Modules/pb-records/Templates/pb-records.twig.xml
  59. +0 −16 core/Modules/pb-records/Templates/set-times.twig.xml
  60. +0 −239 core/Modules/player-list/Templates/window.twig.xml
  61. +0 −67 core/Modules/profile-viewer/Templates/window.twig.xml
  62. +0 −109 core/Modules/quick-buttons/Templates/overlay.twig.xml
  63. +0 −161 core/Modules/roundtime/Templates/meter.twig.xml
  64. +0 −3 core/Modules/spec-info/Templates/hide.twig.xml
  65. +0 −11 core/Modules/spec-info/Templates/widget.twig.xml
  66. +0 −162 core/Modules/speedometer/Templates/meter.twig.xml
  67. +0 −60 core/Modules/statistics/Templates/widgets.twig.xml
  68. +0 −13 core/Modules/votes/Templates/update-vote.twig.xml
  69. +0 −117 core/Modules/votes/Templates/vote.twig.xml
  70. +12 −0 core/run.php
  71. +2 −0 esc
@@ -2,13 +2,11 @@
"require": {
"maniaplanet/dedicated-server-api": "^5.0",
"illuminate/database" : "^5.5",
"BluePsyduck/ManiaScript" : "^1.1",
"symfony/console" : "^4.0",
"guzzlehttp/guzzle" : "^6.3",
"latte/latte" : "^2.4",
"illuminate/pagination" : "^5.6",
"symfony/process" : "^4.2",
"symfony/event-dispatcher" : "^4.2",
"twig/twig": "^2.0"
"symfony/event-dispatcher" : "^4.2"
}
}

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -4,6 +4,7 @@
use esc\Controllers\TemplateController;
use esc\Controllers\TemplateControllerTwig;
use esc\Models\Player;
use Illuminate\Support\Collection;
@@ -40,9 +40,6 @@ public static function init()
ChatCommand::add('//reload-templates', [TemplateController::class, 'loadTemplates'], 'Reload templates', 'user.ban');
self::$templates = collect();
self::$latte = new Engine();
self::addCustomFilters();
self::loadTemplates();
}
@@ -113,6 +110,10 @@ public static function loadTemplates($args = null)
{
Log::logAddLine('TemplateController', 'Loading templates...');
self::$templates = collect();
self::$latte = new Engine();
self::addCustomFilters();
//Get all template files in core directory
self::$templates = File::getFilesRecursively(coreDir(), '/\.latte\.xml$/')
->map(function (&$template) {

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 403ce4c

Please sign in to comment.
You can’t perform that action at this time.