ShareLinks: rename menu action to ShareLink with a share icon; rewrite README

Rename the injected context-menu action from 'Create guest link' to
'ShareLink' and swap its cloned copy icon (content_copy) for the share
icon, matching the other menu items' style.

Replace the placeholder scaffold README with a user-facing one describing
what the plugin does, the server-side guest confinement, configuration,
and the known Jellyfin cast/crew tag bug (jellyfin/jellyfin#14926).
Cette révision appartient à :
Franciskid
2026-07-07 00:50:08 +02:00
Parent 0fecbb6697
révision 20160b3cbb
2 fichiers modifiés avec 107 ajouts et 64 suppressions
+9 -2
Voir le fichier
@@ -1,8 +1,8 @@
(function () {
var pluginId = '68540b76-ee74-436d-85ff-2abc884bbea6';
var copyLabel = 'Copy Stream URL';
var actionLabel = 'Create guest link';
var clientVersion = '1.0.0-ui-modal-8';
var actionLabel = 'ShareLink';
var clientVersion = '1.0.0-ui-modal-9';
var allowedItemStorageKey = 'sharelinks.allowedItemId';
var guestClassName = 'sharelinks-guest';
var hiddenAttr = 'data-sharelinks-hidden';
@@ -435,6 +435,13 @@
injected.setAttribute('aria-label', actionLabel);
injected.setAttribute('title', actionLabel);
injected.dataset.sharelinksItemId = itemId;
var injectedIcon = injected.querySelector('.material-icons');
if (injectedIcon) {
injectedIcon.classList.remove('content_copy');
injectedIcon.classList.add('share');
}
injected.addEventListener('click', function (event) {
event.preventDefault();
event.stopPropagation();