Update website

This commit is contained in:
Guilhem Lavaux 2024-11-23 20:45:29 +01:00
parent 41ce1aa076
commit ea0eb1c6e0
4222 changed files with 721797 additions and 14 deletions

View file

@ -0,0 +1,29 @@
<form class="ajax" action="{{ url('/navigation') }}" method="post">
<fieldset class="pma-fieldset">
{{ get_hidden_inputs(database, table) }}
{% for type, label in types %}
{% if (item_type is empty or item_type == type) and hidden[type] is iterable %}
{{ not loop.first ? '<br>' }}
<strong>{{ label }}</strong>
<table class="table w-100">
<tbody>
{% for item in hidden[type] %}
<tr>
<td>{{ item }}</td>
<td class="text-end">
<a class="unhideNavItem ajax" href="{{ url('/navigation') }}" data-post="{{ get_common({
'unhideNavItem': true,
'itemType': type,
'itemName': item,
'dbName': database
}, '', false) }}">{{ get_icon('show', 'Unhide'|trans) }}</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% endfor %}
</fieldset>
</form>

View file

@ -0,0 +1,99 @@
{% if not is_ajax %}
<div id="pma_navigation" class="d-print-none" data-config-navigation-width="{{ config_navigation_width }}">
<div id="pma_navigation_resizer"></div>
<div id="pma_navigation_collapser"></div>
<div id="pma_navigation_content">
<div id="pma_navigation_header">
{% if logo.is_displayed %}
<div id="pmalogo">
{% if logo.has_link %}
<a href="{{ logo.link|default('#') }}"{{ logo.attributes|raw }}>
{% endif %}
{% if logo.source is not empty %}
<img id="imgpmalogo" src="{{ logo.source }}" alt="phpMyAdmin">
{% else %}
<h1>phpMyAdmin</h1>
{% endif %}
{% if logo.has_link %}
</a>
{% endif %}
</div>
{% endif %}
<div id="navipanellinks">
<a href="{{ url('/') }}" title="{% trans 'Home' %}">
{{- get_image('b_home', 'Home'|trans) -}}
</a>
{% if server != 0 %}
<a class="logout disableAjax" href="{{ url('/logout') }}" title="{{ auth_type == 'config' ? 'Empty session data'|trans : 'Log out'|trans }}">
{{- get_image('s_loggoff', auth_type == 'config' ? 'Empty session data'|trans : 'Log out'|trans) -}}
</a>
{% endif %}
<a href="{{ get_docu_link('index') }}" title="{% trans 'phpMyAdmin documentation' %}" target="_blank" rel="noopener noreferrer">
{{- get_image('b_docs', 'phpMyAdmin documentation'|trans) -}}
</a>
<a href="{{ get_docu_url(is_mariadb) }}" title="{{ is_mariadb ? 'MariaDB Documentation'|trans : 'MySQL Documentation'|trans }}" target="_blank" rel="noopener noreferrer">
{{- get_image('b_sqlhelp', is_mariadb ? 'MariaDB Documentation'|trans : 'MySQL Documentation'|trans) -}}
</a>
<a id="pma_navigation_settings_icon"{{ not is_navigation_settings_enabled ? ' class="hide"' }} href="#" title="{% trans 'Navigation panel settings' %}">
{{- get_image('s_cog', 'Navigation panel settings'|trans) -}}
</a>
<a id="pma_navigation_reload" href="#" title="{% trans 'Reload navigation panel' %}">
{{- get_image('s_reload', 'Reload navigation panel'|trans) -}}
</a>
</div>
{% if is_servers_displayed and servers|length > 1 %}
<div id="serverChoice">
{{ server_select|raw }}
</div>
{% endif %}
{{ get_image('ajax_clock_small', 'Loading…'|trans, {
'style': 'visibility: hidden; display:none',
'class': 'throbber'
}) }}
</div>
<div id="pma_navigation_tree" class="list_container{{ is_synced ? ' synced' }}{{ is_highlighted ? ' highlight' }}{{ is_autoexpanded ? ' autoexpand' }}">
{% endif %}
{% if not navigation_tree %}
{{ 'An error has occurred while loading the navigation display'|trans|error }}
{% else %}
{{ navigation_tree|raw }}
{% endif %}
{% if not is_ajax %}
</div>
<div id="pma_navi_settings_container">
{% if is_navigation_settings_enabled %}
{{ navigation_settings|raw }}
{% endif %}
</div>
</div>
{% if is_drag_drop_import_enabled %}
<div class="pma_drop_handler">
{% trans 'Drop files here' %}
</div>
<div class="pma_sql_import_status">
<h2>
{% trans 'SQL upload' %}
( <span class="pma_import_count">0</span> )
<span class="close">x</span>
<span class="minimize">-</span>
</h2>
<div></div>
</div>
{% endif %}
</div>
{{ include('modals/unhide_nav_item.twig') }}
{{ include('modals/create_view.twig') }}
{% endif %}

View file

@ -0,0 +1,8 @@
<!-- CONTROLS START -->
<li id="navigation_controls_outer">
<div id="navigation_controls">
{{ collapse_all|raw }}
{{ unlink|raw }}
</div>
</li>
<!-- CONTROLS ENDS -->

View file

