fix: Syntaxfehler im Kopieren-Button der Code-Bloecke beheben
Ein Zeilenumbruch im Regex-Literal hat das Skript der Dokumentansicht abbrechen lassen, sodass kein Kopieren-Button erschien. Version auf 0.12.0 angehoben. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,7 @@ class DocumentationConfig(PluginConfig):
|
||||
name = "netbox_documentation"
|
||||
verbose_name = "NetBox Dokumentation"
|
||||
description = "Wiki und Office-Dokumentation direkt in NetBox"
|
||||
version = "0.11.1"
|
||||
version = "0.12.0"
|
||||
author = "LKE"
|
||||
base_url = "documentation"
|
||||
min_version = "4.0.0"
|
||||
|
||||
@@ -153,8 +153,7 @@
|
||||
copyButton.className = 'doc-code-copy';
|
||||
copyButton.innerHTML = '<i class="mdi mdi-content-copy"></i> Kopieren';
|
||||
copyButton.addEventListener('click', async () => {
|
||||
const text = pre.innerText.replace(/
|
||||
$/, '');
|
||||
const text = pre.innerText.trimEnd();
|
||||
try {
|
||||
await navigator.clipboard.writeText(text);
|
||||
} catch (error) {
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
||||
|
||||
[project]
|
||||
name = "netbox-documentation"
|
||||
version = "0.11.1"
|
||||
version = "0.12.0"
|
||||
description = "Integrated Markdown wiki and office document importer for NetBox"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
|
||||
Reference in New Issue
Block a user