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 f89939e commit ea17833
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 57 deletions.
17 changes: 10 additions & 7 deletions cloud/legacy.c4
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,18 @@ views {
include
*,
cloud,
// cloud.ui,
-> customer ->

style cloud, customer, cloud.* {
style * {
color secondary
}

style cloud {
color muted
}

style cloud.legacy, cloud.legacy.* {
color primary
color green
}
}

Expand All @@ -39,13 +42,13 @@ views {
*,
cloud

style cloud {
color muted
}

style * {
color secondary
}

style cloud {
color muted
}

style cloud.legacy.* {
color green
Expand Down
37 changes: 26 additions & 11 deletions cloud/next.c4
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,13 @@ views {
cloud.next.backend -> amazon.*

style * {
color slate
color secondary
}
style cloud.next.* {
color primary
style cloud {
color muted
}
style cloud.next, cloud.next.* {
color green
}
}

Expand All @@ -94,23 +97,35 @@ views {
cloud.supportUser

style * {
color secondary
}
style cloud {
color muted
}

style backend {
color primary
}
style cloud.next, cloud.next.* {
color green
}
}

view graphql of graphql {
include *, cloud.next

include
*,
amazon,
-> amazon.*,
cloud.next,
cloud.ui.* -> graphql,
customer -> cloud.ui.*,
cloud.supportUser -> cloud.ui.*,


style * {
color secondary
}
style cloud.next, amazon, cloud.ui {
color muted
}

style graphql, graphql.* {
color primary
color green
}
}

Expand Down
41 changes: 24 additions & 17 deletions cloud/ui.c4
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ model {
style {
shape browser
}
-> cloud.next.graphql "updates data in case of a support request"
-> cloud.next.graphql.updateAccount "updates data in case of a support request"
-> amazon.aurora.tblUsers "reads users from the database"
}

Expand All @@ -52,39 +52,43 @@ views {
include cloud

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

view mobile of mobile {
include *
include cloud
include *, cloud

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

view cloud_ui_dashboard of dashboard {
include *
exclude * -> dashboard
include cloud.ui
include cloud.ui, cloud

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

style cloud.ui, cloud.ui.* {
color primary
style cloud.ui.* {
color green
}
}

Expand All @@ -93,15 +97,18 @@ views {
*,
cloud.ui,
cloud,
supportPanel -> *,
amazon.aurora

style cloud, cloud.* {
amazon,
supportPanel -> amazon.*

style * {
color secondary
}
style cloud, amazon {
color muted
}

style cloud.ui, cloud.ui.* {
color primary
color green
}
}

Expand Down
28 changes: 6 additions & 22 deletions views.c4
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,16 @@ views {
view cloud of cloud {
title "The Cloud System"

include
*,
ui.*,
next.*,
legacy.*
exclude
supportUser,
ui.supportPanel,
next -> legacy
// include
// cloud.* -> amazon.*,
// amazon
// exclude
// amazon -> *
include *

style amazon {
color indigo
style * {
color secondary
}
style customer {
color green
}
style cloud {
color sky
}
color muted
}
style cloud.* {
color primary
color green
}
}

Expand Down

0 comments on commit ea17833

Please sign in to comment.