2024-02-19 00:03:14 +01:00
|
|
|
{% extends "layout.html.twig" %}
|
2016-02-16 20:18:59 +01:00
|
|
|
|
2016-03-16 23:56:42 +01:00
|
|
|
{% block title %}{{ 'developer.page_title'|trans }}{% endblock %}
|
2016-02-16 20:18:59 +01:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col s12">
|
|
|
|
<div class="card-panel settings">
|
|
|
|
|
|
|
|
<div class="row">
|
2016-03-16 23:56:42 +01:00
|
|
|
<h3>{{ 'developer.welcome_message'|trans }}</h3>
|
2016-02-16 20:18:59 +01:00
|
|
|
|
2016-03-16 23:56:42 +01:00
|
|
|
<h4>{{ 'developer.documentation'|trans }}</h4>
|
2016-02-16 20:18:59 +01:00
|
|
|
|
|
|
|
<ul>
|
2016-03-16 23:56:42 +01:00
|
|
|
<li><a href="{{ path('developer_howto_firstapp') }}">{{ 'developer.how_to_first_app'|trans }}</a></li>
|
2017-05-13 09:33:19 +02:00
|
|
|
<li><a href="https://doc.wallabag.org/en/developer/api/readme.html">{{ 'developer.full_documentation'|trans }}</a></li>
|
2022-11-06 13:00:41 +01:00
|
|
|
<li><a href="{{ path('nelmio_api_doc.swagger_ui') }}">{{ 'developer.list_methods'|trans }}</a></li>
|
2016-02-16 20:18:59 +01:00
|
|
|
</ul>
|
|
|
|
|
2016-03-16 23:56:42 +01:00
|
|
|
<h4>{{ 'developer.clients.title'|trans }}</h4>
|
2016-02-16 20:18:59 +01:00
|
|
|
<ul>
|
2017-12-28 10:21:28 +01:00
|
|
|
<li><a href="{{ path('developer_create_client') }}" class="waves-effect waves-light btn">{{ 'developer.clients.create_new'|trans }}</a></li>
|
2016-02-16 20:18:59 +01:00
|
|
|
</ul>
|
|
|
|
|
2016-03-16 23:56:42 +01:00
|
|
|
<h4>{{ 'developer.existing_clients.title'|trans }}</h4>
|
2016-03-05 21:44:39 +01:00
|
|
|
{% if clients %}
|
|
|
|
<ul class="collapsible" data-collapsible="expandable">
|
|
|
|
{% for client in clients %}
|
|
|
|
<li>
|
2016-05-21 18:09:38 +02:00
|
|
|
<div class="collapsible-header">{{ client.name }} - #{{ client.id }}</div>
|
2016-03-05 21:44:39 +01:00
|
|
|
<div class="collapsible-body">
|
|
|
|
<table class="striped">
|
|
|
|
<tr>
|
2016-03-16 23:56:42 +01:00
|
|
|
<td>{{ 'developer.existing_clients.field_id'|trans }}</td>
|
2019-07-09 13:22:50 +02:00
|
|
|
<td>
|
|
|
|
<strong><code>{{ client.clientId }}</code></strong>
|
|
|
|
<button class="btn" data-clipboard-text="{{ client.clientId }}">{{ 'developer.client.copy_to_clipboard'|trans }}</button>
|
|
|
|
</td>
|
2016-03-05 21:44:39 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2016-03-16 23:56:42 +01:00
|
|
|
<td>{{ 'developer.existing_clients.field_secret'|trans }}</td>
|
2019-07-09 13:22:50 +02:00
|
|
|
<td>
|
|
|
|
<strong><code>{{ client.secret }}</code></strong>
|
|
|
|
<button class="btn" data-clipboard-text="{{ client.secret }}">{{ 'developer.client.copy_to_clipboard'|trans }}</button>
|
|
|
|
</td>
|
2016-03-05 21:44:39 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2016-03-16 23:56:42 +01:00
|
|
|
<td>{{ 'developer.existing_clients.field_uris'|trans }}</td>
|
2016-03-05 21:44:39 +01:00
|
|
|
<td><strong><code>{{ client.redirectUris|json_encode() }}</code></strong></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2016-03-16 23:56:42 +01:00
|
|
|
<td>{{ 'developer.existing_clients.field_grant_types'|trans }}</td>
|
2016-03-05 21:44:39 +01:00
|
|
|
<td><strong><code>{{ client.allowedGrantTypes|json_encode() }}</code></strong></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2019-07-09 13:22:50 +02:00
|
|
|
|
2022-05-03 23:28:20 +02:00
|
|
|
<p>{{ 'developer.remove.warn_message_1'|trans({'%name%': client.name}) }}</p>
|
|
|
|
<p>{{ 'developer.remove.warn_message_2'|trans({'%name%': client.name}) }}</p>
|
2023-08-21 10:51:17 +02:00
|
|
|
<form action="{{ path('developer_delete_client', {id: client.id}) }}" method="post" name="delete-client">
|
2023-07-29 10:31:51 +02:00
|
|
|
<input type="hidden" name="token" value="{{ csrf_token('delete-client') }}" />
|
|
|
|
|
|
|
|
<button class="waves-effect waves-light btn red" type="submit">{{ 'developer.remove.action'|trans({'%name%': client.name}) }}</button>
|
|
|
|
</form>
|
2016-03-05 21:44:39 +01:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% else %}
|
2016-03-16 23:56:42 +01:00
|
|
|
{{ 'developer.existing_clients.no_client'|trans }}
|
2016-03-05 21:44:39 +01:00
|
|
|
{% endif %}
|
2016-02-16 20:18:59 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|