Skip to content

Commit

Permalink
fix: switch !function to !procedure when no !return directive
Browse files Browse the repository at this point in the history
fix #1
  • Loading branch information
tmorin committed May 9, 2020
1 parent e335bb5 commit 51a8522
Show file tree
Hide file tree
Showing 8,379 changed files with 10,496 additions and 10,494 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# plantuml-libs

Tested with [PlantUML compiled Jar (Version 1.2020.8)](https://plantuml.com/download).

Set of libraries for [PlantUML](http://plantuml.com).

- [Cloud - with AWS, Azure and GCP](cloud/README.md)
Expand Down
76 changes: 38 additions & 38 deletions c4model/c4-functions.puml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

' layout

!function legend()
!procedure legend()
legend right
|= |=Type|= |=Type|
|<$EXTERNAL_PERSON_COLOR_BG>| external person |<$EXTERNAL_SYSTEM_COLOR_BG>| external system |
|<$PERSON_COLOR_BG>| person |<$SYSTEM_COLOR_BG>| system |
|<$CONTAINER_COLOR_BG>| container |<$COMPONENT_COLOR_BG>| component |
endlegend
!endfunction
!endprocedure

!function title($title, $subtitle="", $version="", $date="")
!procedure title($title, $subtitle="", $version="", $date="")
!$s=$title
!$s_d="Last modified: " + %date("yyyy-MM-dd'T'HH:mm:ss")
!$s_v=""
Expand All @@ -29,27 +29,27 @@
!endif
<color:grey><size:12>$s</size></color>
end header
!endfunction
!endprocedure

' Label

!function LabelName($name)
!procedure LabelName($name)
<b><size:$NAME_FONT_SIZE>$name</size></b>
!endfunction
!endprocedure

!function LabelDesc($desc)
!procedure LabelDesc($desc)
<size:$DESC_FONT_SIZE>$desc</size>
!endfunction
!endprocedure

!function LabelType($type, $tech="")
!procedure LabelType($type, $tech="")
!if ($tech)
<size:$TECH_FONT_SIZE>[$type: $tech]</size>
!else
<size:$TECH_FONT_SIZE>[$type]</size>
!endif
!endfunction
!endprocedure

!function Label($name, $type, $desc, $tech)
!procedure Label($name, $type, $desc, $tech)
LabelName($name)
!if ($type)
LabelType($type, $tech)
Expand All @@ -58,80 +58,80 @@

LabelDesc($desc)
!endif
!endfunction
!endprocedure

' Element

!function Element($shape, $stereotype, $type, $id, $name, $desc="", $tech="")
!procedure Element($shape, $stereotype, $type, $id, $name, $desc="", $tech="")
$shape $id <<$stereotype>> [
Label($name, $type, $desc, $tech)
]
!endfunction
!endprocedure

!function Boundary($type, $id, $name)
!procedure Boundary($type, $id, $name)
rectangle $id <<Boundary>> as "<b><size:$NAME_FONT_SIZE>$name</size></b>\n<size:$TECH_FONT_SIZE>[$type]</size>"
!endfunction
!endprocedure

' Enterprise

!function Enterprise($id, $name)
!procedure Enterprise($id, $name)
Boundary("Enterprise", $id, $name)
!endfunction
!endprocedure

' Person

!function Person($id, $name, $desc="")
!procedure Person($id, $name, $desc="")
Element("rectangle", "Person", "Person", $id, $name, $desc)
!endfunction
!endprocedure

!function ExternalPerson($id, $name, $desc="")
!procedure ExternalPerson($id, $name, $desc="")
Element("rectangle", "ExternalPerson", "Person", $id, $name, $desc)
!endfunction
!endprocedure

' Software System (internal vs external)

!function System($id, $name, $desc="")
!procedure System($id, $name, $desc="")
Element("rectangle", "System", "System", $id, $name, $desc)
!endfunction
!endprocedure

!function ExternalSystem($id, $name, $desc="")
!procedure ExternalSystem($id, $name, $desc="")
Element("rectangle", "ExternalSystem", "System", $id, $name, $desc)
!endfunction
!endprocedure

!function SystemBoundary($id, $name)
!procedure SystemBoundary($id, $name)
Boundary("System", $id, $name)
!endfunction
!endprocedure

' Container

!function Container($id, $name, $desc="", $tech="")
!procedure Container($id, $name, $desc="", $tech="")
Element("rectangle", "Container", "Container", $id, $name, $desc, $tech)
!endfunction
!endprocedure

!function Database($id, $name, $desc="", $tech="")
!procedure Database($id, $name, $desc="", $tech="")
Element("database", "Container", "Container", $id, $name, $desc, $tech)
!endfunction
!endprocedure

!function ContainerBoundary($id, $name)
!procedure ContainerBoundary($id, $name)
Boundary("Container", $id, $name)
!endfunction
!endprocedure

' Component

!function Component($id, $name, $desc="", $tech="")
!procedure Component($id, $name, $desc="", $tech="")
Element("rectangle", "Component", "Component", $id, $name, $desc, $tech)
!endfunction
!endprocedure

' Relationship

!function Relationship($desc="", $tech="")
!procedure Relationship($desc="", $tech="")
!if ($desc) && ($tech)
<b><size:$DESC_FONT_SIZE>$desc</size></b>\n<size:$TECH_FONT_SIZE>[$tech]</size>
!elseif ($desc)
<b><size:$DESC_FONT_SIZE>$desc</size></b>
!else
<size:$TECH_FONT_SIZE>[$tech]</size>
!endif
!endfunction
!endprocedure

@enduml
Binary file modified cloud/documentation/aws/Analytics/AwsAnalytics.card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cloud/documentation/aws/Analytics/AwsAnalytics.element.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cloud/documentation/aws/Analytics/AwsAthena.card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cloud/documentation/aws/Analytics/AwsAthena.element.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cloud/documentation/aws/Analytics/AwsCloudsearch.card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cloud/documentation/aws/Analytics/AwsCloudsearch.element.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cloud/documentation/aws/Analytics/AwsDataPipeline.card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cloud/documentation/aws/Analytics/AwsDataPipeline.element.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cloud/documentation/aws/Analytics/AwsEmr.card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cloud/documentation/aws/Analytics/AwsEmr.element.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cloud/documentation/aws/Analytics/AwsEmrCluster.card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cloud/documentation/aws/Analytics/AwsEmrCluster.element.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cloud/documentation/aws/Analytics/AwsEmrEmrEngine.card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cloud/documentation/aws/Analytics/AwsEmrEmrEngine.element.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cloud/documentation/aws/Analytics/AwsEmrEmrEngineMaprM7.card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cloud/documentation/aws/Analytics/AwsEmrHdfsCluster.card.png
Binary file modified cloud/documentation/aws/Analytics/AwsEmrHdfsCluster.element.png
Binary file modified cloud/documentation/aws/Analytics/AwsGlue.card.png
Binary file modified cloud/documentation/aws/Analytics/AwsGlue.element.png
Binary file modified cloud/documentation/aws/Analytics/AwsGlueCrawlers.card.png
Binary file modified cloud/documentation/aws/Analytics/AwsGlueCrawlers.element.png
Binary file modified cloud/documentation/aws/Analytics/AwsGlueDataCatalog.card.png
Binary file modified cloud/documentation/aws/Analytics/AwsGlueDataCatalog.element.png
Binary file modified cloud/documentation/aws/Analytics/AwsKinesis.card.png
Binary file modified cloud/documentation/aws/Analytics/AwsKinesis.element.png
Binary file modified cloud/documentation/aws/Analytics/AwsKinesisDataStreams.card.png
Binary file modified cloud/documentation/aws/Analytics/AwsLakeFormation.card.png
Binary file modified cloud/documentation/aws/Analytics/AwsLakeFormation.element.png
Binary file modified cloud/documentation/aws/Analytics/AwsQuicksight.card.png
Binary file modified cloud/documentation/aws/Analytics/AwsQuicksight.element.png
Binary file modified cloud/documentation/aws/Analytics/AwsRedshift.card.png
Binary file modified cloud/documentation/aws/Analytics/AwsRedshift.element.png
Binary file modified cloud/documentation/aws/ApplicationIntegration/AwsMq.card.png
Binary file modified cloud/documentation/aws/ArVr/AwsArVr.card.png
Binary file modified cloud/documentation/aws/ArVr/AwsArVr.element.png
Binary file modified cloud/documentation/aws/ArVr/AwsSumerian.card.png
Binary file modified cloud/documentation/aws/ArVr/AwsSumerian.element.png
Binary file modified cloud/documentation/aws/AwsCostManagement/AwsBudgets.card.png
Binary file modified cloud/documentation/aws/AwsCostManagement/AwsBudgets.element.png
Binary file modified cloud/documentation/aws/AwsGroupAutoScaling.group.png
Binary file modified cloud/documentation/aws/AwsGroupAvailabilityZone.group.png
Binary file modified cloud/documentation/aws/AwsGroupCloud.group.png
Binary file modified cloud/documentation/aws/AwsGroupCloudAws.group.png
Binary file modified cloud/documentation/aws/AwsGroupCorporateDataCenter.group.png
Binary file modified cloud/documentation/aws/AwsGroupDashed.group.png
Binary file modified cloud/documentation/aws/AwsGroupEc2InstanceContents.group.png
Binary file modified cloud/documentation/aws/AwsGroupEcsContainer.group.png
Binary file modified cloud/documentation/aws/AwsGroupEcsService.group.png
Binary file modified cloud/documentation/aws/AwsGroupEcsTask.group.png
Binary file modified cloud/documentation/aws/AwsGroupPlain.group.png
Binary file modified cloud/documentation/aws/AwsGroupPrivateSubnet.group.png
Binary file modified cloud/documentation/aws/AwsGroupPublicSubnet.group.png
Binary file modified cloud/documentation/aws/AwsGroupRegion.group.png
Binary file modified cloud/documentation/aws/AwsGroupSecurity.group.png
Binary file modified cloud/documentation/aws/AwsGroupServerContents.group.png
Binary file modified cloud/documentation/aws/AwsGroupSpotFleet.group.png
Binary file modified cloud/documentation/aws/AwsGroupStepFunctionsWorkflow.group.png
Binary file modified cloud/documentation/aws/AwsGroupVpc.group.png
Binary file modified cloud/documentation/aws/Blockchain/AwsBlockchain.card.png
Binary file modified cloud/documentation/aws/Blockchain/AwsBlockchain.element.png
Binary file modified cloud/documentation/aws/BusinessApplications/AwsChime.card.png
Binary file modified cloud/documentation/aws/Compute/AwsBatch.card.png
Binary file modified cloud/documentation/aws/Compute/AwsBatch.element.png
Binary file modified cloud/documentation/aws/Compute/AwsCompute.card.png
Binary file modified cloud/documentation/aws/Compute/AwsCompute.element.png
Binary file modified cloud/documentation/aws/Compute/AwsComputeOptimizer.card.png
Binary file modified cloud/documentation/aws/Compute/AwsComputeOptimizer.element.png
Binary file modified cloud/documentation/aws/Compute/AwsEc2.card.png
Binary file modified cloud/documentation/aws/Compute/AwsEc2.element.png
Binary file modified cloud/documentation/aws/Compute/AwsEc2Ami.card.png
Binary file modified cloud/documentation/aws/Compute/AwsEc2Ami.element.png
Binary file modified cloud/documentation/aws/Compute/AwsEc2AutoScaling.card.png
Binary file modified cloud/documentation/aws/Compute/AwsEc2AutoScaling.element.png
Binary file modified cloud/documentation/aws/Compute/AwsEc2ContainerRegistry.card.png
Binary file modified cloud/documentation/aws/Compute/AwsEc2ElasticIpAddress.card.png
Binary file modified cloud/documentation/aws/Compute/AwsEc2ImageBuilder.card.png
Binary file modified cloud/documentation/aws/Compute/AwsEc2ImageBuilder.element.png
Binary file modified cloud/documentation/aws/Compute/AwsEc2Rescue.card.png
Binary file modified cloud/documentation/aws/Compute/AwsEc2Rescue.element.png
Binary file modified cloud/documentation/aws/Compute/AwsElasticBeanstalk.card.png
Binary file modified cloud/documentation/aws/Compute/AwsElasticBeanstalk.element.png
Binary file modified cloud/documentation/aws/Compute/AwsFargate.card.png
Binary file modified cloud/documentation/aws/Compute/AwsFargate.element.png
Binary file modified cloud/documentation/aws/Compute/AwsLambda.card.png
Binary file modified cloud/documentation/aws/Compute/AwsLambda.element.png
Binary file modified cloud/documentation/aws/Compute/AwsLightsail.card.png
Binary file modified cloud/documentation/aws/Compute/AwsLightsail.element.png
Binary file modified cloud/documentation/aws/Compute/AwsLocalZones.card.png
Binary file modified cloud/documentation/aws/Compute/AwsLocalZones.element.png
Binary file modified cloud/documentation/aws/Compute/AwsOutposts.card.png
Binary file modified cloud/documentation/aws/Compute/AwsOutposts.element.png
Binary file modified cloud/documentation/aws/Compute/AwsThinkboxDeadline.card.png
Binary file modified cloud/documentation/aws/Compute/AwsThinkboxDeadline.element.png
Binary file modified cloud/documentation/aws/Compute/AwsThinkboxDraft.card.png
Binary file modified cloud/documentation/aws/Compute/AwsThinkboxDraft.element.png
Binary file modified cloud/documentation/aws/Compute/AwsThinkboxFrost.card.png
Binary file modified cloud/documentation/aws/Compute/AwsThinkboxFrost.element.png
Binary file modified cloud/documentation/aws/Compute/AwsThinkboxKrakatoa.card.png
Binary file modified cloud/documentation/aws/Compute/AwsThinkboxKrakatoa.element.png
Binary file modified cloud/documentation/aws/Compute/AwsThinkboxSequoia.card.png
Binary file modified cloud/documentation/aws/Compute/AwsThinkboxSequoia.element.png
Binary file modified cloud/documentation/aws/Compute/AwsThinkboxStoke.card.png
Binary file modified cloud/documentation/aws/Compute/AwsThinkboxStoke.element.png
Binary file modified cloud/documentation/aws/Compute/AwsThinkboxXmesh.card.png
Binary file modified cloud/documentation/aws/Compute/AwsThinkboxXmesh.element.png
Binary file modified cloud/documentation/aws/Compute/AwsVmwareCloud.card.png
Binary file modified cloud/documentation/aws/Compute/AwsVmwareCloud.element.png
Binary file modified cloud/documentation/aws/Compute/AwsWavelength.card.png
Binary file modified cloud/documentation/aws/Compute/AwsWavelength.element.png
Binary file modified cloud/documentation/aws/CustomerEnablement/AwsIq.card.png
Loading

0 comments on commit 51a8522

Please sign in to comment.