- WIP on route descriptor
This commit is contained in:
1 parent
21f315cc22
commit
ad310ffee5
7 files changed
+52
-18
No files matched your search
@@ -1,8 +1,10 @@
|
||||
{% language.set "lean.api.descriptor.entity" %}
|
||||
|
||||
{% function yesOrNo(bool $toggle) : void %}
|
||||
<span style="color: {{ $toggle ? 'green' : '#ac1b1b' }}">{{ $toggle ? 'oui' : 'non' }}</span>
|
||||
{% endfunction %}
|
||||
|
||||
{% function length(int|null $length): void %}
|
||||
{% function length(int|null|string $length): void %}
|
||||
<span style="color:{{ $length ? 'black' : 'gray' }}">{{ $length ?? "non-défini" }}</span>
|
||||
{% endfunction %}
|
||||
|
||||
@@ -61,5 +63,7 @@
|
||||
{% endforeach %}
|
||||
</ol>
|
||||
</div>
|
||||
{% or %}
|
||||
<i style="color:#585858; padding:0 12px">{% _ "none" %}</i>
|
||||
{% endforeach %}
|
||||
</div>
|
||||
@@ -1,3 +1,5 @@
|
||||
{% language.set "lean.api.descriptor.form" %}
|
||||
|
||||
{% function yesOrNo(bool $toggle) : void %}
|
||||
<span style="color: {{ $toggle ? 'green' : '#ac1b1b' }}">{{ $toggle ? 'oui' : 'non' }}</span>
|
||||
{% endfunction %}
|
||||
@@ -34,5 +36,7 @@
|
||||
{% endforeach %}
|
||||
</ol>
|
||||
</div>
|
||||
{% or %}
|
||||
<i style="color:#585858; padding:0 12px">{% _ "none" %}</i>
|
||||
{% endforeach %}
|
||||
</div>
|
||||
@@ -1,14 +1,21 @@
|
||||
{% language.set "lean.api.descriptor.route" %}
|
||||
|
||||
<ul class="routes-wrapper">
|
||||
{% foreach $routes as $route %}
|
||||
{% foreach $route['methods'] as $method %}
|
||||
<li class="method-{{ strtolower($method) }}">
|
||||
<span class="route-method">{{ $method }}</span>
|
||||
<span class="route-method">
|
||||
<span class="method-name">{{ strtoupper($method) }}</span>
|
||||
</span>
|
||||
<span class="route-link">
|
||||
<a href="{{ $route['route'] }}" title="{{ $route['path'] }}">{{ $route['cleaned'] }}</a>
|
||||
<span>- {{= $route['description'] }}</span>
|
||||
<span>-</span>
|
||||
<span>{{= $route['description'] }}</span>
|
||||
</span>
|
||||
<small class="route-name">{{ $route['name'] }}</small>
|
||||
</li>
|
||||
{% or %}
|
||||
<i style="color:#585858; padding:0 12px">{% _ "none" %}</i>
|
||||
{% endforeach %}
|
||||
{% endforeach %}
|
||||
</ul>
|
||||
Reference in new issue
Block a user