Stefan Schultz пре 2 недеља
committed by GitHub
родитељ
комит
7dee11fd7f
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
36 измењених фајлова са 208 додато и 1 уклоњено
  1. +1
    -1
      DEVELOPMENT.md
  2. +1
    -0
      README.md
  3. +1
    -0
      autogen.sh
  4. +3
    -0
      config.py
  5. +12
    -0
      diagrams/camunda/__init__.py
  6. +31
    -0
      diagrams/camunda/automate.py
  7. +23
    -0
      diagrams/camunda/design.py
  8. +23
    -0
      diagrams/camunda/logo.py
  9. +15
    -0
      diagrams/camunda/monitor.py
  10. +54
    -0
      docs/nodes/camunda.md
  11. BIN
      resources/camunda/automate/decision.png
  12. BIN
      resources/camunda/automate/forms.png
  13. BIN
      resources/camunda/automate/operate.png
  14. BIN
      resources/camunda/automate/tasklist.png
  15. BIN
      resources/camunda/automate/workflow.png
  16. BIN
      resources/camunda/design/connector.png
  17. BIN
      resources/camunda/design/integration.png
  18. BIN
      resources/camunda/design/modeler.png
  19. BIN
      resources/camunda/logo/dark.png
  20. BIN
      resources/camunda/logo/light.png
  21. BIN
      resources/camunda/logo/orange.png
  22. BIN
      resources/camunda/monitor/optimize.png
  23. +5
    -0
      scripts/resource.py
  24. +39
    -0
      tests/test_camunda.py
  25. BIN
      website/static/img/resources/camunda/automate/decision.png
  26. BIN
      website/static/img/resources/camunda/automate/forms.png
  27. BIN
      website/static/img/resources/camunda/automate/operate.png
  28. BIN
      website/static/img/resources/camunda/automate/tasklist.png
  29. BIN
      website/static/img/resources/camunda/automate/workflow.png
  30. BIN
      website/static/img/resources/camunda/design/connector.png
  31. BIN
      website/static/img/resources/camunda/design/integration.png
  32. BIN
      website/static/img/resources/camunda/design/modeler.png
  33. BIN
      website/static/img/resources/camunda/logo/dark.png
  34. BIN
      website/static/img/resources/camunda/logo/light.png
  35. BIN
      website/static/img/resources/camunda/logo/orange.png
  36. BIN
      website/static/img/resources/camunda/monitor/optimize.png

+ 1
- 1
DEVELOPMENT.md Прегледај датотеку

@@ -59,7 +59,7 @@ To be able to develop and run diagrams locally on you Mac device, you should hav

```shell
brew install imagemagick inkscape black
go get github.com/mingrammer/round
go install github.com/mingrammer/round@latest
```

5. Run unit tests to confirm that it's working.


+ 1
- 0
README.md Прегледај датотеку

