From 660e7bcb76d254e9a927b97a9805faf81cad96c8 Mon Sep 17 00:00:00 2001 From: Denis Davydkov Date: Thu, 2 Nov 2023 14:41:53 +0100 Subject: [PATCH] trigger redeploy --- README.md | 4 ++-- src/cloud/backend.c4 | 1 + src/cloud/ui.c4 | 1 + src/model.c4 | 28 ---------------------------- src/views.c4 | 27 +++++++++++++++++++++++++++ 5 files changed, 31 insertions(+), 30 deletions(-) create mode 100644 src/views.c4 diff --git a/README.md b/README.md index 1748509..e8a7454 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ This template is a simple example of how to use LikeC4. Contains: -- LikeC4 sources ([`src`](./src/)) -- Workflow to deploy to github pages ([`pages.yml`](./.github/workflows/pages.yml)) +- LikeC4 sources ([`/src`](./src/)) +- Deploy to github pages ([`pages.yml`](./.github/workflows/pages.yml)) Demo - [https://template.likec4.dev](https://template.likec4.dev/view/cloud) diff --git a/src/cloud/backend.c4 b/src/cloud/backend.c4 index 71aa1f1..914d3e3 100644 --- a/src/cloud/backend.c4 +++ b/src/cloud/backend.c4 @@ -1,3 +1,4 @@ +// Extend cloud.backend model model { extend aws { diff --git a/src/cloud/ui.c4 b/src/cloud/ui.c4 index 064ed5a..5344054 100644 --- a/src/cloud/ui.c4 +++ b/src/cloud/ui.c4 @@ -1,3 +1,4 @@ +// Extend cloud.ui model model { extend cloud.ui { diff --git a/src/model.c4 b/src/model.c4 index 139ca23..b4e29d1 100644 --- a/src/model.c4 +++ b/src/model.c4 @@ -44,31 +44,3 @@ model { cloud -> aws 'uses services' } - -views { - - view index { - title 'System Landscape' - include * - } - - view cloud of cloud { - title 'Context: Cloud System' - include * - style cloud, cloud.* { - color green - } - } - - view aws of aws { - title 'Context: Amazon Web Services' - include - *, - cloud, - cloud.* -> aws.* - style aws, cloud { - color muted - } - } - -} diff --git a/src/views.c4 b/src/views.c4 new file mode 100644 index 0000000..10314bf --- /dev/null +++ b/src/views.c4 @@ -0,0 +1,27 @@ +views { + + view index { + title 'System Landscape' + include * + } + + view cloud of cloud { + title 'Context: Cloud System' + include * + style cloud, cloud.* { + color green + } + } + + view aws of aws { + title 'Context: Amazon Web Services' + include + *, + cloud, + cloud.* -> aws.* + style aws, cloud { + color muted + } + } + +} \ No newline at end of file