Skip to content

Commit 1bbdda1

Browse files
abdefi00cmuench
authored andcommitted
feat: add css selectors to webhook
feat: delete background worker
1 parent 19ef7fa commit 1bbdda1

16 files changed

Lines changed: 2018 additions & 177 deletions

_locales/de/messages.json

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,63 @@
257257
"message": "Schließen",
258258
"description": "Schaltfläche zum Schließen des Gruppenverwaltungsdialogs."
259259
},
260+
"optionsSelectorsLabel": {
261+
"message": "Erfasste Selektoren",
262+
"description": "Beschriftung für den Bereich zur Verwaltung der Selektoren."
263+
},
264+
"optionsSelectorsHint": {
265+
"message": "Wählen Sie Elemente über das Popup oder fügen Sie Selektoren manuell hinzu. Maximal 10 pro Webhook.",
266+
"description": "Hinweistext, der erklärt, wie Selektoren verwaltet werden."
267+
},
268+
"optionsSelectorPlaceholder": {
269+
"message": ".main-content h1",
270+
"description": "Platzhaltertext für das Selektor-Eingabefeld."
271+
},
272+
"optionsAddSelectorButton": {
273+
"message": "Selektor hinzufügen",
274+
"description": "Button-Text zum manuellen Hinzufügen eines Selektors."
275+
},
276+
"optionsSelectorsEmptyMessage": {
277+
"message": "Noch keine Selektoren gespeichert. Verwenden Sie den Auswahlmodus im Popup oder fügen Sie einen Selektor manuell hinzu.",
278+
"description": "Hinweistext, wenn noch keine Selektoren vorhanden sind."
279+
},
280+
"optionsSelectorMoveUpButton": {
281+
"message": "",
282+
"description": "Button-Beschriftung, um einen Selektor nach oben zu verschieben."
283+
},
284+
"optionsSelectorMoveDownButton": {
285+
"message": "",
286+
"description": "Button-Beschriftung, um einen Selektor nach unten zu verschieben."
287+
},
288+
"optionsSelectorEditButton": {
289+
"message": "Bearbeiten",
290+
"description": "Button-Beschriftung zum Bearbeiten eines Selektors."
291+
},
292+
"optionsSelectorDeleteButton": {
293+
"message": "Entfernen",
294+
"description": "Button-Beschriftung zum Löschen eines Selektors."
295+
},
296+
"optionsSelectorEmptyError": {
297+
"message": "Selektor darf nicht leer sein.",
298+
"description": "Fehlermeldung, wenn das Selektor-Eingabefeld leer ist."
299+
},
300+
"optionsSelectorLimitError": {
301+
"message": "Pro Webhook können maximal $1 Selektoren gespeichert werden.",
302+
"placeholders": {
303+
"limit": {
304+
"content": "$1"
305+
}
306+
},
307+
"description": "Fehlermeldung, wenn das Selektoren-Limit überschritten wird."
308+
},
309+
"optionsSelectorDuplicateError": {
310+
"message": "Dieser Selektor ist bereits vorhanden.",
311+
"description": "Fehlermeldung, wenn ein Selektor doppelt vorkommt."
312+
},
313+
"optionsSelectorEditPrompt": {
314+
"message": "Selektor bearbeiten",
315+
"description": "Prompt-Text beim Bearbeiten eines Selektors."
316+
},
260317
"optionsImportInfo": {
261318
"message": "Beim Import werden vorhandene Webhooks ersetzt.",
262319
"description": "Hinweistext neben dem Import-Button."
@@ -300,5 +357,117 @@
300357
"optionsCloseAppearanceButton": {
301358
"message": "Schließen",
302359
"description": "Schaltfläche zum Schließen des Erscheinungsbild-Dialogs."
360+
},
361+
"popupResponseHeader": {
362+
"message": "Letzte Antwort",
363+
"description": "Überschrift für den Antwortbereich im Popup."
364+
},
365+
"popupCopyResponseButton": {
366+
"message": "Kopieren",
367+
"description": "Buttonbeschriftung zum Kopieren der Antwort."
368+
},
369+
"popupCopySuccess": {
370+
"message": "Antwort wurde in die Zwischenablage kopiert.",
371+
"description": "Statusmeldung, wenn das Kopieren erfolgreich war."
372+
},
373+
"popupCopyError": {
374+
"message": "Antwort konnte nicht kopiert werden.",
375+
"description": "Statusmeldung, wenn das Kopieren fehlgeschlagen ist."
376+
},
377+
"popupCaptureButtonLabel": {
378+
"message": "Auswahl ($1/$2)",
379+
"placeholders": {
380+
"current": {
381+
"content": "$1"
382+
},
383+
"max": {
384+
"content": "$2"
385+
}
386+
},
387+
"description": "Beschriftung für den Button zum Erfassen von Selektoren. Platzhalter für aktuelle Anzahl und Maximum."
388+
},
389+
"popupCaptureLimitReachedTooltip": {
390+
"message": "Maximal $1 Selektoren erreicht.",
391+
"placeholders": {
392+
"limit": {
393+
"content": "$1"
394+
}
395+
},
396+
"description": "Hinweis, wenn das Selektoren-Limit erreicht wurde."
397+
},
398+
"popupCaptureStarted": {
399+
"message": "Auswahlmodus aktiv. $1 Selektoren verbleiben. Klicken Sie auf Elemente, um Text zu speichern, drücken Sie Esc zum Beenden.",
400+
"placeholders": {
401+
"remaining": {
402+
"content": "$1"
403+
}
404+
},
405+
"description": "Statusmeldung nach dem Start des Auswahlmodus."
406+
},
407+
"popupCaptureStartError": {
408+
"message": "Auswahlmodus konnte nicht gestartet werden. Bitte laden Sie die Seite neu.",
409+
"description": "Statusmeldung, wenn der Auswahlmodus nicht gestartet werden konnte."
410+
},
411+
"popupCaptureContentNotAvailable": {
412+
"message": "Für diese Seite steht kein Auswahlmodus zur Verfügung.",
413+
"description": "Hinweis, wenn das Inhalts-Skript nicht geladen werden kann oder die Seite blockiert ist."
414+
},
415+
"popupNoActiveTabError": {
416+
"message": "Kein aktiver Tab gefunden.",
417+
"description": "Fehlermeldung, wenn kein aktiver Tab vorhanden ist."
418+
},
419+
"popupCaptureDuplicate": {
420+
"message": "Dieses Element wurde bereits erfasst.",
421+
"description": "Statusmeldung, wenn derselbe Selektor erneut erfasst wird."
422+
},
423+
"popupCaptureSaved": {
424+
"message": "„$1“ gespeichert. $2 Selektoren verbleiben.",
425+
"placeholders": {
426+
"preview": {
427+
"content": "$1"
428+
},
429+
"remaining": {
430+
"content": "$2"
431+
}
432+
},
433+
"description": "Statusmeldung, wenn ein Selektor erfolgreich erfasst wurde."
434+
},
435+
"popupCaptureGenericError": {
436+
"message": "Dieses Element kann nicht erfasst werden.",
437+
"description": "Allgemeine Fehlermeldung, wenn die Auswahl fehlschlägt."
438+
},
439+
"popupCaptureEmptyText": {
440+
"message": "Das ausgewählte Element enthält keinen Text.",
441+
"description": "Fehlermeldung, wenn das Element keinen Text besitzt."
442+
},
443+
"popupCaptureNoSelector": {
444+
"message": "Für dieses Element konnte kein Selektor bestimmt werden.",
445+
"description": "Fehlermeldung, wenn kein Selektor generiert werden kann."
446+
},
447+
"popupCaptureEnded": {
448+
"message": "Auswahlmodus beendet. Es können bis zu $1 Selektoren gespeichert werden.",
449+
"placeholders": {
450+
"limit": {
451+
"content": "$1"
452+
}
453+
},
454+
"description": "Statusmeldung, wenn der Auswahlmodus endet."
455+
},
456+
"popupCaptureCancelled": {
457+
"message": "Auswahl abgebrochen. Bis zu $1 Selektoren können gespeichert werden.",
458+
"placeholders": {
459+
"limit": {
460+
"content": "$1"
461+
}
462+
},
463+
"description": "Statusmeldung, wenn der Auswahlmodus abgebrochen wird."
464+
},
465+
"popupCaptureUnsupported": {
466+
"message": "Der Auswahlmodus ist in diesem Kontext nicht verfügbar.",
467+
"description": "Wird angezeigt, wenn der Browser den Auswahlmodus nicht unterstützt."
468+
},
469+
"selectorCaptureTooltip": {
470+
"message": "Klicken Sie auf Elemente, um deren Text zu erfassen. Drücken Sie Esc zum Beenden.",
471+
"description": "Tooltip, der im Auswahlmodus angezeigt wird."
303472
}
304473
}

