Added support to generic DC Icons #92. Added a blank icon to support #39

pull/171/head
Leandro Damascena 5 years ago
parent 366816c93e
commit 67e5549542

@ -4,7 +4,7 @@ set -e
app_root_dir="diagrams"
# NOTE: azure icon set is not latest version
providers=("onprem" "aws" "azure" "gcp" "firebase" "k8s" "alibabacloud" "oci" "programming")
providers=("onprem" "aws" "azure" "gcp" "firebase" "k8s" "alibabacloud" "oci" "programming" "generic")
if ! [ -x "$(command -v round)" ]; then
echo 'round is not installed'

@ -11,7 +11,7 @@ DIR_APP_ROOT = "diagrams"
DIR_RESOURCE = "resources"
DIR_TEMPLATE = "templates"
PROVIDERS = ("base", "onprem", "aws", "azure", "gcp", "firebase", "k8s", "alibabacloud", "oci", "programming")
PROVIDERS = ("base", "onprem", "aws", "azure", "gcp", "firebase", "k8s", "alibabacloud", "oci", "programming", "generic")
#########################
# Resource Processing #
@ -34,6 +34,7 @@ FILE_PREFIXES = {
"alibabacloud": (),
"oci": ("OCI-",),
"programming": (),
"generic": (),
}
#########################
@ -58,6 +59,7 @@ UPPER_WORDS = {
"sa", "sc", "sts", "svc",
),
"oci": ("oci",),
"generic": ("vpn",),
}
TITLE_WORDS = {
@ -354,4 +356,5 @@ ALIASES = {
"Typescript": "TypeScript"
},
},
"generic": {}
}

@ -0,0 +1,12 @@
"""
Generic provides the possibility of load an image to be presented as a node.
"""
from diagrams import Node
class _Generic(Node):
provider = "generic"
_icon_dir = "resources/generic"
fontcolor = "#ffffff"

@ -0,0 +1,15 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.
from . import _Generic
class _Blank(_Generic):
_type = "blank"
_icon_dir = "resources/generic/blank"
class Blank(_Blank):
_icon = "blank.png"
# Aliases

@ -0,0 +1,19 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.
from . import _Generic
class _Compute(_Generic):
_type = "compute"
_icon_dir = "resources/generic/compute"
class Rack(_Compute):
_icon = "rack.png"
class Storage(_Compute):
_icon = "storage.png"
# Aliases

@ -0,0 +1,27 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.
from . import _Generic
class _Network(_Generic):
_type = "network"
_icon_dir = "resources/generic/network"
class Firewall(_Network):
_icon = "firewall.png"
class Router(_Network):
_icon = "router.png"
class Switch(_Network):
_icon = "switch.png"
class VPN(_Network):
_icon = "vpn.png"
# Aliases

@ -0,0 +1,15 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.
from . import _Generic
class _Place(_Generic):
_type = "place"
_icon_dir = "resources/generic/place"
class Datacenter(_Place):
_icon = "datacenter.png"
# Aliases

@ -0,0 +1,26 @@
---
id: generic
title: Generic
---
Node classes list of generic provider.
## generic.blank
- **diagrams.generic.blank.Blank**
## generic.compute
- **diagrams.generic.compute.Rack**
- **diagrams.generic.compute.Storage**
## generic.network
- **diagrams.generic.network.Firewall**
- **diagrams.generic.network.Router**
- **diagrams.generic.network.Switch**
- **diagrams.generic.network.VPN**
## generic.place
- **diagrams.generic.place.Datacenter**

Binary file not shown.

After

Width:  |  Height:  |  Size: 351 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

@ -93,6 +93,8 @@ def cleaner_oci(f):
def cleaner_programming(f):
return f.lower()
def cleaner_generic(f):
return f.lower()
cleaners = {
"onprem": cleaner_onprem,
@ -104,6 +106,7 @@ cleaners = {
"alibabacloud": cleaner_alibabacloud,
"oci": cleaner_oci,
"programming": cleaner_programming,
"generic": cleaner_generic,
}

Loading…
Cancel
Save