web: add link to open API Browser for API Drawer

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-12-14 16:03:42 +01:00
parent 5bf3d7fe02
commit 05db352a0f
5 changed files with 32 additions and 4 deletions

View File

@ -4,7 +4,7 @@ UID = $(shell id -u)
GID = $(shell id -g)
NPM_VERSION = $(shell python -m scripts.npm_version)
all: lint-fix lint test gen
all: lint-fix lint test gen web
test-integration:
coverage run manage.py test tests/integration

View File

@ -102,6 +102,7 @@ export class APIDrawer extends LitElement {
<div class="pf-c-notification-drawer__header">
<div class="text">
<h1 class="pf-c-notification-drawer__header-title">${t`API Requests`}</h1>
<a href="/api/v3/" target="_blank">${t`Open API Browser`}</a>
</div>
<div class="pf-c-notification-drawer__header-action">
<div class="pf-c-notification-drawer__header-action-close">

View File

@ -3211,6 +3211,10 @@ msgstr "Only fail the policy, don't invalidate user's password."
msgid "Only send notification once, for example when sending a webhook into a chat channel."
msgstr "Only send notification once, for example when sending a webhook into a chat channel."
#: src/elements/notifications/APIDrawer.ts
msgid "Open API Browser"
msgstr "Open API Browser"
#:
#~ msgid "Open application"
#~ msgstr "Open application"
@ -4766,6 +4770,7 @@ msgid "Superuser-groups"
msgstr "Superuser-groups"
#: src/pages/admin-overview/charts/UserCountStatusChart.ts
#: src/pages/admin-overview/charts/UserOverTimeStatusChart.ts
msgid "Superusers"
msgstr "Superusers"
@ -5129,6 +5134,7 @@ msgid "Total policies"
msgstr "Total policies"
#: src/pages/admin-overview/charts/UserCountStatusChart.ts
#: src/pages/admin-overview/charts/UserOverTimeStatusChart.ts
msgid "Total users"
msgstr "Total users"
@ -5538,6 +5544,10 @@ msgstr "User interface"
msgid "User matching mode"
msgstr "User matching mode"
#: src/pages/admin-overview/UserDashboardPage.ts
msgid "User metrics"
msgstr "User metrics"
#: src/pages/sources/ldap/LDAPSourceForm.ts
msgid "User object filter"
msgstr "User object filter"
@ -5768,7 +5778,6 @@ msgid "Webhook URL"
msgstr "Webhook URL"
#: src/pages/admin-overview/AdminOverviewPage.ts
#: src/pages/admin-overview/UserDashboardPage.ts
msgid "Welcome, {name}."
msgstr "Welcome, {name}."

View File

@ -3187,6 +3187,10 @@ msgstr "Faire simplement échouer la politique sans invalider le mot de passe ut
msgid "Only send notification once, for example when sending a webhook into a chat channel."
msgstr "Envoyer une seule fois la notification, par exemple lors de l'envoi d'un webhook dans un canal de discussion."
#: src/elements/notifications/APIDrawer.ts
msgid "Open API Browser"
msgstr ""
#~ msgid "Open application"
#~ msgstr "Ouvrir l'appication"
@ -4722,6 +4726,7 @@ msgid "Superuser-groups"
msgstr "Groupes de super-utilisateur"
#: src/pages/admin-overview/charts/UserCountStatusChart.ts
#: src/pages/admin-overview/charts/UserOverTimeStatusChart.ts
msgid "Superusers"
msgstr "Super-utilisateurs"
@ -5070,6 +5075,7 @@ msgid "Total policies"
msgstr "Politiques totales"
#: src/pages/admin-overview/charts/UserCountStatusChart.ts
#: src/pages/admin-overview/charts/UserOverTimeStatusChart.ts
msgid "Total users"
msgstr "Utilisateurs totaux"
@ -5476,6 +5482,10 @@ msgstr "Interface utilisateur"
msgid "User matching mode"
msgstr "Mode de correspondance utilisateur"
#: src/pages/admin-overview/UserDashboardPage.ts
msgid "User metrics"
msgstr ""
#: src/pages/sources/ldap/LDAPSourceForm.ts
msgid "User object filter"
msgstr "Filtre des objets utilisateur"
@ -5706,7 +5716,6 @@ msgid "Webhook URL"
msgstr "URL Webhoo"
#: src/pages/admin-overview/AdminOverviewPage.ts
#: src/pages/admin-overview/UserDashboardPage.ts
msgid "Welcome, {name}."
msgstr ""

View File

@ -3201,6 +3201,10 @@ msgstr ""
msgid "Only send notification once, for example when sending a webhook into a chat channel."
msgstr ""
#: src/elements/notifications/APIDrawer.ts
msgid "Open API Browser"
msgstr ""
#:
#~ msgid "Open application"
#~ msgstr ""
@ -4756,6 +4760,7 @@ msgid "Superuser-groups"
msgstr ""
#: src/pages/admin-overview/charts/UserCountStatusChart.ts
#: src/pages/admin-overview/charts/UserOverTimeStatusChart.ts
msgid "Superusers"
msgstr ""
@ -5109,6 +5114,7 @@ msgid "Total policies"
msgstr ""
#: src/pages/admin-overview/charts/UserCountStatusChart.ts
#: src/pages/admin-overview/charts/UserOverTimeStatusChart.ts
msgid "Total users"
msgstr ""
@ -5518,6 +5524,10 @@ msgstr ""
msgid "User matching mode"
msgstr ""
#: src/pages/admin-overview/UserDashboardPage.ts
msgid "User metrics"
msgstr ""
#: src/pages/sources/ldap/LDAPSourceForm.ts
msgid "User object filter"
msgstr ""
@ -5748,7 +5758,6 @@ msgid "Webhook URL"
msgstr ""
#: src/pages/admin-overview/AdminOverviewPage.ts
#: src/pages/admin-overview/UserDashboardPage.ts
msgid "Welcome, {name}."
msgstr ""