_locales/en/messages.json

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,63 @@
257257
"message": "Close",
258258
"description": "Button to close the group management modal."
259259
},
260+
"optionsSelectorsLabel": {
261+
"message": "Captured selectors",
262+
"description": "Label for the selectors management section."
263+
},
264+
"optionsSelectorsHint": {
265+
"message": "Select elements via the popup or add selectors manually. Maximum of 10 per webhook.",
266+
"description": "Helper text explaining how selectors are managed."
267+
},
268+
"optionsSelectorPlaceholder": {
269+
"message": ".main-content h1",
270+
"description": "Placeholder text for the selector input."
271+
},
272+
"optionsAddSelectorButton": {
273+
"message": "Add selector",
274+
"description": "Button text to add a selector manually."
275+
},
276+
"optionsSelectorsEmptyMessage": {
277+
"message": "No selectors saved yet. Use the popup capture mode or add one manually.",
278+
"description": "Message shown when no selectors are stored."
279+
},
280+
"optionsSelectorMoveUpButton": {
281+
"message": "",
282+
"description": "Button label to move a selector up."
283+
},
284+
"optionsSelectorMoveDownButton": {
285+
"message": "",
286+
"description": "Button label to move a selector down."
287+
},
288+
"optionsSelectorEditButton": {
289+
"message": "Edit",
290+
"description": "Button label to edit a selector."
291+
},
292+
"optionsSelectorDeleteButton": {
293+
"message": "Remove",
294+
"description": "Button label to delete a selector."
295+
},
296+
"optionsSelectorEmptyError": {
297+
"message": "Selector cannot be empty.",
298+
"description": "Error shown when the selector input is empty."
299+
},
300+
"optionsSelectorLimitError": {
301+
"message": "You can store up to $1 selectors per webhook.",
302+
"placeholders": {
303+
"limit": {
304+
"content": "$1"
305+
}
306+
},
307+
"description": "Error shown when the selector limit is exceeded."
308+
},
309+
"optionsSelectorDuplicateError": {
310+
"message": "This selector is already on the list.",
311+
"description": "Error shown when the selector already exists."
312+
},
313+
"optionsSelectorEditPrompt": {
314+
"message": "Edit selector",
315+
"description": "Prompt message shown when editing a selector."
316+
},
260317
"optionsImportInfo": {
261318
"message": "Importing replaces all existing webhooks.",
262319
"description": "Information text shown next to the import button."
@@ -301,5 +358,117 @@
301358
"optionsCloseAppearanceButton": {
302359
"message": "Close",
303360
"description": "Button to close the appearance modal."
361+
},
362+
"popupResponseHeader": {
363+
"message": "Latest Response",
364+
"description": "Header for the response panel in the popup."
365+
},
366+
"popupCopyResponseButton": {
367+
"message": "Copy",
368+
"description": "Button label for copying the webhook response."
369+
},
370+
"popupCopySuccess": {
371+
"message": "Response copied to clipboard.",
372+
"description": "Status message shown when copying the response succeeds."
373+
},
374+
"popupCopyError": {
375+
"message": "Unable to copy the response.",
376+
"description": "Status message shown when copying the response fails."
377+
},
378+
"popupCaptureButtonLabel": {
379+
"message": "Capture ($1/$2)",
380+
"placeholders": {
381+
"current": {
382+
"content": "$1"
383+
},
384+
"max": {
385+
"content": "$2"
386+
}
387+
},
388+
"description": "Label for the selector capture button. Placeholders are current count and max selectors."
389+
},
390+
"popupCaptureLimitReachedTooltip": {
391+
"message": "Maximum of $1 selectors reached.",
392+
"placeholders": {
393+
"limit": {
394+
"content": "$1"
395+
}
396+
},
397+
"description": "Tooltip or status message shown when the selector limit is reached."
398+
},
399+
"popupCaptureStarted": {
400+
"message": "Capture mode active. $1 selectors remaining. Click elements to save text, press Esc to stop.",
401+
"placeholders": {
402+
"remaining": {
403+
"content": "$1"
404+
}
405+
},
406+
"description": "Status message shown after capture mode starts."
407+
},
408+
"popupCaptureStartError": {
409+
"message": "Failed to start selector capture. Try reloading the page.",
410+
"description": "Status message shown when capture mode cannot be started."
411+
},
412+
"popupCaptureContentNotAvailable": {
413+
"message": "No eligible content for selector capture on this page.",
414+
"description": "Warning shown when the content script is unavailable or the page blocks injection."
415+
},
416+
"popupNoActiveTabError": {
417+
"message": "Unable to find an active tab.",
418+
"description": "Error shown when there is no active tab."
419+
},
420+
"popupCaptureDuplicate": {
421+
"message": "You already captured this element.",
422+
"description": "Status message shown when the same selector is captured twice."
423+
},
424+
"popupCaptureSaved": {
425+
"message": "Saved “$1”. $2 selectors remaining.",
426+
"placeholders": {
427+
"preview": {
428+
"content": "$1"
429+
},
430+
"remaining": {
431+
"content": "$2"
432+
}
433+
},
434+
"description": "Status message shown when a selector has been captured successfully. First placeholder is a preview of the text, second is remaining count."
435+
},
436+
"popupCaptureGenericError": {
437+
"message": "Unable to capture this element.",
438+
"description": "Generic error shown when capture fails."
439+
},
440+
"popupCaptureEmptyText": {
441+
"message": "The selected element does not contain any text.",
442+
"description": "Error shown when the element has no text content."
443+
},
444+
"popupCaptureNoSelector": {
445+
"message": "Could not determine a selector for this element.",
446+
"description": "Error shown when a selector cannot be generated."
447+
},
448+
"popupCaptureEnded": {
449+
"message": "Capture mode ended. You can store up to $1 selectors.",
450+
"placeholders": {
451+
"limit": {
452+
"content": "$1"
453+
}
454+
},
455+
"description": "Status message shown when capture mode stops."
456+
},
457+
"popupCaptureCancelled": {
458+
"message": "Capture cancelled. Up to $1 selectors can be saved.",
459+
"placeholders": {
460+
"limit": {
461+
"content": "$1"
462+
}
463+
},
464+
"description": "Status message shown when the user cancels capture mode."
465+
},
466+
"popupCaptureUnsupported": {
467+
"message": "Selector capture is not available in this context.",
468+
"description": "Displayed when the browser does not support selector capture in the current environment."
469+
},
470+
"selectorCaptureTooltip": {
471+
"message": "Click elements to capture their text. Press Esc to stop.",
472+
"description": "Tooltip shown during selector capture mode."
304473
}
305474
}

0 commit comments

Comments
 (0)