mirror of
https://github.com/skylanix/MamieHenriette.git
synced 2026-02-06 14:50:34 +01:00
58 lines
2.1 KiB
HTML
58 lines
2.1 KiB
HTML
{% extends "template.html" %}
|
|
|
|
{% block content %}
|
|
<h1>Proton DB</h1>
|
|
<p>ProtonDB évalue la compatibilité des jeux Windows sur Linux via Steam Play.</p>
|
|
|
|
<h2>Configuration</h2>
|
|
<form action="{{ url_for('updateConfiguration') }}" method="POST">
|
|
<label for="proton_db_enable_enable">Activer</label>
|
|
<input type="checkbox" name="proton_db_enable_enable" {% if configuration.getValue('proton_db_enable_enable') %}
|
|
checked="checked" {% endif %}>
|
|
<label>Activer la commande Proton DB</label>
|
|
<label for="proton_db_api_id">Api ID</label>
|
|
<input name="proton_db_api_id" type="text" value="{{ configuration.getValue('proton_db_api_id') }}" />
|
|
<label for="proton_db_api_key">Api KEY</label>
|
|
<input name="proton_db_api_key" type="text" value="{{ configuration.getValue('proton_db_api_key') }}" />
|
|
<input type="Submit" value="Définir">
|
|
<p>Pour trouver les clés, dans votre navigateur avec l'outil d'inspection ouvert (F12 ou clic droit > Inspecter
|
|
l'élément dans Firefox/Chrome) faites une recherche de jeux sur protondb,
|
|
puis chercher les clés dans les requêtes (onglet Réseau/Network),
|
|
<a href="/static/img/algolia-key.jpg" target="_blank">comme le montre cet exemple</a>
|
|
</p>
|
|
</form>
|
|
|
|
<h2>Game alias</h2>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Alias</th>
|
|
<th>Game</th>
|
|
<th>#</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for a in aliases %}
|
|
<tr>
|
|
<td>{{a.alias}}</td>
|
|
<td>{{a.name}}</td>
|
|
<td><a href="{{ url_for('delGameAlias', id = a.id) }}"
|
|
onclick="return confirm('Êtes-vous sûr de vouloir supprimer cet alias ?')">Supprimer</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<h2>Ajouter un Alias</h2>
|
|
<form action="{{ url_for('addGameAlias') }}" method="POST">
|
|
<label for="alias">Alias</label>
|
|
<input name="alias" type="text" maxlength="32" required="required" />
|
|
<label for="name">Nom</label>
|
|
<input name="name" type="text" maxlength="256" required="required" />
|
|
<input type="Submit" value="Ajouter">
|
|
<p>Si vous créer un alias <strong>GTA : Grand Theft Auto</strong> alors si un utilisateur rentre la commande
|
|
<strong>!protondb GTA 5</strong> cela fera une recherche sur <strong>Grand Theft Auto 5</strong>.
|
|
</p>
|
|
</form>
|
|
|
|
{% endblock %} |