- Work done to clarify a bit every section, and a hugh code refractoring also was made to the code base.
This commit is contained in:
1 parent
a98e46c343
commit
6b655bdc76
15 files changed
+260
-145
No files matched your search
@@ -0,0 +1,76 @@
|
||||
{% function yesOrNo(bool $toggle) : void %}
|
||||
<span style="color: {{ $toggle ? 'green' : '#ac1b1b' }}">{{ $toggle ? 'oui' : 'non' }}</span>
|
||||
{% endfunction %}
|
||||
|
||||
{% function length(int|null $length): void %}
|
||||
<span style="color:{{ $length ? 'black' : 'gray' }}">{{ $length ?? "non-défini" }}</span>
|
||||
{% endfunction %}
|
||||
|
||||
<div class="entities">
|
||||
{% foreach $entities as $name => $entity %}
|
||||
<div class="entity-wrapper" style="padding-left: 15px;border-left: 3px solid #eaa1af;">
|
||||
<h4 class='entity-name'>{{ $entity['className'] }}</h4>
|
||||
<div class='description'>{{ $entity['description'] }}</div>
|
||||
|
||||
<hr style="margin-top:15px">
|
||||
|
||||
<h5>Champs</h5>
|
||||
<ol class='fields'>
|
||||
{% foreach $entity['fields'] as $field %}
|
||||
<li class="odd-even">
|
||||
<div class="title">
|
||||
<div><strong style="font-family:monospace">${{ $field['name'] }}</strong> <span style='margin-left:15px'>{{ $field['description'] }}</span></div>
|
||||
</div>
|
||||
|
||||
<div class="field-desc" style="margin-top:10px;;background:#fff;padding:5px;font-size:0.9em">
|
||||
<div style="padding:5px"><u>Champ SQL</u> : {{ $field['fieldName'] }}</div>
|
||||
<div style="padding:5px"><u>Attribut</u> : {{ $field['tag'] }}</div>
|
||||
<div style="padding:5px"><u>Type(s)</u> : {{ $field['type'] }}</div>
|
||||
<div style="padding:5px"><u>Nullable</u> {{ yesOrNo($field['allowNulls']) }}</div>
|
||||
<div style="padding:5px"><u>Taille</u> : {{ length($field['length']) }}</div>
|
||||
<div style="padding:5px"><u>Lecture seule</u> : {{ yesOrNo($field['readonly']) }}</div>
|
||||
</div>
|
||||
</li>
|
||||
{% endforeach %}
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<div class="search-request-wrapper">
|
||||
<h4 class='search-request-name'>{{ $entity['className'] }}::searchRequest()</h4>
|
||||
|
||||
<h5>Requêtes</h5>
|
||||
<div class='description' style="margin-bottom:10px">{{ $entity['searchRequestDescription'] }}</div>
|
||||
|
||||
<ol class='requests'>
|
||||
{% foreach $entity['searchRequestFields'] as $field %}
|
||||
<li class="odd-even">
|
||||
<div class="title">
|
||||
<div><strong style="font-family:monospace">{{ $field['name'] }}</strong> <span style='margin-left:15px'>{{ $field['description'] }}</span></div>
|
||||
</div>
|
||||
|
||||
<div class="field-desc" style="margin-top:10px;;background:#fff;padding:5px;font-size:0.9em">
|
||||
<div><u>Paramètre de requête (GET)</u> : {{ $field['parameter'] }}</div>
|
||||
<div><u>Attribut</u> : {{ $field['tag'] }}</div>
|
||||
<div><u>Type(s)</u> : {{ $field['type'] }}</div>
|
||||
<div><u>Nullable</u> : {{ yesOrNo($field['allowNulls']) }}</div>
|
||||
{% if $field['default'] !== "" %}
|
||||
<div><u>Valeur par défault</u> : {{ $this->displayValue($field['default']) }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</li>
|
||||
{% endforeach %}
|
||||
</ol>
|
||||
</div>
|
||||
{% endforeach %}
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.entity-name {background:#eaa1af}
|
||||
.entity-wrapper ol {background: #f0ddcd;}
|
||||
.entity-wrapper li {border-color: #ae8585;}
|
||||
|
||||
.search-request-name {background: #b6e6ae}
|
||||
.search-request-wrapper {padding-left: 15px;border-left: 3px solid #72886a;}
|
||||
.search-request-wrapper ol {background: #d8f0cd;}
|
||||
.search-request-wrapper li {border-color: #72886a;}
|
||||
</style>
|
||||
@@ -0,0 +1,38 @@
|
||||
{% function yesOrNo(bool $toggle) : void %}
|
||||
<span style="color: {{ $toggle ? 'green' : '#ac1b1b' }}">{{ $toggle ? 'oui' : 'non' }}</span>
|
||||
{% endfunction %}
|
||||
|
||||
<div class="forms">
|
||||
{% foreach $forms as $form %}
|
||||
<div class="single-form" style="padding-left:15px;border-left: 3px solid #9ce6bc;">
|
||||
<h4 style="background:#9ce6bc" class='form-name'>{{ $form['className'] }}</h4>
|
||||
<div class='description'>{{ $form['description'] }}</div>
|
||||
<hr style="margin-top:15px">
|
||||
|
||||
<h5>Champs</h5>
|
||||
|
||||
<ol class='fields'>
|
||||
{% foreach $form['fields'] as $field %}
|
||||
<li class="odd-even">
|
||||
<div class="title">
|
||||
<div>
|
||||
<strong style="font-family:monospace">{{ $field['name'] }}</strong>
|
||||
<span style='margin-left:15px'>{{ $field['description'] }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field-desc" style="margin-top:10px;;background:#fff;padding:5px;font-size:0.9em">
|
||||
<div><u>Variable POST / champ JSON</u> : {{ $field['name'] }}</div>
|
||||
<div><u>Type(s)</u> : {{ $field['type'] }}</div>
|
||||
<div><u>Nullable</u> : {{ yesOrNo($field['allowNulls']) }}</div>
|
||||
<div><u>Pattern regex</u> : {{ $field['regexPattern'] }}</div>
|
||||
<div><u>Taille min.</u> : {{ $field['minLength'] }}</div>
|
||||
<div><u>Taille max.</u> : {{ $field['maxLength'] }}</div>
|
||||
<div><u>Exemple</u> : {{ $field['example'] }}</div>
|
||||
</div>
|
||||
</li>
|
||||
{% endforeach %}
|
||||
</ol>
|
||||
</div>
|
||||
{% endforeach %}
|
||||
</div>
|
||||
@@ -0,0 +1,9 @@
|
||||
<ul>
|
||||
{% foreach $routes as $route %}
|
||||
<li>
|
||||
<span><a href="{{ $route['route'] }}" title="{{ $route['path'] }}" style='font-family:monospace;font-size:.85em'>{{ $route['cleaned'] }}</a> - {{ $route['description'] }}</span>
|
||||
<span style='color:#ac1b1b'>{{ $route['methods'] }}</span>
|
||||
<small style="color:#374300">{{ $route['name'] }}</small>
|
||||
</li>
|
||||
{% endforeach %}
|
||||
</ul>
|
||||
Reference in new issue
Block a user