Add Saas v2 (#89) (#173)

pull/179/head
gabriel-tessier 5 years ago committed by GitHub
parent f8ba6a8659
commit eddeb38352
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") providers=("onprem" "aws" "azure" "gcp" "firebase" "k8s" "alibabacloud" "oci" "programming" "saas")
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") PROVIDERS = ("base", "onprem", "aws", "azure", "gcp", "firebase", "k8s", "alibabacloud", "oci", "programming", "saas")
######################### #########################
# Resource Processing # # Resource Processing #
@ -34,6 +34,7 @@ FILE_PREFIXES = {
"alibabacloud": (), "alibabacloud": (),
"oci": ("OCI-",), "oci": ("OCI-",),
"programming": (), "programming": (),
"saas": (),
} }
######################### #########################
@ -354,4 +355,5 @@ ALIASES = {
"Typescript": "TypeScript" "Typescript": "TypeScript"
}, },
}, },
"saas": {},
} }

@ -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 import config as cfg
from . import app_root_dir, doc_root_dir, resource_dir, template_dir 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: def load_tmpl(tmpl: str) -> Template:

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

Loading…
Cancel
Save