Merge branch 'master' into master

pull/171/head
Leandro Damascena 5 years ago committed by GitHub
commit 267633994b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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" "generic")
providers=("onprem" "aws" "azure" "gcp" "firebase" "k8s" "alibabacloud" "oci" "programming" "saas" "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", "generic")
PROVIDERS = ("base", "onprem", "aws", "azure", "gcp", "firebase", "k8s", "alibabacloud", "oci", "programming", "saas", "generic")
#########################
# Resource Processing #
@ -34,6 +34,7 @@ FILE_PREFIXES = {
"alibabacloud": (),
"oci": ("OCI-",),
"programming": (),
"saas": (),
"generic": (),
}
@ -356,5 +357,6 @@ ALIASES = {
"Typescript": "TypeScript"
},
},
"generic": {}
"saas": {},
"generic": {},
}

@ -0,0 +1,12 @@
"""
Saas provides a set of general saas services.
"""
from diagrams import Node
class _Saas(Node):
_provider = "saas"
_icon_dir = "resources/saas"
fontcolor = "#ffffff"

@ -0,0 +1,19 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.
from . import _Saas
class _Chat(_Saas):
_type = "chat"
_icon_dir = "resources/saas/chat"
class Slack(_Chat):
_icon = "slack.png"
class Telegram(_Chat):
_icon = "telegram.png"
# Aliases

@ -0,0 +1,19 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.
from . import _Saas
class _Social(_Saas):
_type = "social"
_icon_dir = "resources/saas/social"
class Facebook(_Social):
_icon = "facebook.png"
class Twitter(_Social):
_icon = "twitter.png"
# Aliases

@ -0,0 +1,16 @@
---
id: saas
title: Saas
---
Node classes list of saas provider.
## saas.chat
- **diagrams.saas.chat.Slack**
- **diagrams.saas.chat.Telegram**
## saas.social
- **diagrams.saas.social.Facebook**
- **diagrams.saas.social.Twitter**

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

@ -7,7 +7,7 @@ from jinja2 import Environment, FileSystemLoader, Template
import config as cfg
from . import app_root_dir, doc_root_dir, resource_dir, template_dir
_usage = "Usage: generate.py <onprem|aws|gcp|azure|k8s|alibabacloud|oci|programming>"
_usage = "Usage: generate.py <onprem|aws|gcp|azure|k8s|alibabacloud|oci|programming|saas>"
def load_tmpl(tmpl: str) -> Template:

@ -96,6 +96,10 @@ def cleaner_programming(f):
def cleaner_generic(f):
return f.lower()
def cleaner_saas(f):
return f.lower()
cleaners = {
"onprem": cleaner_onprem,
"aws": cleaner_aws,
@ -106,6 +110,7 @@ cleaners = {
"alibabacloud": cleaner_alibabacloud,
"oci": cleaner_oci,
"programming": cleaner_programming,
"saas": cleaner_saas,
"generic": cleaner_generic,
}

Loading…
Cancel
Save