@ -0,0 +1,29 @@
{{ quick_warp|raw }}
<div id="pma_navigation_select_database">
{{ list_navigator|raw }}
<div id="pma_navigation_db_select">
<form action="{{ database_url }}" method="get">
{{ get_hidden_fields({'server': server}) }}
<select name="db" class="hide" id="navi_db_select" aria-label="{% trans 'Databases' %}">
{% for option in options %}
<option value="{{ option.name }}" title="{{ option.title }}"
data-apath="{{ option.data.apath }}"
data-vpath="{{ option.data.vpath }}"
data-pos="{{ option.data.pos }}"
{{ option.isSelected ? " selected" : "" }}>
{{- option.name -}}
</option>
{% endfor %}
</select>
</form>
</div>
</div>
<div id="pma_navigation_tree_content">
<ul>
{{ nodes|raw }}
</ul>
</div>

View file

@ -0,0 +1,20 @@
{% if url_params %}
<li class="fast_filter{% if is_root_node %} db_fast_filter{% endif %}">
<form class="ajax fast_filter">
{{ get_hidden_inputs(url_params) }}
<div class="input-group">
<input
class="searchClause form-control"
type="text"
name="{{ is_root_node ? 'searchClause' : 'searchClause2' }}"
accesskey="q"
aria-label="{% trans 'Type to filter these, Enter to search all' %}"
placeholder="{% trans 'Type to filter these, Enter to search all' %}"
>
<button
class="btn btn-outline-secondary searchClauseClear"
type="button" aria-label="{% trans 'Clear fast filter' %}">X</button>
</div>
</form>
</li>
{% endif %}

View file

@ -0,0 +1,72 @@
{% if show_node %}
<li class="{{ li_classes }}">
<div class="block">
<i{{ class == 'first' ? ' class="first"' }}></i>
{% if node_is_group %}
{{ 'last' not in class ? '<b></b>' }}
<a class="{{ link_classes }}" href="#">
<span class="hide paths_nav" data-apath="{{ paths.a_path }}" data-vpath="{{ paths.v_path }}" data-pos="{{ paths.pos }}"></span>
{% if pagination_params is not empty %}
<span class="hide {{ pagination_params.position }}" data-name="{{ pagination_params.data_name }}" data-value="{{ pagination_params.data_value }}"></span>
{% endif %}
{{ node_icon|raw }}
</a>
{% elseif pagination_params is not empty %}
<span class="hide {{ pagination_params.position }}" data-name="{{ pagination_params.data_name }}" data-value="{{ pagination_params.data_value }}"></span>
{% endif %}
</div>
{% if node_is_container %}
<div class="fst-italic">
{% endif %}
{% if node.isGroup %}
<div class="block second{{ has_second_icon ? ' double' }}">
<u>{{ get_image(node.icon['image'], node.icon['title']) }}</u>
</div>
&nbsp;{{ node.name }}
{% else %}
<div class="block second{{ has_second_icon ? ' double' }}">
{% for link in icon_links %}
<a href="{{ url(link.route, link.params) }}"{{ link.is_ajax ? ' class="ajax"' }}>
{{- get_image(link.image, link.title) -}}
</a>
{% endfor %}
</div>
{% if node_is_container %}
&nbsp;<a class="hover_show_full" href="{{ url(text_link.route, text_link.params) }}">{{ node.name }}</a>
{% elseif 'index' in node.classes %}
<a class="hover_show_full" href="{{ url(text_link.route) }}" data-post="{{ get_common(text_link.params|merge({'is_from_nav': true})) }}" title="{{ text_link.title }}">
{{- node.displayName ?? node.realName -}}
</a>
{% else %}
<a class="hover_show_full{{ text_link.is_ajax ? ' ajax' }}" href="{{ url(text_link.route, text_link.params) }}" title="{{ text_link.title }}">
{{- node.displayName ?? node.realName -}}
</a>
{% endif %}
{% endif %}
{{ control_buttons|raw }}
{% if node_is_container %}
</div>
{% endif %}
<div class="clearfloat"></div>
{% elseif pagination_params is not empty %}
<span class="hide {{ pagination_params.position }}" data-name="{{ pagination_params.data_name }}" data-value="{{ pagination_params.data_value }}"></span>
{% endif %}
{% if recursive.html is not empty and recursive.has_wrapper %}
<div class="list_container"{{ recursive.is_hidden ? ' style="display: none;"' }}>
<ul>
{% endif %}
{{ recursive.html|raw }}
{% if recursive.html is not empty and recursive.has_wrapper %}
</ul>
</div>
{% endif %}
{% if has_siblings %}
</li>
{% endif %}

View file

@ -0,0 +1,12 @@
<div class='list_container hide'>
<ul{{ has_search_results ? ' class="search_results"' }}>
{{ list_content|raw }}
</ul>
{% if not is_tree %}
<span class='hide loaded_db'>{{ parent_name|url_encode }}</span>
{% if list_content is empty %}
<div>{% trans 'No tables found in database.' %}</div>
{% endif %}
{% endif %}
</div>

View file

@ -0,0 +1,5 @@
<div class="pma_quick_warp">
{% if recent %}{{ recent|raw }}{% endif %}
{% if favorite %}{{ favorite|raw }}{% endif %}
<div class="clearfloat"></div>
</div>

View file

@ -0,0 +1,16 @@
{{ quick_warp|raw }}
<div class="clearfloat"></div>
<ul>
{{ fast_filter|raw }}
{{ controls|raw }}
</ul>
{{ page_selector|raw }}
<div id='pma_navigation_tree_content'>
<ul>
{{ nodes|raw }}
</ul>
</div>