Skip to content

Commit

Permalink
438 beta release for netbox v370 (#439)
Browse files Browse the repository at this point in the history
* 3.9.0

* 3.9-beta1
  • Loading branch information
mattieserver authored Jan 2, 2024
1 parent 374a882 commit 50c90a4
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 131 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ python3 manage.py collectstatic --no-input

| netbox version | netbox-topology-views version |
| -------------- | ----------------------------- |
| >= 3.7.0 | >= v3.9.0 |
| >= 3.6.4 | >= v3.8.1 |
| >= 3.6.0 | >= v3.7.X |
| >= 3.5.0 | >= v3.4.X |
Expand Down
2 changes: 1 addition & 1 deletion netbox_topology_views/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class TopologyViewsConfig(PluginConfig):
name = "netbox_topology_views"
verbose_name = "Topology views"
description = "An plugin to render topology maps"
version = "3.8.1"
version = "3.9-beta1"
author = "Mattijs Vanhaverbeke"
author_email = "[email protected]"
base_url = "netbox_topology_views"
Expand Down
24 changes: 1 addition & 23 deletions netbox_topology_views/static/netbox_topology_views/css/app.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 17 additions & 17 deletions netbox_topology_views/static/netbox_topology_views/js/app.js

Large diffs are not rendered by default.

81 changes: 28 additions & 53 deletions netbox_topology_views/static_dev/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions netbox_topology_views/static_dev/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"private": true,
"name": "netbox_topology_views",
"version": "3.8.1",
"version": "3.9-beta1",
"scripts": {
"bundle": "node bundle.js",
"bundle:styles": "node bundle.js --styles",
"bundle:scripts": "node bundle.js --scripts"
},
"dependencies": {
"vis-data": "^7.1.6",
"vis-network": "^9.1.6",
"vis-util": "^5.0.3"
"vis-data": "^7.1.9",
"vis-network": "^9.1.9",
"vis-util": "^5.0.7"
},
"devDependencies": {
"@egjs/hammerjs": "^2.0.0",
Expand Down
34 changes: 2 additions & 32 deletions netbox_topology_views/templates/netbox_topology_views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,37 +79,7 @@
<script type="text/javascript">
const brokenImage = '{{ broken_image }}';
const topologyData = {{ topology_data | safe }};
const basePath = '{{ basepath }}';

window.addEventListener("resize", resizeCanvas);
resizeCanvas();

function resizeCanvas() {
heightToSubtract = getElementHeight('.navbar') +
getElementHeight('.title-container') +
getElementHeight('#tabswrapper') +
getElementHeight('#filterwrapper') +
getElementHeight('.footer') +
getElementPadding('#tabcontentwrapper');

document.getElementById("visgraph").style.height = "calc(100vh - " + heightToSubtract + "px)";
}

function getElementPadding(element) {
el = document.querySelector(element);
els = getComputedStyle(el);
padding = parseInt(els.paddingTop) + parseInt(els.paddingBottom);

return padding;
}

function getElementHeight(element) {
el = document.querySelector(element);
els = getComputedStyle(el);
height = el.offsetHeight + parseInt(els.marginTop) + parseInt(els.marginBottom);

return height;
}
</script>
const basePath = '{{ basepath }}';
</script>
<script src="{% static 'netbox_topology_views/js/app.js' %}" defer></script>
{% endblock javascript %}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name="netbox-topology-views",
version="3.8.1",
version="3.9-beta1",
description="An NetBox plugin to create Topology maps",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 50c90a4

Please sign in to comment.