Added generic itens and blank cluster (#171)

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

* Added Storage into storage folder
pull/187/head
Leandro Damascena 5 years ago committed by GitHub
parent f326352122
commit 97d73acc0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

@ -11,7 +11,7 @@ DIR_APP_ROOT = "diagrams"
DIR_RESOURCE = "resources" DIR_RESOURCE = "resources"
DIR_TEMPLATE = "templates" DIR_TEMPLATE = "templates"
PROVIDERS = ("base", "onprem", "aws", "azure", "gcp", "firebase", "k8s", "alibabacloud", "oci", "programming", "saas", "elastic") PROVIDERS = ("base", "onprem", "aws", "azure", "gcp", "firebase", "k8s", "alibabacloud", "oci", "programming", "saas", "elastic", "generic")
######################### #########################
# Resource Processing # # Resource Processing #
@ -36,6 +36,7 @@ FILE_PREFIXES = {
"programming": (), "programming": (),
"saas": (), "saas": (),
"elastic": (), "elastic": (),
"generic": (),
} }
######################### #########################
@ -61,6 +62,7 @@ UPPER_WORDS = {
), ),
"oci": ("oci",), "oci": ("oci",),
"elastic": ("apm", "siem", "ece", "eck"), "elastic": ("apm", "siem", "ece", "eck"),
"generic": ("vpn",),
} }
TITLE_WORDS = { TITLE_WORDS = {
@ -369,4 +371,5 @@ ALIASES = {
"Logstash": "LogStash", "Logstash": "LogStash",
} }
}, },
"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,15 @@
# 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"
# 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,15 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.
from . import _Generic
class _Storage(_Generic):
_type = "storage"
_icon_dir = "resources/generic/storage"
class Storage(_Storage):
_icon = "storage.png"
# Aliases

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

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: 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

@ -94,6 +94,8 @@ def cleaner_oci(f):
def cleaner_programming(f): def cleaner_programming(f):
return f.lower() return f.lower()
def cleaner_generic(f):
return f.lower()
def cleaner_saas(f): def cleaner_saas(f):
return f.lower() return f.lower()
@ -115,6 +117,7 @@ cleaners = {
"programming": cleaner_programming, "programming": cleaner_programming,
"saas": cleaner_saas, "saas": cleaner_saas,
"elastic": cleaner_elastic, "elastic": cleaner_elastic,
"generic": cleaner_generic,
} }

Loading…
Cancel
Save