mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-08-10 15:21:22 +02:00
feat: PeerTube integration — alternate audio/video labels, FilePond pools, shared SMTP credentials, channel by name, test button, resumable upload, embed improvements, fix alt labels/curl_close/deprecation
This commit is contained in:
@@ -222,6 +222,11 @@
|
||||
</label>
|
||||
</fieldset>
|
||||
|
||||
<p class="param-note">
|
||||
ℹ L'authentification PeerTube utilise les mêmes identifiants que le
|
||||
<strong>relay SMTP</strong> configuré ci-dessus.
|
||||
</p>
|
||||
|
||||
<div class="param-grid">
|
||||
<div>
|
||||
<label for="peertube_instance_url">URL de l'instance PeerTube</label>
|
||||
@@ -232,26 +237,11 @@
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="peertube_username">Nom d'utilisateur</label>
|
||||
<input type="text" id="peertube_username" name="peertube_username"
|
||||
value="<?= htmlspecialchars($peerTubeSettings['username']) ?>"
|
||||
autocomplete="username">
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="peertube_password">Mot de passe</label>
|
||||
<input type="password" id="peertube_password" name="peertube_password"
|
||||
value=""
|
||||
autocomplete="new-password"
|
||||
placeholder="Laissez vide pour ne pas modifier">
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="peertube_channel_id">ID de la chaîne</label>
|
||||
<input type="number" id="peertube_channel_id" name="peertube_channel_id"
|
||||
value="<?= (int)$peerTubeSettings['channel_id'] ?>"
|
||||
min="1">
|
||||
<small>Identifiant numérique de la chaîne PeerTube cible.</small>
|
||||
<label for="peertube_channel_name">Nom de la chaîne</label>
|
||||
<input type="text" id="peertube_channel_name" name="peertube_channel_name"
|
||||
value="<?= htmlspecialchars($peerTubeSettings['channel_name'] ?? '') ?>"
|
||||
placeholder="xamxam_erg.be_channel@videos.erg.be">
|
||||
<small>Identifiant complet de la chaîne (handle), ex : <code>nom_de_chaîne@hôte</code>.</small>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
@@ -265,6 +255,15 @@
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn--primary">Enregistrer</button>
|
||||
<button type="button" class="btn btn--secondary" id="peertube-test-btn"
|
||||
hx-post="/admin/actions/peertube-test.php"
|
||||
hx-target="#peertube-test-result"
|
||||
hx-include="closest form"
|
||||
hx-indicator="#peertube-test-spinner">
|
||||
Tester la connexion
|
||||
</button>
|
||||
<span id="peertube-test-spinner" class="htmx-indicator" style="display:none;margin-left:var(--space-xs);">⏳</span>
|
||||
<div id="peertube-test-result" style="margin-top:var(--space-xs);"></div>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user