1+ {% extends ' @WebProfiler/Profiler/layout.html.twig' %}
2+
3+ {% block toolbar %}
4+
5+ {% set icon %}
6+ <svg xmlns =" http://www.w3.org/2000/svg" width =" 24" height =" 24" viewBox =" 0 0 24 24" fill =" none"
7+ stroke =" currentColor" stroke-width =" 2" stroke-linecap =" round" stroke-linejoin =" round"
8+ class =" lucide lucide-waypoints-icon lucide-waypoints" ><path d =" m10.586 5.414-5.172 5.172" /><path
9+ d =" m18.586 13.414-5.172 5.172" /><path d =" M6 12h12" /><circle cx =" 12" cy =" 20" r =" 2" /><circle
10+ cx =" 12" cy =" 4" r =" 2" /><circle cx =" 20" cy =" 12" r =" 2" /><circle cx =" 4" cy =" 12" r =" 2" /></svg >
11+ <span class =" sf-toolbar-value" >{{ collector .entries | length }}</span >
12+ {% endset %}
13+
14+ {% set text %}
15+ <div class =" sf-toolbar-info-group" >
16+ <div class =" sf-toolbar-info-piece" >
17+ <b >Enabled</b >
18+ <span class =" sf-toolbar-status sf-toolbar-status-{% if collector .enabled %}green{% else %}red{% endif %}" >{{ collector .enabled ? ' yes' : ' no' }}</span >
19+ </div >
20+
21+ <div class =" sf-toolbar-info-piece" >
22+ <b >Encore Entries</b >
23+ <span class =" sf-toolbar-status" >{{ collector .entries | length }}</span >
24+ </div >
25+
26+ <div class =" sf-toolbar-info-piece" >
27+ <b >Encore Extensions</b >
28+ <span class =" sf-toolbar-status" >{{ collector .extensions | length }}</span >
29+ </div >
30+ </div >
31+ <div class =" sf-toolbar-info-group" >
32+ <div class =" sf-toolbar-info-piece" >
33+ <b >Resources</b >
34+ <span ><a href =" https://github.com/heimrichhannot/contao-encore-bundle" target =" _blank" rel =" help noreferrer noopener" >Read the encore bundle docs</a ></span >
35+ </div >
36+ </div >
37+ {% endset %}
38+
39+ {{ include (' @WebProfiler/Profiler/toolbar_item.html.twig' , {
40+ link : true ,
41+ additional_classes : (collector .enabled ? ' ' : ' sf-toolbar-status-red' ) }
42+ ) }}
43+
44+ {% endblock %}
45+
46+ {% block menu %}
47+ <span class =" label" >
48+ <span class =" icon" >
49+ <svg xmlns =" http://www.w3.org/2000/svg" width =" 24" height =" 24" viewBox =" 0 0 24 24" fill =" none"
50+ stroke =" currentColor" stroke-width =" 2" stroke-linecap =" round" stroke-linejoin =" round"
51+ class =" lucide lucide-waypoints-icon lucide-waypoints" ><path d =" m10.586 5.414-5.172 5.172" /><path
52+ d =" m18.586 13.414-5.172 5.172" /><path d =" M6 12h12" /><circle cx =" 12" cy =" 20" r =" 2" /><circle
53+ cx =" 12" cy =" 4" r =" 2" /><circle cx =" 20" cy =" 12" r =" 2" /><circle cx =" 4" cy =" 12" r =" 2" /></svg >
54+ </span >
55+ <strong >Encore</strong >
56+ </span >
57+ {% endblock %}
58+
59+ {% block panel %}
60+ <h2 >Encore</h2 >
61+
62+ <div class =" metrics" >
63+ <div class =" metric" >
64+ <span class =" value status-{{ collector .enabled ? ' success' : ' danger' }}" >{{ collector .enabled ? ' yes' : ' no' }}</span >
65+ <span class =" label" >Enabled</span >
66+ </div >
67+
68+ <div class =" metric" >
69+ <span class =" value" >{{ collector .version }}</span >
70+ <span class =" label" >Encore Bundle version</span >
71+ </div >
72+
73+ <div class =" metric" >
74+ <span class =" value" >{{ collector .extensions | length }}</span >
75+ <span class =" label" >Registered extensions</span >
76+ </div >
77+
78+ </div >
79+
80+
81+ <h2 >Page entry points</h2 >
82+
83+ <table >
84+ <thead >
85+ <tr >
86+ <th >Name</th >
87+ <th >Active</th >
88+ <th >Head</th >
89+ <th >CSS</th >
90+ <th >Origin</th >
91+ <th >Extension</th >
92+ </tr >
93+ </thead >
94+ <tbody >
95+
96+ {% for entry in collector .entries %}
97+ <tr >
98+ <td >{{ entry .name }}</td >
99+ <td >{{ entry .active }}</td >
100+ <td >{{ entry .head }}</td >
101+ <td >{{ entry .requiresCss }}</td >
102+ <td >{{ entry .origin }}</td >
103+ <td >{{ entry .extension }}</td >
104+ </tr >
105+ {% endfor %}
106+ </tbody >
107+ </table >
108+
109+ <h2 >Registered extensions</h2 >
110+
111+ <table >
112+ <thead >
113+ <tr >
114+ <th >Extension class</th >
115+ <th >Entry Points</th >
116+ </tr >
117+ </thead >
118+ <tbody >
119+ {% for extension in collector .extensions %}
120+ <tr >
121+ <td >{{ extension .name }}</td >
122+ <td >
123+ <ul >
124+ {% for entry in extension .entries %}
125+ <li >{{ entry .name }}</li >
126+ {% endfor %}
127+ </ul >
128+ </td >
129+ </tr >
130+ {% endfor %}
131+ </tbody >
132+ </table >
133+ {% endblock %}
0 commit comments