Files
NetBox-Concept/pyproject.toml
T
MrBlakeandClaude Sonnet 5 41141ec318 v0.2.2: support dragging a device between front and rear elevations
Front and rear panels already share one coordinate system (same
UNIT_HEIGHT, RACK_X, ...), just placed side by side on screen, so the
existing delta-based drag math is equally valid for a drop on the
other panel - only needed to detect which face the pointer ended up
over (elementFromPoint at drop time) and include it as `face` in the
submitted move; the reorder endpoint already supported changing it.

Also fixed a bug this surfaced: without pointer-events: none on the
dragged block during the drag, elementFromPoint() at drop time always
hit the dragged block itself (it's what's rendered under the cursor),
never the panel actually underneath - cross-face drops would never
have been detected. Pointer capture keeps delivering move/up events to
the block regardless of its own pointer-events value, so this is safe.

Added overflow: visible on the elevation SVGs so a device being
dragged toward the other panel doesn't just vanish at its own SVG's
edge mid-drag.

Updated the German translation for the changed drag-hint string.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-16 13:50:57 +02:00

34 lines
968 B
TOML

[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "netbox-rack-concept"
version = "0.2.2"
description = "Rack blueprints for NetBox: plan racks and their equipment without creating real racks or devices"
readme = "README.md"
requires-python = ">=3.12"
license = { text = "MIT" }
authors = [{ name = "Louis" }]
keywords = ["netbox", "netbox-plugin", "dcim", "planning"]
classifiers = [
"Framework :: Django",
"Programming Language :: Python :: 3.12",
"Intended Audience :: System Administrators",
]
[project.urls]
Homepage = "https://github.com/example/netbox-rack-concept"
[tool.setuptools.packages.find]
include = ["netbox_rack_concept*"]
[tool.setuptools.package-data]
netbox_rack_concept = [
"templates/netbox_rack_concept/*.html",
"templates/netbox_rack_concept/inc/*.html",
"static/netbox_rack_concept/*",
"locale/*/LC_MESSAGES/*.po",
"locale/*/LC_MESSAGES/*.mo",
]