Feature: Add customisable icons in topology (#193)

* [up] add config for custom images, better js

* [up] use bundler to bundle js

* [fix] remove domcontentloaded since defer is used

* [fix] formatting with black

* [fix] images drf api

* [up] add support for custom icons on additional roles: power panel, power feed, circuit

* [up] optimize topology generation by using `_id` when trying to access pk of related object

* [fix] kebab case instead of slugification

* [fix] use empty queryset in api views & change coord save logic
This commit is contained in:
Victor Gorchilov
2022-12-09 13:40:39 +01:00
committed by GitHub
parent 5c87694b87
commit 52c2611e9d
30 changed files with 1395 additions and 628 deletions
+17 -17
View File
@@ -1,29 +1,29 @@
from setuptools import setup, find_packages
from pathlib import Path
from os import path
top_level_directory = path.abspath(path.dirname(__file__))
with open(path.join(top_level_directory, 'README.md'), encoding='utf-8') as file:
long_description = file.read()
from setuptools import find_packages, setup
readme = Path(__file__).parent / "README.md"
long_description = readme.read_text()
setup(
name='netbox-topology-views',
version='3.0.1',
description='An NetBox plugin to create Topology maps',
name="netbox-topology-views",
version="3.0.1",
description="An NetBox plugin to create Topology maps",
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/mattieserver/netbox-topology-views',
author='Mattijs Vanhaverbeke',
license='Apache 2.0',
long_description_content_type="text/markdown",
url="https://github.com/mattieserver/netbox-topology-views",
author="Mattijs Vanhaverbeke",
license="Apache 2.0",
install_requires=[],
packages=find_packages(),
include_package_data=True,
keywords=['netbox-plugin'],
keywords=["netbox-plugin"],
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
],
project_urls={
'Source': 'https://github.com/mattieserver/netbox-topology-views',
"Source": "https://github.com/mattieserver/netbox-topology-views",
},
)