Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
davydkov authored Oct 28, 2023
1 parent ea17833 commit a3b7a51
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 25 deletions.
2 changes: 1 addition & 1 deletion _spec.c4
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ specification {
}
}

element system
element softwareSys

element externalSystem {
style {
Expand Down
4 changes: 3 additions & 1 deletion cloud/legacy.c4
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ views {
include
*,
cloud,
amazon,
cloud.legacy -> amazon.*,
-> customer ->

style * {
color secondary
}

style cloud {
style cloud, amazon {
color muted
}

Expand Down
13 changes: 6 additions & 7 deletions cloud/next.c4
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,16 @@ views {


view cloud_next of cloud.next {
include *
include cloud
exclude
amazon.* -> cloud,
cloud.ui.supportPanel -> amazon,
cloud.next.backend -> amazon.*
include
*,
cloud,
amazon,
cloud.next.* -> amazon.*,

style * {
color secondary
}
style cloud {
style cloud, amazon {
color muted
}
style cloud.next, cloud.next.* {
Expand Down
22 changes: 17 additions & 5 deletions externals.c4
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ model {
views {

view amazon of amazon {
title "Overview Amazon"
title "Amazon"

include
*,
Expand All @@ -77,15 +77,27 @@ views {
}

view amazon_sqs of sqs {
title: 'Overview Amazon SQS'
title 'Amazon: SQS'

include
*,
amazon
amazon,
cloud,
cloud.next.* -> sqs.*

style * {
color secondary
}
style amazon, cloud {
color muted
}
style sqs, sqs.* {
color green
}
}

view amazon_lambdas of lambdas {
title: 'Overview Amazon Lambdas'
title 'Amazon: Lambdas'

include
*,
Expand All @@ -105,7 +117,7 @@ views {
}

view amazon_rds of amazon.rds {
title 'Overview Amazon RDS'
title 'Amazon: RDS'

include
*,
Expand Down
22 changes: 15 additions & 7 deletions model.c4
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ model {
'
}

cloud = system 'Cloud System' {
cloud = softwareSys 'Cloud System' {
description '
Our SaaS platfrom that allows
customers to interact with
Expand All @@ -29,7 +29,7 @@ model {
description 'Cloud Next is the next version of our cloud systems'
}

supportUser = actor 'Support User' {
supportUser = actor 'Suppot User' {
description '
A emploere from the support team
Has limited access to the system
Expand All @@ -55,12 +55,20 @@ views {
view customer of customer {
include
*,
cloud,
cloud.ui,
customer -> cloud.ui.*,
supportUser

style supportUser {
color indigo
}
supportUser,

style * {
color secondary
}
style cloud, cloud.ui {
color muted
}
style customer {
color green
}
}

}
14 changes: 10 additions & 4 deletions views.c4
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
views {

view cloud of cloud {
title "The Cloud System"
title "Context: Cloud System"

include *
include
*,
amazon,
-> amazon.*,

style * {
color secondary
}
style cloud {
style cloud, amazon {
color muted
}
style cloud.* {
color green
}
}
style supportUser {
color secondary
}
}

}

0 comments on commit a3b7a51

Please sign in to comment.