@@ -38,6 +38,7 @@ Diagrams lets you draw the cloud system architecture **in Python code**. It was
![programming provider](https://img.shields.io/badge/Programming-orange?color=5f87bf)
![saas provider](https://img.shields.io/badge/SaaS-orange?color=5f87bf)
![c4 provider](https://img.shields.io/badge/C4-orange?color=5f87bf)
![camunda provider](https://img.shields.io/badge/Camunda-orange?logo=camunda&color=ffffff)

## Getting Started



+ 1
- 0
autogen.sh Прегледај датотеку

@@ -7,6 +7,7 @@ providers=(
"onprem"
"aws"
"azure"
"camunda"
"digitalocean"
"gcp"
"ibm"


+ 3
- 0
config.py Прегледај датотеку

@@ -16,6 +16,7 @@ PROVIDERS = (
"onprem",
"aws",
"azure",
"camunda",
"digitalocean",
"gcp",
"ibm",
@@ -46,6 +47,7 @@ FILE_PREFIXES = {
"onprem": (),
"aws": ("Amazon-", "AWS-"),
"azure": ("Azure-",),
"camunda": (),
"digitalocean": (),
"gcp": ("Cloud-",),
"firebase": ("Cloud-",),
@@ -470,4 +472,5 @@ ALIASES = {
"Tripleo": "TripleO",
}
},
"camunda": {},
}

+ 12
- 0
diagrams/camunda/__init__.py Прегледај датотеку

@@ -0,0 +1,12 @@
"""
Camunda provides a set of general camunda services.
"""

from diagrams import Node


class _Camunda(Node):
_provider = 'camunda'
_icon_dir = 'resources/camunda'

fontcolor = '#ffffff'

+ 31
- 0
diagrams/camunda/automate.py Прегледај датотеку

@@ -0,0 +1,31 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _Camunda


class _Automate(_Camunda):
_type = "automate"
_icon_dir = "resources/camunda/automate"


class Decision(_Automate):
_icon = "decision.png"


class Forms(_Automate):
_icon = "forms.png"


class Operate(_Automate):
_icon = "operate.png"


class Tasklist(_Automate):
_icon = "tasklist.png"


class Workflow(_Automate):
_icon = "workflow.png"


# Aliases

+ 23
- 0
diagrams/camunda/design.py Прегледај датотеку

@@ -0,0 +1,23 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _Camunda


class _Design(_Camunda):
_type = "design"
_icon_dir = "resources/camunda/design"


class Connector(_Design):
_icon = "connector.png"


class Integration(_Design):
_icon = "integration.png"


class Modeler(_Design):
_icon = "modeler.png"


# Aliases

+ 23
- 0
diagrams/camunda/logo.py Прегледај датотеку

@@ -0,0 +1,23 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _Camunda


class _Logo(_Camunda):
_type = "logo"
_icon_dir = "resources/camunda/logo"


class Dark(_Logo):
_icon = "dark.png"


class Light(_Logo):
_icon = "light.png"


class Orange(_Logo):
_icon = "orange.png"


# Aliases

+ 15
- 0
diagrams/camunda/monitor.py Прегледај датотеку

@@ -0,0 +1,15 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _Camunda


class _Monitor(_Camunda):
_type = "monitor"
_icon_dir = "resources/camunda/monitor"


class Optimize(_Monitor):
_icon = "optimize.png"


# Aliases

+ 54
- 0
docs/nodes/camunda.md Прегледај датотеку

@@ -0,0 +1,54 @@
---
id: camunda
title: Camunda
---

Node classes list of camunda provider.

## camunda.automate


<img width="30" src="/img/resources/camunda/automate/decision.png" alt="Decision" style="float: left; padding-right: 5px;" >
**diagrams.camunda.automate.Decision**

<img width="30" src="/img/resources/camunda/automate/forms.png" alt="Forms" style="float: left; padding-right: 5px;" >
**diagrams.camunda.automate.Forms**

<img width="30" src="/img/resources/camunda/automate/operate.png" alt="Operate" style="float: left; padding-right: 5px;" >
**diagrams.camunda.automate.Operate**

<img width="30" src="/img/resources/camunda/automate/tasklist.png" alt="Tasklist" style="float: left; padding-right: 5px;" >
**diagrams.camunda.automate.Tasklist**

<img width="30" src="/img/resources/camunda/automate/workflow.png" alt="Workflow" style="float: left; padding-right: 5px;" >
**diagrams.camunda.automate.Workflow**

## camunda.design


<img width="30" src="/img/resources/camunda/design/connector.png" alt="Connector" style="float: left; padding-right: 5px;" >
**diagrams.camunda.design.Connector**

<img width="30" src="/img/resources/camunda/design/integration.png" alt="Integration" style="float: left; padding-right: 5px;" >
**diagrams.camunda.design.Integration**

<img width="30" src="/img/resources/camunda/design/modeler.png" alt="Modeler" style="float: left; padding-right: 5px;" >
**diagrams.camunda.design.Modeler**

## camunda.logo


<img width="30" src="/img/resources/camunda/logo/dark.png" alt="Dark" style="float: left; padding-right: 5px;" >
**diagrams.camunda.logo.Dark**

<img width="30" src="/img/resources/camunda/logo/light.png" alt="Light" style="float: left; padding-right: 5px;" >
**diagrams.camunda.logo.Light**

<img width="30" src="/img/resources/camunda/logo/orange.png" alt="Orange" style="float: left; padding-right: 5px;" >
**diagrams.camunda.logo.Orange**

## camunda.monitor


<img width="30" src="/img/resources/camunda/monitor/optimize.png" alt="Optimize" style="float: left; padding-right: 5px;" >
**diagrams.camunda.monitor.Optimize**

BIN
resources/camunda/automate/decision.png Прегледај датотеку

Before After
Width: 256  |  Height: 254  |  Size: 21 KiB

BIN
resources/camunda/automate/forms.png Прегледај датотеку

Before After
Width: 256  |  Height: 254  |  Size: 17 KiB

BIN
resources/camunda/automate/operate.png Прегледај датотеку

Before After
Width: 256  |  Height: 254  |  Size: 23 KiB

BIN
resources/camunda/automate/tasklist.png Прегледај датотеку

Before After
Width: 256  |  Height: 254  |  Size: 19 KiB

BIN
resources/camunda/automate/workflow.png Прегледај датотеку

Before After
Width: 256  |  Height: 254  |  Size: 26 KiB

BIN
resources/camunda/design/connector.png Прегледај датотеку

Before After
Width: 256  |  Height: 254  |  Size: 22 KiB

BIN
resources/camunda/design/integration.png Прегледај датотеку

Before After
Width: 256  |  Height: 254  |  Size: 22 KiB

BIN
resources/camunda/design/modeler.png Прегледај датотеку

Before After
Width: 256  |  Height: 254  |  Size: 18 KiB

BIN
resources/camunda/logo/dark.png Прегледај датотеку

Before After
Width: 243  |  Height: 256  |  Size: 18 KiB

BIN
resources/camunda/logo/light.png Прегледај датотеку

Before After
Width: 241  |  Height: 256  |  Size: 17 KiB

BIN
resources/camunda/logo/orange.png Прегледај датотеку

Before After
Width: 244  |  Height: 256  |  Size: 23 KiB

BIN
resources/camunda/monitor/optimize.png Прегледај датотеку

Before After
Width: 256  |  Height: 254  |  Size: 20 KiB

+ 5
- 0
scripts/resource.py Прегледај датотеку

@@ -135,10 +135,15 @@ def cleaner_openstack(f):
return f.lower()


def cleaner_camunda(f):
return f.lower()


cleaners = {
"onprem": cleaner_onprem,
"aws": cleaner_aws,
"azure": cleaner_azure,
"camunda": cleaner_camunda,
"digitalocean": cleaner_digitalocean,
"gcp": cleaner_gcp,
"ibm": cleaner_ibm,


+ 39
- 0
tests/test_camunda.py Прегледај датотеку

@@ -0,0 +1,39 @@
import os
import random
import string
import unittest

from diagrams import Diagram
from diagrams import setcluster, setdiagram
from diagrams.camunda.logo import Dark, Light, Orange
from diagrams.camunda.design import Modeler, Connector, Integration
from diagrams.camunda.automate import Workflow, Decision, Forms, Operate, Tasklist
from diagrams.camunda.monitor import Optimize


class CamundaTest(unittest.TestCase):
def setUp(self):
self.name = "diagram-" + "".join([random.choice(string.hexdigits) for n in range(7)]).lower()

def tearDown(self):
setdiagram(None)
setcluster(None)
try:
os.remove(self.name + ".png")
except FileNotFoundError:
pass

def test_icons(self):
with Diagram(name=self.name, show=False):
dark = Dark("dark")
light = Light("light")
orange = Orange("orange")
workflow = Workflow("workflow")
decision = Decision("decision")
forms = Forms("forms")
operate = Operate("operate")
tasklist = Tasklist("tasklist")
modeler = Modeler("modeler")
connector = Connector("connector")
integration = Integration("integration")
optimize = Optimize("optimize")

BIN
website/static/img/resources/camunda/automate/decision.png Прегледај датотеку

Before After
Width: 256  |  Height: 254  |  Size: 21 KiB

BIN
website/static/img/resources/camunda/automate/forms.png Прегледај датотеку

Before After
Width: 256  |  Height: 254  |  Size: 17 KiB

BIN
website/static/img/resources/camunda/automate/operate.png Прегледај датотеку

Before After
Width: 256  |  Height: 254  |  Size: 23 KiB

BIN
website/static/img/resources/camunda/automate/tasklist.png Прегледај датотеку

Before After
Width: 256  |  Height: 254  |  Size: 19 KiB

BIN
website/static/img/resources/camunda/automate/workflow.png Прегледај датотеку

Before After
Width: 256  |  Height: 254  |  Size: 26 KiB

BIN
website/static/img/resources/camunda/design/connector.png Прегледај датотеку

Before After
Width: 256  |  Height: 254  |  Size: 22 KiB

BIN
website/static/img/resources/camunda/design/integration.png Прегледај датотеку

Before After
Width: 256  |  Height: 254  |  Size: 22 KiB

BIN
website/static/img/resources/camunda/design/modeler.png Прегледај датотеку

Before After
Width: 256  |  Height: 254  |  Size: 18 KiB

BIN
website/static/img/resources/camunda/logo/dark.png Прегледај датотеку

Before After
Width: 243  |  Height: 256  |  Size: 18 KiB

BIN
website/static/img/resources/camunda/logo/light.png Прегледај датотеку

Before After
Width: 241  |  Height: 256  |  Size: 17 KiB

BIN
website/static/img/resources/camunda/logo/orange.png Прегледај датотеку

Before After
Width: 244  |  Height: 256  |  Size: 23 KiB

BIN
website/static/img/resources/camunda/monitor/optimize.png Прегледај датотеку

Before After
Width: 256  |  Height: 254  |  Size: 20 KiB

Loading…
Откажи
Сачувај